Skip to main content

Render GeoJSON as ASCII on the commandline.

Project description

Render GeoJSON as ASCII on the commandline.

Inspired by Twitter, vtcraghead, and dnomadb. Needs a better name.

https://raw.githubusercontent.com/geowurster/gj2ascii/master/docs/WV.png

Examples

By default every geometry is rendered individually and the user paginates through them by pressing return:

https://raw.githubusercontent.com/geowurster/gj2ascii/master/docs/paginate.png

Use the --all flag to render the entire layer:

https://raw.githubusercontent.com/geowurster/gj2ascii/master/docs/polygons.png

Caveats

The aspect ration of a character on the commandline is not equal so there is some vertical distortion.

Relies on [Fiona](http://toblerity.org/fiona/) for reading vector data, so reading delimited JSON or JSON from a file or stdin is not yet supported. It would be extra slick if this could take the output from fio cat.

Installing

Via pip:

pip install gj2ascii

Developing

$ git clone https://github.com/geowurster/gj2ascii.git
$ cd gj2ascii
$ virtualenv venv
$ source venv/bin/activate
$ pip install -e .

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gj2ascii-0.1.1.tar.gz (4.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page