fix_geom: Fix polygon geometries

View source: R/fix_geom.R

fix_geomR Documentation

Fix polygon geometries

Description

Function to check validity and fix broken geometries in simple features polygon objects

Usage

fix_geom(x, n_it = 10)

Arguments

x

Polygon layer to be checked and fixed. sf object.

n_it

Number of iterations. Default is 10. Numeric..

Value

Returns a sf polygon object, with self-intersections and other geometry problems fixed.

Examples

# Assignment of a single variable (sums)
## Not run: 
data(clea_deu2009)
out_1 <- fix_geom(clea_deu2009)

## End(Not run)

zhukovyuri/SUNGEO documentation built on Nov. 5, 2023, 1:07 p.m.