build.vs.grid.fun: Build a sp/sf interpolation grid with the desired spatial...

Description Usage Arguments Value Author(s)

Description

Inspired from https://stackoverflow.com/questions/41787313/how-to-create-a-grid-of-spatial-points, https://www.nceas.ucsb.edu/~frazier/RSpatialGuides/OverviewCoordinateReferenceSystems.pdf, https://gis.stackexchange.com/questions/22843/converting-decimal-degrees-units-to-km-in-r, https://stackoverflow.com/questions/48727511/r-grid-of-points-from-polygon-input

Usage

1
2
build.vs.grid.fun(country_code.chr, NAME_1.chr, res.num, geom.chr, sf.bool,
  EPSG.chr = NULL)

Arguments

country_code.chr

a character specifying the ISO contrycode. Ex : BE for belgium

NAME_1.chr

a character specifying the NAME_1 value for lower than country level information

res.num

A numeric representing the spatial resolution of the desired grid (in meters)

geom.chr

A character specifying the geometry of the interpolation grid. Cant take a value among ("polygons", "centers" or "corners")

sf.bool

A boolean specifying if we want as sp or sf (TRUE for sf)

EPSG.chr

A character specifying the EPSG code of the desired Coordiante Reference System (CRS)

Value

A sf spatial grid with the desired resolution clipped to the Wallonia Polygon

Author(s)

Thomas Goossens - pokyah.github.io


pokyah/geoTools documentation built on May 10, 2019, 1:52 a.m.