Learn R Programming

geojsonsf (version 2.0.3)

geojson_wkt: Geojson to WKT

Description

Converts GeoJSON to Well-Known Text

Usage

geojson_wkt(geojson)

Arguments

geojson

string or vector of GeoJSON, or a URL or file pointing to a geojson file

Value

data.frame with a 'geometry' column of well-known text

Examples

Run this code
# NOT RUN {
geojson <- '{ "type" : "Point", "coordinates" : [0, 0] }'
geojson_wkt(geojson)

# }

Run the code above in your browser using DataLab