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