geojson2dsv

0.1.0 • Public • Published

Build Status Coverage Status Greenkeeper badge

geojson2dsv

The reverse of csv2geojson: shuttle GeoJSON points into CSV encoding.

API

geojson2dsv

Given a valid GeoJSON object, return a CSV composed of all decodable points.

Parameters

  • geojson Object any GeoJSON object
  • delim string CSV or DSV delimiter: by default, ","
  • mixedGeometry boolean? serialize just the properties of non-Point features. (optional, default false)

Examples

var csvString = geojson2dsv(geojsonObject)

see also

  • geojson2csv also does this, but has file-assumptions and does dsv encoding in-house instead of farming it out to mbostock/dsv

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    27
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    27
  • 0.0.1
    1
  • 0.0.0
    6

Package Sidebar

Install

npm i geojson2dsv

Weekly Downloads

21

Version

0.1.0

License

BSD-2-Clause

Last publish

Collaborators

  • tmcw