toGeoJSON: 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)
Value
A character string of GeoJSON formatted code.
Arguments
- x
a spl object.
- lightjson
logical. Should GeoJSON code size be reduced by supressing extra whitespace characters and rounding numeric values?