Converts GeoJSON to Well-Known Text
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
geojson <- '{ "type" : "Point", "coordinates" : [0, 0] }'
geojson_wkt(geojson)
#> geometry
#> 1 POINT (0 0)