1
from django.contrib.gis.db import models
3
class SouthTexasCity(models.Model):
4
"City model on projected coordinate system for South Texas."
5
name = models.CharField(max_length=30)
6
point = models.PointField(srid=32140)
7
objects = models.GeoManager()
8
def __unicode__(self): return self.name
10
class SouthTexasCityFt(models.Model):
11
"Same City model as above, but U.S. survey feet are the units."
12
name = models.CharField(max_length=30)
13
point = models.PointField(srid=2278)
14
objects = models.GeoManager()
15
def __unicode__(self): return self.name
17
class AustraliaCity(models.Model):
18
"City model for Australia, using WGS84."
19
name = models.CharField(max_length=30)
20
point = models.PointField()
21
objects = models.GeoManager()
22
def __unicode__(self): return self.name
24
class CensusZipcode(models.Model):
25
"Model for a few South Texas ZIP codes (in original Census NAD83)."
26
name = models.CharField(max_length=5)
27
poly = models.PolygonField(srid=4269)
28
objects = models.GeoManager()
30
class SouthTexasZipcode(models.Model):
31
"Model for a few South Texas ZIP codes."
32
name = models.CharField(max_length=5)
33
poly = models.PolygonField(srid=32140)
34
objects = models.GeoManager()
35
def __unicode__(self): return self.name
37
class Interstate(models.Model):
38
"Geodetic model for U.S. Interstates."
39
name = models.CharField(max_length=10)
40
line = models.LineStringField()
41
objects = models.GeoManager()
42
def __unicode__(self): return self.name