Description Usage Arguments Details Examples
Uses bracket extraction to very quickly select points within a bounding box
1 | gBoundingPoints(allpoints, b_box)
|
allpoints |
A |
b_box |
A set of bounding coordinates in matrix form like those returned from |
Intersect methods (e.g. rgeos::gContains
or rgeos::gIntersection
) are very slow for extracting points via a bounding box. This function simply subsets a SpatialPoints
or SpatialPointsDataFrame
object using standard bracket extraction. As a result, it is much faster
Note: all inputs should be of class sp::SpatialPolygons|Points
1 | gBoundingPoints(points.spdf, bbox(container_polygon))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.