powered by
Generaye the raster to cover the study region with the preset resolution.
genRaster(sideSdf, dx, dy, idStr)
The SpatialPolygonDataFrame obejct used to constrain the grid border.
x resolution
y resolution
id name
The SpatialPointDataFrame extracted from the generated raster.
The raster object covering the study region.
# NOT RUN { ## 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) # }
Run the code above in your browser using DataLab