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

Bug repot: calculated center is out of polygon #112

Closed skywalkerlw closed 4 months ago

skywalkerlw commented 7 months ago

Here is an example

150.9352184,-33.880303 150.9356689,-33.8801071 150.9352372,-33.8802915 150.9352184,-33.880303

image

mourner commented 7 months ago

What precision value do use use when calling polylabel? This is probably the same as #78 and other similar issues.