Skip to content


Subversion checkout URL

You can clone with
Download ZIP
a node.js module for converting geojson to a shape file
Branch: master
Failed to load latest commit information.
test switched to absolute paths
.DS_Store packaged dependencies
.gitignore Initial commit
LICENSE Initial commit updated docs
index.js switched to absolute paths
package.json packaged dependencies


a node.js module for converting a geojson file to a shapefile

npm install geojson2shape

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

var geojson2shape = require('geojson2shape')
// a shapefile is actually multiple files. geojson2shape will output a zipped version if specified.
var zip = true
geojson2shape(__dirname+'/polygons.geojson', __dirname+'/polygons.shp', function(err){
  if(err) throw err
Something went wrong with that request. Please try again.