R/extendr-wrappers.R
ga_is_empty.Rd
TRUE when the geometry holds no coordinates.
TRUE
ga_is_empty(geometry)
a GeoArrow geometry array
a boolean array of the same length as geometry
geometry
An empty geometry is distinct from a null one. ga_is_empty() returns NA for a null geometry.
ga_is_empty()
NA
HasDimensions
Other topology: ga_contains(), ga_coordinate_position(), ga_dimension(), ga_equals_exact(), ga_filter(), ga_join(), ga_relate(), ga_sparse_equals_exact(), ga_sparse_intersects(), ga_sparse_pairs()
ga_contains()
ga_coordinate_position()
ga_dimension()
ga_equals_exact()
ga_filter()
ga_join()
ga_relate()
ga_sparse_equals_exact()
ga_sparse_intersects()
ga_sparse_pairs()
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