1.0.2 • Published 8 years ago

geoconverters v1.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

geoconverters

Combines several Node modules to convert from one geo file to another

Formats accepted

convertKMLtoGeoJSON (uses MapBox's togeojson)

convertGPXtoGeoJSON (uses MapBox's togeojson)

convertGeoJSONtoTopoJSON (uses Mike Bostock's topojson)

convertTopoJSONtoGeoJSON (uses Mike Bostock's topojson)

convertSHPtoGeoJSON (uses Calvin Metcalf's shpjs)

Usage

const converters = require('geoconverters');
converters.convertGeoJSONtoTopoJSON('original.geojson', 'output.topojson', function (err) {
  if (err) {
    throw err;
  }
  console.log('output.topojson was saved');
});

License

MIT license