Learn R Programming

rleafmap (version 0.2)

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?

See Also

writeOGR and its driver "GeoJSON" for GeoJSON export.