fix_geo_problems {bcmaps}R Documentation

Check and fix polygons that self-intersect, and sometimes can fix orphan holes

Description

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

Usage

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


[Package bcmaps version 1.0.2 Index]