| 1 |
from django.contrib.gis.db import models |
| 2 |
|
| 3 |
|
| 4 |
class AllOGRFields(models.Model): |
| 5 |
f_decimal = models.FloatField() |
| 6 |
f_float = models.FloatField() |
| 7 |
f_int = models.IntegerField() |
| 8 |
f_char = models.CharField(max_length=10) |
| 9 |
f_date = models.DateField() |
| 10 |
f_datetime = models.DateTimeField() |
| 11 |
f_time = models.TimeField() |
| 12 |
geom = models.PolygonField() |
| 13 |
point = models.PointField() |
| 14 |
|
| 15 |
|
| 16 |
class Fields3D(models.Model): |
| 17 |
point = models.PointField(dim=3) |
| 18 |
pointg = models.PointField(dim=3, geography=True) |
| 19 |
line = models.LineStringField(dim=3) |
| 20 |
poly = models.PolygonField(dim=3) |
| 21 |
|
| 22 |
class Meta: |
| 23 |
required_db_features = {"supports_3d_storage"} |