Skip to content

bhermse/district_tiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Congressional district tile server using TiMVT

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published