[mapserver-dev] Label MINDISTANCE change

Oliver Tonnhofer olt at omniscale.de
Wed Aug 2 08:24:15 PDT 2017


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




More information about the mapserver-dev mailing list