Home

Awesome

Coanacatl

Coanacatl is a Python extension library for writing Mapbox Vector Tiles, wrapping Mapbox's Wagyu and vtzero libraries.

How to use it?

NOTE: This is pre-alpha proof-of-concept level software. I don't recommend you use this in production code yet!

tile_data = coanacatl.encode(layers, bounds, extents)

Where:

Building and installing

You will need to install a C++11 build system and the GEOS library, e.g: if you are on Ubuntu or Debian:

sudo apt install build-essential libgeos-dev libboost-python-dev

You will also need the Shapely Python library. Install (with or without sudo depending on whether you're installing it globally or locally):

pip install shapely

NOTE: probably other stuff as well! Please file an issue if you find you need additional dependencies.

Please make sure that the git submodules are initialise and updated:

git submodule update --init --recursive

Then run the setup.py installation procedure:

python setup.py install

Current limitations

Contributing

Coanacatl welcomes contributions! If you find a bug, please look through the existing issues and, if you don't find something related, please file a new one. It helps if you can give as much detail as possible when writing an issue, particularly about the versions of software you are using. If you can reduce it to a reproducible test case, that's awesome and helps us a lot when we're trying to fix it!

To submit changes, please fork this project into your own organisation, make your changes on an appropriately-named branch, and submit a Pull Request. Thank you!

What's with the name?

"Coanacatl" is the Nahuatl word for snake meat, which seemed fitting as this is a Python wrapper around Wagyu. Plus some other trimmings, but I couldn't think of a way to work vtzero in there as well!