Exemplo n.º 1
0
class Track(models.Model):
    name = models.CharField(max_length=30)
    line = models.LineStringField()
    objects = models.GeoManager()

    def __unicode__(self):
        return self.name
Exemplo n.º 2
0
class InterstateProj3D(models.Model):
    name = models.CharField(max_length=30)
    line = models.LineStringField(dim=3, srid=32140)
    objects = models.GeoManager()

    def __unicode__(self):
        return self.name
Exemplo n.º 3
0
class Interstate2D(models.Model):
    name = models.CharField(max_length=30)
    line = models.LineStringField(srid=4269)
    objects = models.GeoManager()

    def __unicode__(self):
        return self.name
class SouthTexasInterstate(models.Model):
    "Projected model for South Texas Interstates."
    name = models.CharField(max_length=10)
    path = models.LineStringField(srid=32140)
    objects = models.GeoManager()

    def __unicode__(self):
        return self.name
class Interstate(models.Model):
    "Geodetic model for U.S. Interstates."
    name = models.CharField(max_length=10)
    path = models.LineStringField()
    objects = models.GeoManager()

    def __unicode__(self):
        return self.name
class Interstate(models.Model):
    name = models.CharField(max_length=20)
    length = models.DecimalField(max_digits=6, decimal_places=2)
    path = models.LineStringField()
    objects = models.GeoManager()