A CLI version for [coordtransform](https://github.com/wandergis/coordtransform) module that can transform geojson file.
JavaScript Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin init project Sep 10, 2016
test add deepclone Sep 12, 2016
.gitignore Initial commit Sep 10, 2016
.npmignore add deepclone Sep 12, 2016
LICENSE Initial commit Sep 10, 2016
README.md # to ### Sep 10, 2016
index.js add deepclone Sep 12, 2016
package.json add deepclone Sep 12, 2016

README.md

coordtransform-cli

A CLI version for coordtransform module.

CLI Usage

npm install -g coordtransform-cli

Usage: coordtransform -t typename input output

Options:
  -t, --type  transform type.
     [string] [required] [choices: "bd09togcj02", "gcj02tobd09", "wgs84togcj02", "gcj02towgs84"]
  -h, --help  Show help                                [boolean]

Examples:
  coordtransform -t bd09togcj02  input.geojson output.geojson

Node or browser Usage

npm install coordtransform-cli

var transformGeoJSON = require('coordtransform-cli');
var anygeojson = { type: 'Point', coordinates: [118, 34] };
var result = transformGeoJSON(anygeojson, 'wgs84togcj02');
console.log(result);