Extract feature geometry type

geo_geometry_type(x)

# S3 method for default
geo_geometry_type(x)

# S3 method for wk_wkt
geo_geometry_type(x)

# S3 method for wk_wkb
geo_geometry_type(x)

# S3 method for wk_wksxp
geo_geometry_type(x)

Arguments

x

A geometry-like object, or one that can be coerced to a geometry-like object using as_geovctr().

Value

A character vector with lowercase geometry types

Examples

geo_geometry_type("POINT EMPTY")
#> [1] "point"