clgeo_CollectionReport: clgeo_CollectionReport

View source: R/clgeo_CollectionReport.R

clgeo_CollectionReportR Documentation

clgeo_CollectionReport

Description

Function to get a spatial data collection validation report. The function outputs a data.frame binding all geometry validity reports, each one produced by clgeo_GeometryReport

Usage

clgeo_CollectionReport(sp)

Arguments

sp

object extending the Spatial-class as defined in sp

Value

an object of class data.frame with the following columns:

  • type eventual rgeos issue

  • valid geometry validity status (according to OGC specifications)

  • issue_type type of geometry issue

  • error_msg catched message when error raised about geometry

  • warning_msg catched message when warning raised about geometry

Author(s)

Emmanuel Blondel emmanuel.blondel1@gmail.com

See Also

clgeo_GeometryReport

Examples

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


cleangeo documentation built on Sept. 1, 2023, 5:08 p.m.