django-gisserver 1.2.7__py3-none-any.whl → 1.3.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {django_gisserver-1.2.7.dist-info → django_gisserver-1.3.0.dist-info}/METADATA +4 -1
- {django_gisserver-1.2.7.dist-info → django_gisserver-1.3.0.dist-info}/RECORD +10 -10
- {django_gisserver-1.2.7.dist-info → django_gisserver-1.3.0.dist-info}/WHEEL +1 -1
- gisserver/__init__.py +1 -1
- gisserver/output/csv.py +2 -3
- gisserver/output/geojson.py +2 -3
- gisserver/output/gml32.py +2 -3
- gisserver/output/results.py +4 -2
- {django_gisserver-1.2.7.dist-info → django_gisserver-1.3.0.dist-info}/LICENSE +0 -0
- {django_gisserver-1.2.7.dist-info → django_gisserver-1.3.0.dist-info}/top_level.txt +0 -0
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: django-gisserver
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.3.0
|
|
4
4
|
Summary: Django speaking WFS 2.0 (exposing GeoDjango model fields)
|
|
5
5
|
Home-page: https://github.com/amsterdam/django-gisserver
|
|
6
6
|
Author: Diederik van der Boor
|
|
7
7
|
Author-email: opensource@edoburu.nl
|
|
8
8
|
License: Mozilla Public License 2.0
|
|
9
|
+
Platform: UNKNOWN
|
|
9
10
|
Classifier: Development Status :: 4 - Beta
|
|
10
11
|
Classifier: Environment :: Web Environment
|
|
11
12
|
Classifier: Intended Audience :: Developers
|
|
@@ -166,3 +167,5 @@ software developed with public money is also publicly available.
|
|
|
166
167
|
|
|
167
168
|
This package is initially developed by the City of Amsterdam, but the tools
|
|
168
169
|
and concepts created in this project can be used in any city.
|
|
170
|
+
|
|
171
|
+
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
gisserver/__init__.py,sha256=
|
|
1
|
+
gisserver/__init__.py,sha256=BfdKG3T6jfPrJ5AF8bDHgTsS70jBTw-Eg3IjeDKAlPQ,40
|
|
2
2
|
gisserver/conf.py,sha256=DC3TNBhA2kcLxTwmzhmrW5Noiv2QsPQms_EAAZLtO-4,2108
|
|
3
3
|
gisserver/db.py,sha256=4NSxzwCLsTON2wrLBKZweg6kOlZelV4fzdsrMGpC7V8,5329
|
|
4
4
|
gisserver/exceptions.py,sha256=kf6o-Vk9CrAAcjk4uGlQVvXnuYOBVks4pcQly3pKRPU,4596
|
|
@@ -12,10 +12,10 @@ gisserver/operations/wfs20.py,sha256=J54vnxEE_8Myz5uwnjltElun_H1MvKQNeWZNjIWiDF4
|
|
|
12
12
|
gisserver/output/__init__.py,sha256=kWdJHxKtQNKK4Bld8uNdVqk3cjgpiagBL_FlMjsbjQc,1950
|
|
13
13
|
gisserver/output/base.py,sha256=W4017N2qlEuPCbXLl17SQUVfTpTZphiSURd75NR9Hac,7954
|
|
14
14
|
gisserver/output/buffer.py,sha256=Jqw94wa1YFcKbFB9ZLiYx2L0TRD1MDZNLF5te3QBqgU,1542
|
|
15
|
-
gisserver/output/csv.py,sha256=
|
|
16
|
-
gisserver/output/geojson.py,sha256=
|
|
17
|
-
gisserver/output/gml32.py,sha256=
|
|
18
|
-
gisserver/output/results.py,sha256=
|
|
15
|
+
gisserver/output/csv.py,sha256=sVj1U1dVkMqm-cwjGbnDg-YLQL1QcRMXyH6LqgC7tN4,6179
|
|
16
|
+
gisserver/output/geojson.py,sha256=a8A628p1PEF-fmKdm3CrGDyCRPZdukMZRNzjiqDosWY,11217
|
|
17
|
+
gisserver/output/gml32.py,sha256=_IN5ehNLGPk5z3euIxavukjYsoHn6liPqY__Ge7LpjY,26894
|
|
18
|
+
gisserver/output/results.py,sha256=JdOznMx1xDxSmekMWW5YyF_muzrJXd6DVy0qqs2ewKI,9224
|
|
19
19
|
gisserver/output/utils.py,sha256=fMUPnAKXiT5IX3GlO0amZKzd_8ixNG_g1lgmZ3aNyGo,6113
|
|
20
20
|
gisserver/output/xmlschema.py,sha256=JVYx5ZXeIt4v8HLsEcRg5dR9WcrOREctlGaHcn31rEw,4603
|
|
21
21
|
gisserver/parsers/__init__.py,sha256=g72D8EtR-QkhcemzY5-Qty-nhHPKza83Sz3KZm8bfq0,290
|
|
@@ -47,8 +47,8 @@ gisserver/templates/gisserver/wfs/2.0.0/get_capabilities.xml,sha256=KKrI0YYQqZWt
|
|
|
47
47
|
gisserver/templates/gisserver/wfs/2.0.0/list_stored_queries.xml,sha256=CIBVQrKXmGMQ6BKbX4_0ru4lXtWnW5EIgHUbIi1V0Vc,636
|
|
48
48
|
gisserver/templatetags/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
49
49
|
gisserver/templatetags/gisserver_tags.py,sha256=RFGqEj-EQi9FrJiFJ7HHAQqlU4fDKVKTtZrPNwURXgA,204
|
|
50
|
-
django_gisserver-1.
|
|
51
|
-
django_gisserver-1.
|
|
52
|
-
django_gisserver-1.
|
|
53
|
-
django_gisserver-1.
|
|
54
|
-
django_gisserver-1.
|
|
50
|
+
django_gisserver-1.3.0.dist-info/LICENSE,sha256=HyVuytGSiAUQ6ErWBHTqt1iSGHhLmlC8fO7jTCuR8dU,16725
|
|
51
|
+
django_gisserver-1.3.0.dist-info/METADATA,sha256=N9SdE0qRO4HBR8MW1XiTo45KOvPeFWTA_k3p0q_iH5s,5834
|
|
52
|
+
django_gisserver-1.3.0.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
53
|
+
django_gisserver-1.3.0.dist-info/top_level.txt,sha256=8zFCEMmkpixE4TPiOAlxSq3PD2EXvAeFKwG4yZoIIOQ,10
|
|
54
|
+
django_gisserver-1.3.0.dist-info/RECORD,,
|
gisserver/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "1.
|
|
1
|
+
__version__ = "1.3.0" # follows PEP440
|
gisserver/output/csv.py
CHANGED
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
from __future__ import annotations
|
|
3
3
|
|
|
4
4
|
import csv
|
|
5
|
-
from datetime import datetime
|
|
5
|
+
from datetime import datetime, timezone
|
|
6
6
|
|
|
7
7
|
from django.conf import settings
|
|
8
8
|
from django.db import models
|
|
9
|
-
from django.utils.timezone import utc
|
|
10
9
|
|
|
11
10
|
from gisserver import conf
|
|
12
11
|
from gisserver.db import (
|
|
@@ -137,7 +136,7 @@ class CSVRenderer(OutputRenderer):
|
|
|
137
136
|
# Array field
|
|
138
137
|
append(",".join(map(str, value)))
|
|
139
138
|
elif isinstance(value, datetime):
|
|
140
|
-
append(str(value.astimezone(utc)))
|
|
139
|
+
append(str(value.astimezone(timezone.utc)))
|
|
141
140
|
else:
|
|
142
141
|
append(value)
|
|
143
142
|
return values
|
gisserver/output/geojson.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"""Output rendering logic for GeoJSON."""
|
|
2
|
-
from datetime import datetime
|
|
2
|
+
from datetime import datetime, timezone
|
|
3
3
|
from decimal import Decimal
|
|
4
4
|
from typing import cast
|
|
5
5
|
|
|
@@ -8,7 +8,6 @@ from django.conf import settings
|
|
|
8
8
|
from django.contrib.gis.db.models.functions import AsGeoJSON
|
|
9
9
|
from django.db import models
|
|
10
10
|
from django.utils.functional import Promise
|
|
11
|
-
from django.utils.timezone import utc
|
|
12
11
|
|
|
13
12
|
from gisserver import conf
|
|
14
13
|
from gisserver.db import get_db_geometry_target
|
|
@@ -147,7 +146,7 @@ class GeoJsonRenderer(OutputRenderer):
|
|
|
147
146
|
|
|
148
147
|
def _format_geojson_value(self, value):
|
|
149
148
|
if isinstance(value, datetime):
|
|
150
|
-
return value.astimezone(utc)
|
|
149
|
+
return value.astimezone(timezone.utc)
|
|
151
150
|
elif isinstance(value, models.Model):
|
|
152
151
|
# ForeignKey, not defined as complex type.
|
|
153
152
|
return str(value)
|
gisserver/output/gml32.py
CHANGED
|
@@ -7,14 +7,13 @@ from __future__ import annotations
|
|
|
7
7
|
|
|
8
8
|
import itertools
|
|
9
9
|
import re
|
|
10
|
-
from datetime import date, datetime, time
|
|
10
|
+
from datetime import date, datetime, time, timezone
|
|
11
11
|
from html import escape
|
|
12
12
|
from typing import cast
|
|
13
13
|
|
|
14
14
|
from django.contrib.gis import geos
|
|
15
15
|
from django.db import models
|
|
16
16
|
from django.http import HttpResponse
|
|
17
|
-
from django.utils.timezone import utc
|
|
18
17
|
|
|
19
18
|
from gisserver.db import (
|
|
20
19
|
AsGML,
|
|
@@ -306,7 +305,7 @@ class GML32Renderer(OutputRenderer):
|
|
|
306
305
|
# Expanded foreign relation / dictionary
|
|
307
306
|
return self.render_xml_complex_type(feature_type, xsd_element, value)
|
|
308
307
|
elif isinstance(value, datetime):
|
|
309
|
-
value = value.astimezone(utc).isoformat()
|
|
308
|
+
value = value.astimezone(timezone.utc).isoformat()
|
|
310
309
|
elif isinstance(value, (date, time)):
|
|
311
310
|
value = value.isoformat()
|
|
312
311
|
elif isinstance(value, bool):
|
gisserver/output/results.py
CHANGED
|
@@ -13,7 +13,9 @@ from typing import Iterable
|
|
|
13
13
|
import django
|
|
14
14
|
from django.db import models
|
|
15
15
|
from django.utils.functional import cached_property
|
|
16
|
-
from django.utils.timezone import now
|
|
16
|
+
from django.utils.timezone import now
|
|
17
|
+
|
|
18
|
+
from datetime import timezone
|
|
17
19
|
|
|
18
20
|
from gisserver.features import FeatureType
|
|
19
21
|
from gisserver.geometries import BoundingBox
|
|
@@ -218,7 +220,7 @@ class FeatureCollection:
|
|
|
218
220
|
self.next = next
|
|
219
221
|
self.previous = previous
|
|
220
222
|
self.date = now()
|
|
221
|
-
self.timestamp = self.date.astimezone(utc).isoformat()
|
|
223
|
+
self.timestamp = self.date.astimezone(timezone.utc).isoformat()
|
|
222
224
|
|
|
223
225
|
def get_bounding_box(self) -> BoundingBox:
|
|
224
226
|
"""Determine bounding box of all items."""
|
|
File without changes
|
|
File without changes
|