get_WKT: Get WKT (Well Known Text) of sf object

Description Usage Arguments Value Examples

View source: R/get_WKT.R

Description

Not well-tested beyond POLYGON and MULTIPOLYGON objects.

Usage

1
get_WKT(sf_obj)

Arguments

sf_obj

object of class sf

Value

character scalar or string of WKT text depending on number of features in sf_obj

Examples

1
2
nc = sf::st_read(system.file("shape/nc.shp", package="sf"))
get_WKT(nc[22, ])

adamdsmith/nrsmisc documentation built on Aug. 13, 2019, 2:14 p.m.