clgeo_SuspiciousFeatures: clgeo_SuspiciousFeatures

Description Usage Arguments Value Author(s) See Also Examples

View source: R/clgeo_SuspiciousFeatures.R

Description

Function to get the list of index of suspicious geometries within a spatial data collection, given a spatial data collection report returned by the function clgeo_CollectionReport

Usage

1
clgeo_SuspiciousFeatures(report, errors.only = NULL)

Arguments

report

a report object as returned byclgeo_CollectionReport

errors.only

an object of class vector giving the types of errors for which the output should bounded. Default value is NULL (i.e. the output will include features for which both errors and errors were raised.). At now, this argument only accepts the error type "ORPHANED_HOLE".

Value

an object of class vector giving the numeric indexes of spatial objects tagged as suspicious (i.e. that are not valid acccording to OGC specifications)

Author(s)

Emmanuel Blondel emmanuel.blondel1@gmail.com

See Also

clgeo_CollectionReport

Examples

1
2
3
4
5
6
 require(maptools)
 file <- system.file("extdata", "example.shp", package = "cleangeo")
 sp <- readShapePoly(file)
 
 report <- clgeo_CollectionReport(sp)
 nv <- clgeo_SuspiciousFeatures(report)

cleangeo documentation built on April 17, 2021, 5:06 p.m.