R/geojson_wkt.R
geojson_wkt.Rd
Converts GeoJSON to Well-Known Text
geojson_wkt(geojson)
string or vector of GeoJSON, or a URL or file pointing to a geojson file
data.frame with a 'geometry' column of well-known text
geojson <- '{ "type" : "Point", "coordinates" : [0, 0] }' geojson_wkt(geojson) #> geometry #> 1 POINT (0 0)