toGeoJSON: Convert a spl object to GeoJSON format

View source: R/toGeoJSON.R

toGeoJSONR Documentation

Convert a spl object to GeoJSON format

Description

This function is used internally by writeMap to convert a given spl object to GeoJSON format.

Usage

toGeoJSON(x, lightjson = F)

Arguments

x

a spl object.

lightjson

logical. Should GeoJSON code size be reduced by supressing extra whitespace characters and rounding numeric values?

Value

A character string of GeoJSON formatted code.


rleafmap documentation built on Oct. 20, 2023, 5:08 p.m.