mapbox / polylabel

A fast algorithm for finding the pole of inaccessibility of a polygon (in JavaScript and C++)
Other
1.44k stars 151 forks source link

Python wrapper bug #41

Closed drewleonard closed 6 years ago

drewleonard commented 6 years ago

Opening an issue to inform that polylabel() from the linked Python implementation of this library fails when polygons are sufficiently small. (This JavaScript implementation handles this edge case already). I have patched the issue locally and would like to contribute the code, but since the library is from a third-party and this official repository references it, I'm mentioning the issue here.

mourner commented 6 years ago

Thanks! You should report the issue in the corresponding port repo though — opening one here isn't necessary.

drewleonard commented 6 years ago

Okay will do and thank you! Sorry for the trouble—just wanted to make sure you knew.