get_geometry {geodimension}R Documentation

Get geometry

Description

Get the geometry of a layer, as it is interpreted to define a geolevel object.

Usage

get_geometry(layer)

Arguments

layer

A sf object.

Details

It will only be valid if one of the three geometries is interpreted: point, line or polygon.

Value

A string.

See Also

Other geolevel definition functions: add_geometry(), check_key(), complete_point_geometry(), coordinates_to_geometry(), geolevel(), get_empty_geometry_instances()

Examples


layer_us_county <- get_level_layer(gd_us, "county")

geometry <- get_geometry(layer_us_county)


[Package geodimension version 2.0.0 Index]