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

I'm fairly new to Mapserver and I was able to get US County boundaries to plot. Is there a way to get the County Name to plot in the center of the county? I've searched around and couldn't find any examples of doing this. Perhaps theres a better alternative that I haven't thought of. Thanks

share|improve this question
up vote 1 down vote accepted

You don't mention what you have tried. Using the POSITION property of the LABEL obj, you should be able to place the label in the center of the poly using a value of "cc". The center of a polygon can be a dodgy concept when you have funny shaped polys. The center could actually fall outside of the poly bounds.

Anyway, I would try this as the first, simple approach.

    COLOR  150 150 150
    FONT "sans"
    TYPE truetype
    SIZE 6
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.