Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spatial conditions - add sub for point in polygon test #221

Closed
GoogleCodeExporter opened this issue Mar 27, 2015 · 4 comments
Closed

spatial conditions - add sub for point in polygon test #221

GoogleCodeExporter opened this issue Mar 27, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

e.g.:
sp_point_in_poly (polygon => [[0,0],[0,1],[1,1],[1,0],[0,0]], point => 
[0.5,0.5])

Use @coord or @nbrcoord as the default point, if only two axes are specified.

sp_point_in_poly (polygon => [[0,0],[0,1],[1,1],[1,0],[0,0]], point => \@coord)

This can use the Math::Polygon library under the bonnet.
http://search.cpan.org/~markov/Math-Polygon-1.01/lib/Math/Polygon.pod

Original issue reported on code.google.com by shawnlaffan on 24 Feb 2011 at 1:17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants