g_is_valid | R Documentation |
g_is_valid()
tests whether a geometry is valid.
g_is_valid(wkt)
wkt |
Character. OGC WKT string for a simple feature geometry. |
logical scalar. TRUE
if the geometry is valid, otherwise
FALSE
.
g1 <- "POLYGON ((0 0, 10 10, 10 0, 0 0))"
g_is_valid(g1)
g2 <- "POLYGON ((0 0, 10 10, 10 0, 0 1))"
g_is_valid(g2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.