Rapid Geographic Web Application Development with GeoDjango

Location: Salon C-D Level: Intermediate

Attendees should provide a laptop computer; the speakers will provide the data, the software, and the expertise. Participants will build a geographic web application for exploring Texas, including real estate, transportation, retail, and government GIS data sets. The following aspects of GeoDjango will be discussed and explored:


  • GEOS
  • GDAL
  • PROJ.4
  • PostgreSQL
  • PostGIS
  • Python 2.5
  • pyscopg2
  • GeoDjango from SVN
  • OpenLayers
  • Google Earth (optional, but recommended)

Creation of Geographic Models

  • Exploring a geographic dataset using ogrinfo.
  • Create geographic models using the Point, LineString, Polygon, and MultiPolygon fields.
  • Discussion of spatial index and spatial reference identifier options.
  • Discussion of automatic model generation by introspecting OGR data sources (e.g., shapefiles).

Importing Spatial Data with LayerMapping

  • Learn how to import your spatial data from shapefiles with the LayerMapping utility.
  • Zip codes, county boundaries, cities, and road models for Texas will be used.
  • Common problems involving data integrity, spatial reference transformation, and verification will be discussed.

Spatial Queries

  • Learn how to query the database to determine what Zip codes intersect with the road models.
  • Determine the aggregate length of all Texas roads in miles, kilometers, and yards.
  • Determining the number of cities within a county, and discover the features surrounding a county.
  • Find the closest restaurant in your city that serves beer.

Exploring and Administration of Spatial Models

  • Edit and view geographic features using built-in OpenLayers maps.
  • Create dynamic, rich browsable Web site automatically with databrowse.


  • Show how to use URL configuration to build RESTful URLs
  • Create geographic views for KML, GeoRSS, and GeoJSON.

Map Rendering

  • Set up TileCache with GeoDjango.
  • Set up rendering capabilities to create tiles for a base map using either Mapnik or MapServer.
  • Generate JavaScript using APIs for OpenLayers and/or Google Maps.

Justin Bronn

Django Software Foundation

Justin Bronn is a computer scientist and third-year law student at the University of Houston who enjoys studying legal topics related to intellectual property and spatial law. Prior to creating GeoDjango, Justin worked as a patent engineer for an intellectual property boutique in Houston and developed scientific data analysis applications for the Southwest Research Institute in San Antonio.

In his spare time, Justin enjoys programming in Python and monitoring the crime rate in Houston via his Houston Crime Maps mash-up.

Justin received a B.S. with honors in Computer Science from Trinity University in San Antonio, Texas.

Travis Pinney


Travis Pinney has over 10 years of programming experience, including 6 years with Python. Travis provides technological consulting services to his clients in the medical, geospatial, and legal fields.

Travis received a B.S. in Computer Science from Trinity University in San Antonio, Texas.

Jeremy Dunck

Pegasus News

Jeremy Dunck is CTO of Pegasus News, a personalized local news and data service based in Dallas, Texas. He received his B.S. in Software Engineering from University of Texas at Dallas. He reads much too slowly and plays guitar terribly.

  • Autodesk
  • Google
  • ESRI
  • Nokia
  • DigitalGlobe
  • Earthscape
  • EveryScape.com
  • LightPole
  • MapJack
  • MapQuest
  • MetaCarta
  • Microsoft
  • Poly9
  • Skyhook Wireless
  • TeleAtlas
  • Yahoo! Inc.
  • Zvents
  • BNet

Press and Media

For media-related inquiries, contact Maureen Jennings at maureen@oreilly.com.

Contact Us

View a complete list of Where 2.0 contacts.