Description Usage Arguments Value See Also Examples
Convert a bounding box to a SpatialPolygons object Bounding box is first created (in lat/lon) then projected if specified
1 2 3  | as.SpatialPolygons.bbox(bbox,
  proj4stringFrom = sp::CRS("+proj=longlat +datum=WGS84"),
  proj4stringTo = NULL, interpolate = 0)
 | 
bbox | 
 Bounding box: a 2x2 numerical matrix of lat/lon coordinates (rownames must be c('lat','lon') and colnames must be c('min','max'))  | 
proj4stringFrom | 
 Projection string for the current bbox coordinates (defaults to lat/lon, WGS84)  | 
proj4stringTo | 
 Projection string, or NULL to not project  | 
interpolate | 
 If nonzero, the number of nodes per side to add in (helps maintain coverage if you're projecting)  | 
A SpatialPolygons object of the bounding box
clipToExtent which uses the output of this to
clip to a bounding box
1 2 3 4  | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.