2015-04-04 16:09:46 +00:00
|
|
|
from ..models import models
|
2011-09-17 19:54:52 +00:00
|
|
|
|
2013-11-02 20:12:09 +00:00
|
|
|
|
2011-09-17 19:54:52 +00:00
|
|
|
class AllOGRFields(models.Model):
|
2014-01-01 10:01:46 +00:00
|
|
|
|
2011-09-17 19:54:52 +00:00
|
|
|
f_decimal = models.FloatField()
|
|
|
|
f_float = models.FloatField()
|
|
|
|
f_int = models.IntegerField()
|
|
|
|
f_char = models.CharField(max_length=10)
|
|
|
|
f_date = models.DateField()
|
|
|
|
f_datetime = models.DateTimeField()
|
|
|
|
f_time = models.TimeField()
|
|
|
|
geom = models.PolygonField()
|
2013-09-12 08:30:45 +00:00
|
|
|
point = models.PointField()
|
2011-09-17 19:54:52 +00:00
|
|
|
|
2015-04-04 16:09:46 +00:00
|
|
|
class Meta:
|
|
|
|
required_db_features = ['gis_enabled']
|
|
|
|
|
2014-11-03 21:03:59 +00:00
|
|
|
|
|
|
|
class Fields3D(models.Model):
|
|
|
|
point = models.PointField(dim=3)
|
|
|
|
line = models.LineStringField(dim=3)
|
|
|
|
poly = models.PolygonField(dim=3)
|
|
|
|
|
2015-04-04 16:09:46 +00:00
|
|
|
class Meta:
|
|
|
|
required_db_features = ['gis_enabled']
|