Skip to contents

TRUE when the geometry holds no coordinates.

Usage

ga_is_empty(geometry)

Arguments

geometry

a GeoArrow geometry array

Value

a boolean array of the same length as geometry

Details

An empty geometry is distinct from a null one. A null geometry gives NA.

References

HasDimensions

Examples

g <- geoarrow::as_geoarrow_array(sf::st_sfc(
  sf::st_point(c(0, 0)),
  sf::st_point()
))

as.vector(ga_is_empty(g))
#> [1] FALSE    NA