View source: R/geos-unary-atomic.R
geos_is_valid | 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 |
A GEOS geometry vector |
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))"
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.