Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

Try the ANCHORPOINT property of SYMBOL object (You will need mapserver >=6.2) I use this to align symbols that have their tip at middle bottom.

  NAME "symbol_name"
  IMAGE "icons/photo-marker.png"


share|improve this answer

Your Answer


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.