Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^3: Speeding up point-in-polygonby explorer (Chaplain) |
on Jul 24, 2006 at 10:39 UTC ( [id://563231]=note: print w/replies, xml ) | Need Help?? |
If you can reduce the data to cartesian coords. and the entire zone can reside into RAM, PDL is the faster solution. Example: If $zone is a piddle of bytes with an 1 where the point's coords, you can retrieve the coords of points into polygon's box limits with: Now, you will have the coords of all points into the $area: This is the fast clipping method if you can reduce the data universe to cartesian coords. And PDL is a C compiled library.
In Section
Seekers of Perl Wisdom
|
|