You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if this is related to #25 or not, but I couldn't get a working solution from that issue.
From what I can tell this will always return [NaN, NaN] for a MultiPolygon. I have a few disconnected polygons, and for each one I can do polylabel(feature.geometry.coordinates) to get a point for each. However, if I want the pole of inaccessibility for all the features combined, the following both just give me [NaN, NaN]:
Is this the intended behavior? Currently when I run into this situation I use polylabel for each one, then figure out which one is closest to the centroid of the unioned MultiPolygon. Maybe other option would be to get the pole of inaccessibility of the largest Polygon.
The text was updated successfully, but these errors were encountered:
Yeah, Polylabel was designed to only handle individual polygons. For multipolygons, I think a good approach would be to implement #2 first, and then you'd just pick the point with the biggest distance.
I'm not sure if this is related to #25 or not, but I couldn't get a working solution from that issue.
From what I can tell this will always return
[NaN, NaN]
for aMultiPolygon
. I have a few disconnected polygons, and for each one I can dopolylabel(feature.geometry.coordinates)
to get a point for each. However, if I want the pole of inaccessibility for all the features combined, the following both just give me[NaN, NaN]
:Is this the intended behavior? Currently when I run into this situation I use
polylabel
for each one, then figure out which one is closest to thecentroid
of the unionedMultiPolygon
. Maybe other option would be to get the pole of inaccessibility of the largestPolygon
.The text was updated successfully, but these errors were encountered: