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 by |
errors.only |
an object of class |
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
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)