Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[GEOT-5502] First implementation of Pole of inaccessibility. #1287
Vladimir Agafonkin came up with an algorithm for calculating poles of inaccessibility to give good labelling points for odd shaped polygons.
See https://www.mapbox.com/blog/polygon-center/ for a discussion of algorithm
This implements this functionality and makes it available as a function so it could be added to GeoServer SLD files.
Thinking out loud and without having checked the pull request.... is this worth turning into a text symbolizer vendor option too? If it's fast enough it could become the default poly center implementation, with the vendor option still allowing it to turn it off and get the old behavior, but most of the people would get the benefit without needing to alter all their SLDs.