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 details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for gj2ascii-0.1.1.tar.gz
Algorithm Hash digest
SHA256 34714e6846fa59c545625561bf2da7fce72ebff56401101dae42f4c18774b9cc
MD5 3210852a833ca6dc0061aecc1cc16840
BLAKE2b-256 c039fa6a17138fb482d2db3f5617598cee1752fce6389d8d003c5acfb5e2ef11

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