Skip to content

fGrid2Poly

FLFgit edited this page Oct 14, 2021 · 2 revisions

Function to convert raster cells to polygons

Source

https://github.com/FLFgit/ScaleP/blob/master/functions/fGrid2Poly.R

Parameter

  • RASTER.DIR -> directory with raster file
  • RASTER.FILE -> name of raster file
  • RASTER.FRM -> format of raster file
  • RASTER.EPSG -> EPSG code of raster file
  • AGG=TRUE -> option "aggregation" is TRUE
  • AGG.FCT=1 -> aggregation factor
  • OUT.DIR -> directory with result

Result

  • [RASTER.DIR][RASTER.FILE].shp -> Shape file of converting result

Clone this wiki locally