Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

It seems like all the Mapserver documentation on changing the center-point of a symbol only deals with TYPE 'vector' symbols.

I have pixmap symbol (the standard looking Google marker image thingy) that i'm using with a WMS overlay. Once it's rendered the location the symbol represents ( the symbol center-point ) is the middle of the image. This makes the location the symbol represents seem off. I would rather have the marker's tip/point line up with the location it represents. I'm not sure how to do this. Any advice?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Here's a solution that doesn't require Mapserver at all. Though, i'd rather find out how to do this in Mapserver because this solution seems hackish.

Mapserver renders Pixmap symbols based on the image center point as mentioned above. If the marker center-point is not where we want it, then we just need to change it. Take your marker PNG and open it in GIMP. Click Image > Resize Canvas -- this will resize the transparent canvas behind the marker. Then offset your image to your liking -- for my purposes i just made sure the marker tip was close to the center of the image.

Can anyone tell me how this can be done in Mapserver?

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.