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

matlab to javascript GeoJSON-like format, and back #79

Closed octlie closed 3 years ago

octlie commented 3 years ago

Dear All,

I have a 2D polygon defined by (x,y) coordinates array in a .mat file, where coordinates are corresponding to a hAxes coordinate system/handle in a matlab figure. I would like to know how I can convert it to a GeoJSON-like format input for polylabel, also how to translate the output back to the hAxes coordinate system. An additional bonus would be an example of how to call polylabel from matlab, thank you very much, Octavian

mourner commented 3 years ago

Hi Octavian, I'm not familiar with the matlab format, and this is not the place for asking questions anyway (it's for reporting issues with the library) — please try asking on StackOverflow instead.