[mapserver-dev] Label MINDISTANCE change

Lime, Steve D (MNIT) steve.lime at state.mn.us
Fri Aug 4 09:27:41 PDT 2017


If there are no objections then I'm going to merge this one at the end of the day. Thanks Oliver!

-----Original Message-----
From: mapserver-dev [mailto:mapserver-dev-bounces at lists.osgeo.org] On Behalf Of Oliver Tonnhofer
Sent: Wednesday, August 02, 2017 10:24 AM
To: mapserver-dev at lists.osgeo.org
Subject: [mapserver-dev] Label MINDISTANCE change

Hi all,

a few month ago I noticed that LABEL MINDISTANCE doesn't really work as advertised. 
The documentation says 'Minimum distance between duplicate labels', but it only calculates the distance of the label center.

I created an issue with a bit more background and also two images to highlight the issue. https://github.com/mapserver/mapserver/issues/5369

I now created a fix for that with https://github.com/mapserver/mapserver/pull/5464

This will change the output of existing styles that use the MINDISTANCE feature. Less labels are expected as the MINDISTANCE is now calculated from the label bounds and not the label center.

I added a note in the HISTORY.txt and also propose to extend the documentation: https://github.com/olt/mapserver-docs/commit/65d8c8bc0bb15f7c1ac84fb37bc38a26106f3276

Do you have any objections for this change?

Kind regards,
Oliver

-- 
Oliver Tonnhofer  | Omniscale GmbH & Co KG  | https://omniscale.com
OpenStreetMap WMS and tile services         | https://maps.omniscale.com


_______________________________________________
mapserver-dev mailing list
mapserver-dev at lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-dev


More information about the mapserver-dev mailing list