Skip to content
This repository has been archived by the owner on Feb 1, 2020. It is now read-only.

Boundary service

jpmckinney edited this page Dec 17, 2012 · 11 revisions

You'll need PostgreSQL 9.0 and PostGIS 1.5. Read Open Government: Local's excellent instructions to install these prerequisites.

Billy uses represent-boundaries, not django-boundaryservice.

Getting started

  1. Add or uncomment the following in your requirements.txt

     -e git+http://github.com/rhymeswithcycle/represent-boundaries.git#egg=represent-boundaries
    
  2. Add or uncomment BOUNDARY_SERVICE_URL = 'http://127.0.0.1:8000/' in billy_settings.py

  3. Add or uncomment !/data/shapefiles in .gitignore

  4. Run pip install -r requirements.txt

You should now be able to add boundary data as described in the README and access boundary data as described in the Represent API.

Billy integration

For each jurisdiction, create a file manual_data/districts/ABBREVIATION.csv', replacing ABBREVIATION` with the jurisdiction's abbreviation. The CSV file is of the format below. See OpenStates for examples of complete files.

abbr,chamber,name,num_seats,boundary_id
Clone this wiki locally