powered by
Wrapper method to try performing rgeos::gIsValid call and catch eventual warnings or errors (in particular GEOS exceptions).
clgeo_IsValid(sp, verbose = FALSE)
an object of class "logical". TRUE if valid, FALSE otherwise
object extending the Spatial-class as defined in sp
Spatial-class
object of class "logical". Default value is FALSE.
Emmanuel Blondel emmanuel.blondel1@gmail.com
# \donttest{ require(sf) file <- system.file("extdata", "example.shp", package = "cleangeo") sf <- sf::st_read(file) sp <- as(sf, "Spatial") clgeo_IsValid(sp) # }
Run the code above in your browser using DataLab