ra_to_polygons: Function to transform a raster object to spatial polygons.

View source: R/ra_to_polygons.R

ra_to_polygonsR Documentation

Function to transform a raster object to spatial polygons.

Description

Function to transform a raster object to spatial polygons.

Usage

ra_to_polygons(
  ra,
  n = 4,
  na.rm = TRUE,
  digits = 12,
  dissolve = FALSE,
  data = TRUE
)

ra_to_points(ra)

Arguments

ra

Raster object.

n

Number of nodes which make up the polygon (4, 8, or 16).

na.rm

Should raster cells with NAs be omitted?

digits

Number of digits for the coordinates.

dissolve

Should polygons with the same values be dissolved into multi-polygon objects?

data

Should the data slot be dropped?

Value

Spatial polygons (SpatialPolygonsDataFrame or SpatialPolygons).

Author(s)

Stuart K. Grange

See Also

rasterToPolygons


skgrange/gissr documentation built on June 20, 2024, 12:02 a.m.