Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/derhuerst/geojson-to-svg-cli

Command line tool to convert GeoJSON to SVG.
https://github.com/derhuerst/geojson-to-svg-cli

cli convert geojson svg

Last synced: 4 days ago
JSON representation

Command line tool to convert GeoJSON to SVG.

Awesome Lists containing this project

README

        

# geojson-to-svg-cli

**Command line tool to convert GeoJSON to SVG.**

[![npm version](https://img.shields.io/npm/v/geojson-to-svg-cli.svg)](https://www.npmjs.com/package/geojson-to-svg-cli)
[![build status](https://img.shields.io/travis/derhuerst/geojson-to-svg-cli.svg)](https://travis-ci.org/derhuerst/geojson-to-svg-cli)
![ISC-licensed](https://img.shields.io/github/license/derhuerst/geojson-to-svg-cli.svg)
[![chat on gitter](https://badges.gitter.im/derhuerst.svg)](https://gitter.im/derhuerst)
[![support me on Patreon](https://img.shields.io/badge/support%20me-on%20patreon-fa7664.svg)](https://patreon.com/derhuerst)

## Installing

Run it directly using [npx](https://npmjs.com/package/npx):

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

or install it globally and run it:

```shell
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](https://github.com/derhuerst/geojson-to-svg-cli/issues). Keep in mind that [this project has a code of conduct](CODE_OF_CONDUCT.md).