clgeo_IsValid: clgeo_IsValid

Description Usage Arguments Value Author(s) Examples

Description

Wrapper method to try performing rgeos::gIsValid call and catch eventual warnings or errors (in particular GEOS exceptions).

Usage

1
clgeo_IsValid(sp, verbose = FALSE)

Arguments

sp

object extending the Spatial-class as defined in sp

verbose

object of class "logical". Default value is FALSE.

Value

an object of class "logical". TRUE if valid, FALSE otherwise

Author(s)

Emmanuel Blondel [email protected]

Examples

1
2
3
4
 require(maptools)
 file <- system.file("extdata", "example.shp", package = "cleangeo")
 sp <- readShapePoly(file)
 clgeo_IsValid(sp)

eblondel/cleangeo documentation built on May 15, 2019, 7:33 p.m.