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.

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

1 Answer

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.

LABEL
    COLOR  150 150 150
    FONT "sans"
    TYPE truetype
    SIZE 6
    POSITION cc
END
share|improve this answer
add comment

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.