clgeo_SuspiciousFeatures {cleangeo}R Documentation

clgeo_SuspiciousFeatures

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

clgeo_SuspiciousFeatures(report, errors.only = NULL)

Arguments

report

a report object as returned byclgeo_CollectionReport 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.).

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.).

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

 require(sf)
 file <- system.file("extdata", "example.shp", package = "cleangeo")
 sf <- sf::st_read(file)
 sp <- as(sf, "Spatial")
 
 report <- clgeo_CollectionReport(sp)
 nv <- clgeo_SuspiciousFeatures(report)


[Package cleangeo version 0.3-1 Index]