CGAL tools: is there an interface to CGAL or an equivalent toolbox in R?

I am starting to deal with complex and simple polygons, determining if points are inside / outside polygons, etc. (for example http://geomalgorithms.com/a09-_intersect-3.html and related pages). I was hoping to find an R package that provides the implementation of the Bentley-Ottman algorithm, the number of windings, edge intersection, etc.

Alternatively, is there an R interface to the CGAL library or similar toolbox? Is Rcpp the best (or only) way to do this?

+3


source to share


2 answers


The closest thing is probably package:rgeos

. Designed for geospatial applications, polygon overlays, buffering, intersections, etc.



A CGAL wrapper would be very interesting. However, I have a vague feeling that there might be licensing issues ... Partly LGPL and partly GPL, but if you don't want to execute those licenses, you can buy a commercial license.

+4


source


There are SWAG CGAL bindings: http://code.google.com/p/cgal-bindings/ and SWIG supports R, so it should work, but I don't know if it has been tried out.



+2


source







All Articles