geos_is_valid {geos} | R Documentation |
geos_is_valid()
returns a logical vector denoting if each feature
is a valid geometry.
geos_is_valid_detail()
returns a data frame with columns is_valid
(logical),
reason
(character), and location
(geos_geometry).
geos_is_valid(geom)
geos_is_valid_detail(geom, allow_self_touching_ring_forming_hole = FALSE)
geom |
|
allow_self_touching_ring_forming_hole |
It's all in the name |
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))"
)
)