1
1
from django.contrib.gis.db import models
2
from django.utils.encoding import python_2_unicode_compatible
4
@python_2_unicode_compatible
3
5
class City3D(models.Model):
4
6
name = models.CharField(max_length=30)
5
7
point = models.PointField(dim=3)
6
8
objects = models.GeoManager()
13
@python_2_unicode_compatible
11
14
class Interstate2D(models.Model):
12
15
name = models.CharField(max_length=30)
13
16
line = models.LineStringField(srid=4269)
14
17
objects = models.GeoManager()
16
def __unicode__(self):
22
@python_2_unicode_compatible
19
23
class Interstate3D(models.Model):
20
24
name = models.CharField(max_length=30)
21
25
line = models.LineStringField(dim=3, srid=4269)
22
26
objects = models.GeoManager()
24
def __unicode__(self):
31
@python_2_unicode_compatible
27
32
class InterstateProj2D(models.Model):
28
33
name = models.CharField(max_length=30)
29
34
line = models.LineStringField(srid=32140)
30
35
objects = models.GeoManager()
32
def __unicode__(self):
40
@python_2_unicode_compatible
35
41
class InterstateProj3D(models.Model):
36
42
name = models.CharField(max_length=30)
37
43
line = models.LineStringField(dim=3, srid=32140)
38
44
objects = models.GeoManager()
40
def __unicode__(self):
49
@python_2_unicode_compatible
43
50
class Polygon2D(models.Model):
44
51
name = models.CharField(max_length=30)
45
52
poly = models.PolygonField(srid=32140)
46
53
objects = models.GeoManager()
48
def __unicode__(self):
58
@python_2_unicode_compatible
51
59
class Polygon3D(models.Model):
52
60
name = models.CharField(max_length=30)
53
61
poly = models.PolygonField(dim=3, srid=32140)
54
62
objects = models.GeoManager()
56
def __unicode__(self):
59
67
class Point2D(models.Model):