Description Usage Arguments Author(s)
View source: R/PIAC_functions.R
Polygonizer creates a polygon shapefile from a raster layer
1 2 |
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) |
Sietze Norder
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.