R/utils.R
fix_geo_problems.Rd
For sf
objects, uses sf::st_make_valid
.
Otherwise, uses the common method of buffering by zero.
fix_geo_problems(obj, tries = 5)
The SpatialPolygons* or sf object to check/fix
The maximum number of attempts to repair the geometry. Ignored for sf
objects.
The SpatialPolygons*
or sf
object, repaired if necessary
fix_self_intersect
has been removed and will no longer work. Use
fix_geo_problems
instead