Creates a list of tiles ("SpatialPolygons"
) for a given spatial domain i.e. extent. Input can be any object of class "Spatial"
or "GDALobj"
.
# S4 method for Spatial
getSpatialTiles(obj, block.x, block.y = block.x,
overlap.percent = 0, limit.bbox = TRUE, return.SpatialPolygons = TRUE)
# S4 method for ANY
getSpatialTiles(obj, block.x, block.y = block.x,
overlap.percent = 0, limit.bbox = TRUE, return.SpatialPolygons = FALSE)
object of class "Spatial*"
numeric; size of block in x-direction (meters or corresponding mapping units)
numeric; size of block in y-direction (meters or corresponding mapping units)
numeric; percentage overlap (must be a positive number)
logical; specifies whether to limit the extent of tiles to the bounding box only
logical; specifies whether to return a list of tiles as "SpatialPolygons"
or a data frame with bounding box coordinates
Returns a list of tiles either as a list of "SpatialPolygons"
or a data frame with with bounding box coordinates.
The first output tile starts by default at the lower left corner. getSpatialTiles-method
can only be used to generate regular tiles.
tile
, sp::spsample