Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
a node.js module for converting geojson to kml
branch: master
Failed to load latest commit information.
test switched to absolute paths
.DS_Store switched to absolute paths
.gitignore Initial commit
LICENSE Initial commit
README.md test instructions
index.js switched to absolute paths
package.json update

README.md

geojson2kml

a node.js module for converting geojson to kml

npm install geojson2kml

This module is a simple wrapper around ogr2ogr that takes a geojson file and outputs a kml file. ogr2ogr must be installed to use this module.

var geojson2kml = require('geojson2kml')

geojson2kml('/path/to/polygons.geojson', '/path/to/polygons.kml', function(err){
  if(err) throw err
})

Test

cd test
mocha .
Something went wrong with that request. Please try again.