9. models.py
from django.db import models
class City(models.Model):
name = models.TextField()
class UserGroup(models.Model):
name = models.TextField()
city = models.ForeignKey(City)
started = models.DateField()
def join(self, user):
# add user to group
14. What is GeoDjango?
“world-class geographic Web framework”
included in Django core
Combine existing Python & DB tools with
standard API
but first …
15. Some GIS Problems
The Earth is not a sphere!
How to store & query efficiently
Vendor implementations
Wide range of data formats
Tiger/LINE, Shapefiles, E00, OGR, GeoJSON,
WKT, EWKT, EWKB, GML, KML, OSM, GLOBE,
TIFF, ArcGrid ….