Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Symbol with ANCHORPOINT isn't displayed correctly with map_resolution=288 #5593

Open
wirkus opened this issue May 22, 2018 · 1 comment
Open
Assignees

Comments

@wirkus
Copy link

wirkus commented May 22, 2018

I have a problem with printing symbols with anchorpoint on MapServer version 7.1-dev with map_resolution=288 :
I tested a layer with symbols with anchorpoint (svg, pixmap, truetype). I want to set the anchorpoint on the buttom center of my symbol.

  • Print 72 dpi (default): symbols are displayed at the anchorpoint. -> everything ist ok
    anchorpoint_resolution_72

  • Print 288 dpi (with map_resolution=288): symbols aren't displayed at the anchorpoint. They are displayed in the center of the symbol.
    anchorpoint_resolution_288

SYMBOL
    NAME 'wind_anchor'
    TYPE SVG
    IMAGE '..3501_1.svg'
    ANCHORPOINT 0.5 1
END
LAYER
		NAME "anchorpoint"
		STATUS ON
		TYPE POINT
		SIZEUNITS METERS  #SIZEUNITS pixels same effect
                 ...
		CLASS	
			NAME "svg_anchorpoint"
                        STYLE
	                          SYMBOL "wind_anchor"
                                  SIZE 28
	                          MINSIZE 24 
	                          MAXSIZE  32
                       END
                END
@sdlime sdlime self-assigned this Jun 6, 2018
@iljya
Copy link

iljya commented Feb 11, 2021

Perhaps you could attach the SVG file you are using for the symbol? I recently ran into a strange issue with SVG symbols and it was due to width/height not being specified in the top-level element. See:
https://gist.github.com/iljya/e67a2a245c6968e685c11498a8361fe0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants