Description Usage Arguments Value Note Author(s) Examples
Function to clean a spatial data collection
1 | clgeo_Clean(sp, errors.only = NULL, strategy = "POLYGONATION", verbose = FALSE)
|
sp |
object extending the |
errors.only |
an object of class |
strategy |
advanced strategy to clean geometries. Default is "POLYGONATION", alternate value is "BUFFER" (old method). |
verbose |
Indicates wether the clean logs have to be printed. Default value is FALSE. |
an object extending the Spatial-class
as defined in sp, with cleaned geometries.
About cleaning strategy: The polygonation method is a tentative alternate method to triangulation to clean geometries and to the classical often used 'buffer' approach. In the polygonation method, triangulation is skipped and a re-polygonation intuitive algorithm is applied to rebuild the source invalid geometry into one or more valid polygonal geometries.
Emmanuel Blondel emmanuel.blondel1@gmail.com
1 2 3 4 5 6 7 | require(maptools)
file <- system.file("extdata", "example.shp", package = "cleangeo")
sp <- readShapePoly(file)
sp.clean <- clgeo_Clean(sp)
report.clean <- clgeo_CollectionReport(sp.clean)
clgeo_SummaryReport(report.clean)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.