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.


fkeck/rleafmap documentation built on Oct. 23, 2023, 12:27 a.m.