Learn R Programming

GSIF (version 0.5-3)

getSpatialTiles: Get a list of tiles (regular blocks)

Description

Creates a list of tiles ("SpatialPolygons") for a given spatial domain i.e. extent. Input can be any object of class "Spatial" or "GDALobj".

Usage

"getSpatialTiles"(obj, block.x, block.y = block.x, overlap.percent = 0, limit.bbox = TRUE, return.SpatialPolygons = TRUE) "getSpatialTiles"(obj, block.x, block.y = block.x, overlap.percent = 0, limit.bbox = TRUE, return.SpatialPolygons = FALSE)

Arguments

obj
object of class "Spatial*"
block.x
numeric; size of block in x-direction (meters or corresponding mapping units)
block.y
numeric; size of block in y-direction (meters or corresponding mapping units)
overlap.percent
numeric; percentage overlap (must be a positive number)
limit.bbox
logical; specifies whether to limit the extent of tiles to the bounding box only
return.SpatialPolygons
logical; specifies whether to return a list of tiles as "SpatialPolygons" or a data frame with bounding box coordinates

Value

"SpatialPolygons" or a data frame with with bounding box coordinates.

Details

The first output tile starts by default at the lower left corner. getSpatialTiles-method can only be used to generate regular tiles.

See Also

tile, sp::spsample