2016-11-05 10:35:58 +00:00
|
|
|
from django.contrib.gis.db 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
|
|
|
|
2014-11-03 21:03:59 +00:00
|
|
|
|
|
|
|
class Fields3D(models.Model):
|
|
|
|
point = models.PointField(dim=3)
|
2016-06-18 16:08:53 +00:00
|
|
|
pointg = models.PointField(dim=3, geography=True)
|
2014-11-03 21:03:59 +00:00
|
|
|
line = models.LineStringField(dim=3)
|
|
|
|
poly = models.PolygonField(dim=3)
|
2020-09-15 01:33:58 +00:00
|
|
|
|
|
|
|
class Meta:
|
|
|
|
required_db_features = {'supports_3d_storage'}
|