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.
Examples
By default every geometry is rendered individually and the user paginates through them by pressing return:
Use the --all flag to render the entire layer:
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
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34714e6846fa59c545625561bf2da7fce72ebff56401101dae42f4c18774b9cc |
|
MD5 | 3210852a833ca6dc0061aecc1cc16840 |
|
BLAKE2b-256 | c039fa6a17138fb482d2db3f5617598cee1752fce6389d8d003c5acfb5e2ef11 |