Learn R Programming

bcmaps (version 0.6.0)

fix_self_intersect: Check and fix polygons that self-intersect

Description

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

Usage

fix_self_intersect(sp_obj)

Arguments

sp_obj
The SpatialPolygons* object to check/fix

Value

The SpatialPolygons* object, repaired if necessary