Uses bracket extraction to very quickly select points within a bounding box
A set of bounding coordinates in matrix form like those returned from
Intersect methods (e.g.
rgeos::gIntersection) are very slow for extracting points via a bounding box. This function simply subsets a
SpatialPointsDataFrame object using standard bracket extraction. As a result, it is much faster
Note: all inputs should be of class
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.