geojson-to-svg-cli

April 29, 2025 ยท View on GitHub

Command line tool to convert GeoJSON to SVG.

npm version ISC-licensed minimum Node.js version support me via GitHub Sponsors chat with me via Matrix

Installing

Run it directly using npx:

cat example.geo.json | npx geojson-to-svg-cli > example.svg

or install it globally and run it:

npm install -g geojson-to-svg-cli
cat example.geo.json | geojson-to-svg-cli > example.svg

Usage

Usage:
    geojson-to-svg [-p mercator]
Options:
    --projection  -p  Which projection to use. Default: mercator
                      Refer to npmjs.com/projections for a list.
Examples:
    cat example.geo.json | geojson-to-svg -p lambert > example.svg

Contributing

If you have a question, found a bug or want to propose a feature, have a look at the issues page. Keep in mind that this project has a code of conduct.