sp_to_wkt: Function to convert a spatial object to a vector of WKT or a...

View source: R/sp_to_wkt.R

sp_to_wktR Documentation

Function to convert a spatial object to a vector of WKT or a tibble containing a WKT variable.

Description

Function to convert a spatial object to a vector of WKT or a tibble containing a WKT variable.

Usage

sp_to_wkt(sp, features = TRUE, data = TRUE, wkt = "geom")

Arguments

sp

Spatial object to convert to WKT.

features

Should features within sp form different WKT strings?

data

If sp contains a data slot, should a data frame be created with a WKT variable?

wkt

Variable name of WKT strings in the returned data frame is data is TRUE.

Value

Tibble.

Author(s)

Stuart K. Grange


skgrange/gissr documentation built on Feb. 24, 2024, 2:55 p.m.