Skip to contents

Set the geometry column of a simple feature (sf) data frame, making it particularly useful in data processing pipelines. By specifying the name of the geometry column, users can ensure that spatial operations utilize the correct data.

Usage

setGeometry(x, Name)

Arguments

x

A simple feature (sf) data frame. This is the data frame whose geometry column will be set or changed.

Name

A string specifying the name of the geometry column to be used or set in the x data frame.

Value

The modified simple feature (sf) data frame with the updated geometry column. The function returns the original data frame x with its geometry column set to Name.

Author

Ahmed El-Gabbas