Learn R Programming

bcmaps (version 0.6.1)

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

Description

This uses the common method of buffering by zero, using gBuffer in the rgeos package.

Usage

fix_geo_problems(sp_obj)
fix_self_intersect(sp_obj)

Arguments

sp_obj
The SpatialPolygons* object to check/fix

Value

The SpatialPolygons* object, repaired if necessary

Details

fix_self_intersect is the old name and is an alias for the better named fix_geo_problems. It will be removed in a future version of bcmaps.