* splits ema/models.py into subpackage * splits konova/models.py into subpackage * splits user/models.py into subpackage
18 lines
566 B
Python
18 lines
566 B
Python
"""
|
|
Author: Michel Peltriaux
|
|
Organization: Struktur- und Genehmigungsdirektion Nord, Rhineland-Palatinate, Germany
|
|
Contact: michel.peltriaux@sgdnord.rlp.de
|
|
Created on: 15.11.21
|
|
|
|
"""
|
|
from django.contrib.gis.db.models import MultiPolygonField
|
|
|
|
from konova.models import BaseResource
|
|
|
|
|
|
class Geometry(BaseResource):
|
|
"""
|
|
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
|
|
geom = MultiPolygonField(null=True, blank=True, srid=DEFAULT_SRID) |