toGeoJSON: Convert a spl object to GeoJSON format

Description Usage Arguments Value See Also

View source: R/toGeoJSON.R

Description

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

Usage

1
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.

See Also

writeOGR and its driver "GeoJSON" for GeoJSON export.


fkeck/rleafmap documentation built on May 14, 2017, 1:23 a.m.