From bd5db67b05654d8c79b18035cf33853da3541d48 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 31 Mar 2022 17:38:31 +0200 Subject: Geodata: gpkg, shp import --- ishtar_common/models.py | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'ishtar_common/models.py') diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 5b9d48357..2bd983906 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -203,6 +203,7 @@ __all__ = [ "Department", "State", "CompleteIdentifierItem", + "GeoVectorData", ] logger = logging.getLogger(__name__) @@ -1413,9 +1414,22 @@ class IshtarSiteProfile(models.Model, Cached): blank=True, null=True, help_text=_( - "Spatial Reference System used for display when no SRS is " "defined" + "Spatial Reference System used for display when no SRS is defined" ), on_delete=models.SET_NULL, + related_name="profile_display_srs" + ) + srs = models.ForeignKey( + SpatialReferenceSystem, + verbose_name=_("Spatial Reference System in database"), + blank=True, + null=True, + help_text=_( + "Set it to the most used spatial reference system. Warning: after change " + "launch the ishtar_migrate_srid script." + ), + on_delete=models.SET_NULL, + related_name="profile_srs" ) default_language = models.ForeignKey( Language, -- cgit v1.2.3