geojson2shape

a module for converting a geojson file to a shape file

Usage no npm install needed!

<script type="module">
  import geojson2shape from 'https://cdn.skypack.dev/geojson2shape';
</script>

README

geojson2kml

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

npm install geojson2shape

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

var geojson2shape = require('geojson2shape')

geojson2shape('./polygons.geojson', './polygons.shp', zip, function(err){
  if(err) throw err
})