Skip to contents

Get the geometry of a layer. It will only be valid if one of the two geometries is interpreted: point or polygon.

Usage

get_layer_geometry(layer)

Arguments

layer

A sf object.

Value

A string.

Examples


geometry <- get_layer_geometry(us_layer_state)