Skip to main content

A resuable app with the boilerplate necessary for getting TIGER/LINE data into a GeoDjango project.

Project description

This app is intended to make it easier to add TIGER/Line data to a GeoDjango project and save people from writing this same code over and over (collectively).

It is not (yet) exhaustive, it’s just what I had and have needed in the past. If you have models / load scripts for other data in the set, please fork/add and send me a pull request if you add other shapefiles. If you come up with useful manager methods, I’d love to see those too.

It’s been tested and used with Django 1.10 and PostGIS + PostgreSQL.


Download the 2016 Tigerline files for all zipcodes, all states, and all counties

Unzip the files

Configure django.contrib.gis as described in the django docs.

Add “django.contrib.gis” and “tigerline” to INSTALLED_APPS

run python migrate which will run the migrations and make sure database tables are created.

If you want to import all three: run python load_tigerline –path=~/Path/to/shapefiles

Or there are individual management commands if you only need one set: run python load_counties –path=~/Path/to/shapefiles run python load_states –path=~/Path/to/shapefiles run python load_zipcodes –path=~/Path/to/shapefiles

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for geodjango-tigerline, version 1.1.0
Filename, size File type Python version Upload date Hashes
Filename, size geodjango-tigerline-1.1.0.tar.gz (5.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page