JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 9339
  • Score
    100M100P100Q127241F
  • License BSD-2-Clause

convert geojson to kml

Package Exports

  • tokml

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (tokml) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Build Status

tokml

Convert GeoJSON to KML.

Usage

with node/browserify

npm install --save tokml

otherwise:

wget https://raw.github.com/mapbox/tokml/master/tokml.js

as a binary:

npm install -g tokml
tokml file.geojson > file.kml
tokml < file.geojson > file.kml

Example

var kml = tokml(geojsonObject);

API

tokml(geojsonObject)

Given GeoJSON data as an object, return KML data as a string of XML.

Development

Requires node.js and browserify:

To build tokml.js:

make

To run tests:

npm install
npm test