Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 1.16 KB

README.md

File metadata and controls

36 lines (24 loc) · 1.16 KB

District Tiler Example

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.

District Tiler District Tiler with Base Map

Live Example

Getting Started

Clone this project and set up a virtual environment for installing required packages.

Prerequisites

  • Python 3.6+
  • python3-venv
  • docker-compose (if using compose file for PostGIS)

Installing

> python3 -m venv ./venv
> source ./venv/bin/activate
> pip install -r requirements.txt

Running

  • 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