Geometry fix

* removes geographic=True from Geometry model
This commit is contained in:
mpeltriaux 2021-10-20 10:38:07 +02:00
parent 80bdee5230
commit 5907d46ab2

View File

@ -312,5 +312,4 @@ class Geometry(BaseResource):
Outsourced geometry model so multiple versions of the same object can refer to the same geometry if it is not changed Outsourced geometry model so multiple versions of the same object can refer to the same geometry if it is not changed
""" """
from konova.settings import DEFAULT_SRID from konova.settings import DEFAULT_SRID
# Read more about geography=True here: https://docs.djangoproject.com/en/3.2/ref/contrib/gis/model-api/#geography geom = MultiPolygonField(null=True, blank=True, srid=DEFAULT_SRID)
geom = MultiPolygonField(null=True, blank=True, srid=DEFAULT_SRID, geography=True)