Hi folks,
I am working on patch that takes some code from the LabelCacheImpl into
RendererUtilities. Basically I want to re-use the logic that attempts to
find a central point that actually lies within a polygon.
The code I have a question about is this, where the size of a sampling
“step” is computed:
https://github.com/geotools/geotools/blob/master/modules/library/render/src/main/java/org/geotools/renderer/label/LabelCacheImpl.java#L1282-L1286
Which if I interpret correctly means always use a step size of “5 units”.
It seems like this would result in a very different amount of steps for
things like geometry size, projection, etc… But perhaps that is the
intention, which is why I am asking. Ultimately what I am wondering is if
it would make sense to specify as an input to the routine the “number of
samples” one would want to perform and then calculate the step size based
on that?
Thanks!
-Justin
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel