Description Usage Arguments Details Value Examples
polygonize
is a faster alternative to rasterToPolygons.
1 | polygonize(raster)
|
raster |
Raster. The binary raster object to be converted. |
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
a spatial object.
1 2 3 4 | ## Not run:
shape <- polygonize(raster)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.