Learn R Programming

cleangeo (version 0.3-1)

clgeo_SuspiciousFeatures: 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)

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)

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

Author

Emmanuel Blondel emmanuel.blondel1@gmail.com

See Also

clgeo_CollectionReport

Examples

Run this code
 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)

Run the code above in your browser using DataLab