Skip to contents

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

Usage

get_geometry(layer)

Arguments

layer

A sf object.

Value

A string.

Details

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

See also

Examples


layer_us_county <- get_level_layer(gd_us, "county")

geometry <- get_geometry(layer_us_county)