This is an FastAPI tile server utilizing the amazing TiMVT library.
Initially this is just their "Minimal Application" example but with CORS enabled, and it also includes a compose file for launching the latest default version of PostGIS. See here for more detail.
Clone this project and set up a virtual environment for installing required packages.
- Python 3.6+
- python3-venv
- docker-compose (if using compose file for PostGIS)
> python3 -m venv ./venv
> source ./venv/bin/activate
> pip install -r requirements.txt
- Copy the
.example.env
file to.env
and fill out environmental variables - Source the
.env
file > docker-compose up
to launch PostGIS- Load data into PostGIS
> python main.py