Skip to content

Several Node libraries combined for converting SHP, KML, GeoJSON to GeoJSON and TopoJSON

Notifications You must be signed in to change notification settings

Georeactor/geoconverters

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Several Node libraries combined for converting SHP, KML, GeoJSON to GeoJSON and TopoJSON

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published