polygonize: polygonize

Description Usage Arguments Details Value Examples

Description

polygonize is a faster alternative to rasterToPolygons.

Usage

1
polygonize(raster)

Arguments

raster

Raster. The binary raster object to be converted.

Details

This is an alternative function to rasterToPolygons, which pretends to be the fastest way to perform this task. Original idea from gdal_polygonizeR() It also offers a directly way to create a mask from a binary raster.

It has a dependency on GDAL Tools to be installed

Value

a spatial object.

Examples

1
2
3
4
## Not run: 
shape <- polygonize(raster)

## End(Not run)

ahornero/rsensing documentation built on May 8, 2019, 1:37 a.m.