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

Ported to R? #23

Closed briatte closed 7 years ago

briatte commented 7 years ago

Do you know if this algorithm been ported to R, and if not, if there are plans to do so?

Since the code is C++, it should be relatively easy to do – although I admit having no clear idea of how to do it.

mourner commented 7 years ago

I'm not aware of any plans to port to R, but you're welcome to do this. I'll be happy to add a note with a link in the readme once it is done.

jolars commented 6 years ago

I have created an R package for polylabel. It is available at https://CRAN.R-project.org/package=polylabelr. Would you please consider linking to it @mourner ?

mourner commented 6 years ago

@jolars sure — would you be open to do a PR?

jolars commented 5 years ago

Sure! https://github.com/mapbox/polylabel/pull/48