rgeos::gIsValid failures in SpatialPolygonsR/postProcess.R
fixErrors.SpatialPolygons.RdThis uses raster::buffer(..., width = 0) internally, which fixes some
failures to rgeos::gIsValid
# S3 method for SpatialPolygons fixErrors(x, objectName = NULL, attemptErrorFixes = TRUE, useCache = getOption("reproducible.useCache", FALSE), ...)
| x | A |
|---|---|
| objectName | Optional. This is only for messaging; if provided, then messages relayed to user will mention this. |
| attemptErrorFixes | Will attempt to fix known errors. Currently only some failures
for SpatialPolygons* are attempted. Notably with |
| useCache | Logical, default |
| ... | Passed to methods. None currently implemented. |