[mapserver-dev] Label MINDISTANCE change
Lime, Steve D (MNIT)
steve.lime at state.mn.us
Thu Aug 3 12:25:04 PDT 2017
I think what you’re proposing is the right way do to it. My only concern would be the performance hit associated with the more complex computation - athough that's probably offset by having to draw fewer labels. So I'm +1 on the change.
Steve
-----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