geos_is_valid {geos} | R Documentation |
Geometry validity
Description
-
geos_is_valid()
returns a logical vector denoting if each feature is a valid geometry. -
geos_is_valid_detail()
returns a data frame with columnsis_valid
(logical),reason
(character), andlocation
(geos_geometry).
Usage
geos_is_valid(geom)
geos_is_valid_detail(geom, allow_self_touching_ring_forming_hole = FALSE)
Arguments
geom |
|
allow_self_touching_ring_forming_hole |
It's all in the name |
Examples
geos_is_valid(
c(
"POLYGON ((0 0, 1 0, 1 1, 0 1, 0 0))",
"POLYGON ((0 0, 1 1, 1 0, 0 1, 0 0))"
)
)
geos_is_valid_detail(
c(
"POLYGON ((0 0, 1 0, 1 1, 0 1, 0 0))",
"POLYGON ((0 0, 1 1, 1 0, 0 1, 0 0))"
)
)
[Package geos version 0.2.4 Index]