View source: R/clgeo_IsValid.R
clgeo_IsValid | R Documentation |
Wrapper method to try performing rgeos::gIsValid call and catch eventual warnings or errors (in particular GEOS exceptions).
clgeo_IsValid(sp, verbose = FALSE)
sp |
object extending the |
verbose |
object of class "logical". Default value is FALSE. |
an object of class "logical". TRUE if valid, FALSE otherwise
Emmanuel Blondel emmanuel.blondel1@gmail.com
require(sf)
file <- system.file("extdata", "example.shp", package = "cleangeo")
sf <- sf::st_read(file)
sp <- as(sf, "Spatial")
clgeo_IsValid(sp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.