Skip to main content

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.

Install

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

ftp://ftp2.census.gov/geo/tiger/TIGER2016/

Unzip the files

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

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

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

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

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

Metadata

Release files for geodjango-tigerline 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for geodjango-tigerline 1.1.0
File Size Uploaded
geodjango-tigerline-1.1.0.tar.gz 5.9 kB Details

Release files / geodjango-tigerline-1.1.0.tar.gz

Download URL geodjango-tigerline-1.1.0.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d898d06f2dfab8cf566e75e349c786d06be5abe0449b9ba79391eb0027887c88
BLAKE2b-256 checksum
How to use checksums
2641817f7376cc7062265a5abfc4d758a7c36b3460ca1dfe24dbc2df41b62acf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.1.0 This release

1 release file

1.0.1

1 release file

1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page