powered by
Makes a polygon from a bounding box to use for clipping the coastline, or other SpatialPolygons objects
# S4 method for matrix make.clip.poly(bbox, crs)
SpatialPolygons object
SpatialPolygons
2x2 matrix
CRS object defining the projection of the SpatialPolygons object to be clipped
bbox for creation of bbox matrix from DeponsRaster
bbox
data(bathymetry) bbox <- cbind("min"=c(549517, 6155000), "max"=c(636000, 6210000)) rownames(bbox) <- c("x", "y") clip.poly <- make.clip.poly(bbox, crs(bathymetry))
Run the code above in your browser using DataLab