Skip to content

Example project showing usage of the geodjango-tigerleaflet package

License

Notifications You must be signed in to change notification settings

jlillest/geodjango-tigerleaflet-example

Repository files navigation

geodjango-tigerleaflet-example

Example project for geodjango-tigerleaflet app

Built with Cookiecutter Django
License:MIT

Deployment

This repo shows a basic usage of the geodjango-tigerleaflet app.

This project requires:
  • A postgresql database with postgis extension

` psql CREATE DATABASE database_name OWNER user_name; \connect database_name; CREATE EXTENSION postgis; `

  • geodjango-tigerline populated with state and county TIGER data

` wget ftp://ftp2.census.gov/geo/tiger/TIGER2016/STATE/tl_2016_us_state.zip unzip tl_2016_us_state.zip -d tl_2016_us_state.zip wget ftp://ftp2.census.gov/geo/tiger/TIGER2016/COUNTY/tl_2016_us_county.zip unzip tl_2016_us_county.zip -d tl_2016_us_county.zip python manage.py load_tigerleaflet --path=./ <it may take several minutes to load all the state/county data> `

Fire up the web server, navigate to index.html and look through the maps.

Todo

  • automate the downloading, unzipping, importing of tiger data
  • make the tigerleaflet module more generic
  • get tigerline changes accepted and push tigerline models into own package

Thanks

Many thanks to the following:

About

Example project showing usage of the geodjango-tigerleaflet package

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published