[mapserver-dev] 41latitude has an interesting article on google maps labeling

Stephen Woodbridge woodbri at swoodbridge.com
Wed Dec 15 10:07:58 EST 2010

On 12/15/2010 4:47 AM, thomas bonfort wrote:
> Steve,
> Looking at that article, it seems we already have nearly all that is
> needed with simple mapfile syntax and classified data to obtain
> similar results. You do have to ensure that you use label priorities,
> and/or ensure that that your datasource serves out labels by
> increasing order of importance.
> based on the different classes of labels, we have:
> * adjustable size of text
> * adjustable color of text
> * adjustable outline width on text
> * absence of clusters by applying a buffer
> the only thing I see missing is the "collar" around major metropolitan
> cities. We have nearly this with label the label buffer, but this will
> also remove city labels from the metro area.


Yes, we are very close. I was thinking about the collar problem and I'm 
wondering is that can be achieved with something like MINBUFFER and 

     city metro     collar

where O is the city, x is the MINBUFFER, and y is the max buffer and we 
would allow labels between O and MINBUFFER and exclude labels between 

Do you think that this would solve the collar problem?

I'm thinking that this might not be smart enough and we might need 
something like:


Where we apply the collar only to entities where ATTRIB<num which would 
all us to filter small cities, but would allow another major 
metropolitan area to join the current one. You would obviously have to 
have the data ordered by size so that this can be processed in a single 
pass. Also I'm not sure what should happen if the 2nd collar excludes 
the firsts metro zone or vica versa.

if new point is in any metro zone then its ok
elsif new point is in any collar zone then exclude it.

Anyway, I really liked the article and the analysis they did.

   -Steve W

> regards,
> thomas
> On Tue, Dec 14, 2010 at 19:30, Stephen Woodbridge
> <woodbri at swoodbridge.com>  wrote:
>> http://www.41latitude.com/post/2072504768/google-maps-label-readability
>> It would be cool if we could do some of these tricks in mapserver.
>> -Steve W
>> _______________________________________________
>> mapserver-dev mailing list
>> mapserver-dev at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-dev

More information about the mapserver-dev mailing list