grid_spatialpolygons: Build a map grid spatialpolygons

Description Usage Arguments Value

Description

The function download from NaturalEarth database a worldmap raster. A grid is built from this raster. Then it returns a spatialpolygons object from 'sp' package of each site of the grid.

Usage

1
2
3
4
5
grid_spatialpolygons(
  siteSize = 260000,
 
    projectionCRS = "+proj=cea +lon_0=0 +lat_ts=30 +x_0=0 +y_0=0 +datum=WGS84 +ellps=WGS84 +units=m +no_defs"
)

Arguments

siteSize

size of each cell of the grid in meter

projectionCRS

Interface class to the PROJ projection and transformation system. Default value is "+proj=cea +lon_0=0 +lat_ts=30 +x_0=0 +y_0=0 +datum=WGS84 +ellps=WGS84 +units=m +no_defs"

Value

a spatialpolygons object of all sites of the grid into the projection 'projectionCRS' given as argument


Grelot/rgeogendiv documentation built on Dec. 22, 2020, 5:51 a.m.