WayneGitShell / GWSDAT

GroundWater Spatiotemporal Data Analysis Tool (GWSDAT) R-Shiny implementation.
https://stats-glasgow.shinyapps.io/GWSDAT
31 stars 7 forks source link

sp::point.in.polygon() only function from sp package, way to replace it? #197

Closed andrejadd closed 6 years ago

andrejadd commented 6 years ago

In order to get rid of 'sp'. Original point.in.polygon() calls C code.

andrejadd commented 6 years ago

It is implemented in file 'src/pip.c' and uses sp types. The function that does the work is InPoly() located in the same file. See copyright note in comment of function (free redistribution, leave copyright note).

Is there a reference implementation out there? InPoly() is based on the book "Computational Geometry in C" (Second Edition).