fix_geo_problems: Check and fix polygons that self-intersect, and sometimes can...

Description Usage Arguments Details Value

View source: R/utils.R

Description

For sf objects, uses sf::st_make_valid. Otherwise, uses the common method of buffering by zero.

Usage

1
fix_geo_problems(obj, tries = 5)

Arguments

obj

The SpatialPolygons* or sf object to check/fix

tries

The maximum number of attempts to repair the geometry. Ignored for sf objects.

Details

fix_self_intersect has been removed and will no longer work. Use fix_geo_problems instead

Value

The SpatialPolygons* or sf object, repaired if necessary


bcmaps documentation built on March 10, 2021, 1:06 a.m.