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.2.tar.gz (4.8 kB view details)

Uploaded Source

File details

Details for the file gj2ascii-0.1.2.tar.gz.

File metadata

  • Download URL: gj2ascii-0.1.2.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for gj2ascii-0.1.2.tar.gz
Algorithm Hash digest
SHA256 f7ac1347ead3e188c56c2d27f0327917b009ff3793e2fe9d45682aecfbb80dc2
MD5 33312e00a7fdbcd1a413f75a9294e7bf
BLAKE2b-256 7af940b5fa18689bd9528732e0cd7852331565471548ccf2bd94d3ca41af8e24

See more details on using hashes here.

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