Description Usage Arguments Value Author(s) Examples
View source: R/clgeo_IsValid.R
Wrapper method to try performing rgeos::gIsValid call and catch eventual warnings or errors (in particular GEOS exceptions).
1 | 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
1 2 3 4 | require(maptools)
file <- system.file("extdata", "example.shp", package = "cleangeo")
sp <- readShapePoly(file)
clgeo_IsValid(sp)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.