Skip to content
This repository has been archived by the owner on Jun 16, 2018. It is now read-only.

datadesk/latimes-pluggablemaps-lametrorail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 

Repository files navigation

888             d8888      888b     d888          888                         8888888b.           d8b 888 
888            d88888      8888b   d8888          888                         888   Y88b          Y8P 888 
888           d88P888      88888b.d88888          888                         888    888              888 
888          d88P 888      888Y88888P888  .d88b.  888888 888d888 .d88b.       888   d88P  8888b.  888 888 
888         d88P  888      888 Y888P 888 d8P  Y8b 888    888P"  d88""88b      8888888P"      "88b 888 888 
888        d88P   888      888  Y8P  888 88888888 888    888    888  888      888 T88b   .d888888 888 888 
888       d8888888888      888   "   888 Y8b.     Y88b.  888    Y88..88P      888  T88b  888  888 888 888 
88888888 d88P     888      888       888  "Y8888   "Y888 888     "Y88P"       888   T88b "Y888888 888 888 

A pluggable GeoDjango app of the Los Angeles Metro Rail system. Geography, loosely coupled.

I gave a talk in December 2010 about why I think maps should be pluggable.

Features

  • A ready-to-serve model set that contains the latest GIS data released by Metro Rail.
  • Fragmented rail lines in the government’s source file have been consolidated.
  • Stops along each line have been connected to stations and lines. This is not done in the government’s separate source files.
  • Geometry fields are published in three of the most common SRIDs, as well as their source projection.
  • Simplified geometry fields that thin down the data for display on a single map.
  • A read-only admin for reviewing the data

Requirements

Before you begin, you will need to have a Django project with GeoDjango’s ‘django.contrib.gis’ app installed and configured. The official installation guide is here. The official tutorial is here. Both are excellent.

Getting started

01. Install the source code

You can download it from PyPi.

pip install latimes-pluggablemaps-lametrorail

Or, pull the trunk from github

git clone git://github.com/datadesk/latimes-pluggablemaps-lametrorail.git

02. Install the app in your Django project

In settings.py’s INSTALLED_APPS tuple, add the following.

'la_metro_rail',

03. Create the database tables

From the shell, enter:

python manage.py syncdb

04. Load the data

From the same shell, enter the following.

python manage.py loadlametrorail

That’s it! You now fire up the Django admin or jump in the shell to start playing with the data.

About

A pluggable GeoDjango app mapping the Los Angeles Metro Rail system.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages