R/geojson_wkt.R

Defines functions geojson_wkt

Documented in geojson_wkt

#' Geojson to WKT
#'
#' Converts GeoJSON to Well-Known Text
#'
#' @return data.frame with a 'geometry' column of well-known text
#'
#' @inheritParams geojson_sfc
#'
#' @examples
#' geojson <- '{ "type" : "Point", "coordinates" : [0, 0] }'
#' geojson_wkt(geojson)
#'
#' @export
geojson_wkt <- function(geojson) rcpp_geojson_to_wkt(geojson)

Try the geojsonsf package in your browser

Any scripts or data that you put into this service are public.

geojsonsf documentation built on May 31, 2022, 1:05 a.m.