genRaster: Generation of Raster Covering the Side Map

Description Usage Arguments Value Examples

View source: R/genRaster.R

Description

Generaye the raster to cover the study region with the preset resolution.

Usage

1
genRaster(sideSdf, dx, dy, idStr)

Arguments

sideSdf

The SpatialPolygonDataFrame obejct used to constrain the grid border.

dx

x resolution

dy

y resolution

idStr

id name

Value

PntObj

The SpatialPointDataFrame extracted from the generated raster.

Rst

The raster object covering the study region.

Examples

1
2
3
4
5
## Use the Shandong province as an example:
data("prnside")
ret=genRaster(prnside,dx=2000,dy=2000,idStr="gid")
raster::plot(ret$Rst)
raster::plot(ret$PntObj)

lspatial/sptemUS documentation built on May 29, 2019, 3:42 a.m.