polygonizer: Polygonizer creates a polygon shapefile from a raster layer

Description Usage Arguments Author(s)

View source: R/PIAC_functions.R

Description

Polygonizer creates a polygon shapefile from a raster layer

Usage

1
2
polygonizer(x, outshape = NULL, pypath = NULL, readpoly = TRUE,
  fillholes = FALSE, aggregate = FALSE, quietish = TRUE)

Arguments

x:

an R Raster layer, or the file path to a raster file recognised by GDAL

outshape:

the path to the output shapefile (if NULL, a temporary file will be created)

pypath:

the path to gdal_polygonize.py or OSGeo4W.bat (if NULL, the function will attempt to determine the location). OSGeo4W can be downloaded from https://trac.osgeo.org/osgeo4w/

readpoly:

should the polygon shapefile be read back into R, and returned by this function? (logical)

fillholes:

should holes be deleted (i.e., their area added to the containing polygon)

aggregate:

should polygons be aggregated by their associated raster value?

quietish:

should (some) messages be suppressed? (logical)

Author(s)

Sietze Norder


richelbilderbeek/rchipelago documentation built on Nov. 5, 2019, 3:10 a.m.