clgeo_IsValid {cleangeo} | R Documentation |
clgeo_IsValid
Description
Wrapper method to try performing rgeos::gIsValid call and catch eventual warnings or errors (in particular GEOS exceptions).
Usage
clgeo_IsValid(sp, verbose = FALSE)
Arguments
sp |
object extending the |
verbose |
object of class "logical". Default value is FALSE. |
Value
an object of class "logical". TRUE if valid, FALSE otherwise
Author(s)
Emmanuel Blondel emmanuel.blondel1@gmail.com
Examples
require(sf)
file <- system.file("extdata", "example.shp", package = "cleangeo")
sf <- sf::st_read(file)
sp <- as(sf, "Spatial")
clgeo_IsValid(sp)
[Package cleangeo version 0.3-1 Index]