geobox 2.2.2__py3-none-any.whl → 2.2.3__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.
- geobox/aio/feature.py +12 -5
- geobox/feature.py +12 -5
- {geobox-2.2.2.dist-info → geobox-2.2.3.dist-info}/METADATA +1 -1
- {geobox-2.2.2.dist-info → geobox-2.2.3.dist-info}/RECORD +7 -7
- {geobox-2.2.2.dist-info → geobox-2.2.3.dist-info}/WHEEL +0 -0
- {geobox-2.2.2.dist-info → geobox-2.2.3.dist-info}/licenses/LICENSE +0 -0
- {geobox-2.2.2.dist-info → geobox-2.2.3.dist-info}/top_level.txt +0 -0
geobox/aio/feature.py
CHANGED
|
@@ -219,11 +219,8 @@ class AsyncFeature(AsyncBase):
|
|
|
219
219
|
|
|
220
220
|
try:
|
|
221
221
|
if self.id:
|
|
222
|
-
if self.srid != self.BASE_SRID:
|
|
223
|
-
self = self.transform(self.BASE_SRID)
|
|
224
|
-
self.data['geometry'] = self.original_geometry
|
|
225
222
|
await self.update(self.data)
|
|
226
|
-
|
|
223
|
+
|
|
227
224
|
except AttributeError:
|
|
228
225
|
if self.srid != self.BASE_SRID:
|
|
229
226
|
self = self.transform(self.BASE_SRID)
|
|
@@ -277,7 +274,17 @@ class AsyncFeature(AsyncBase):
|
|
|
277
274
|
... }
|
|
278
275
|
>>> await feature.update(geojson)
|
|
279
276
|
"""
|
|
280
|
-
|
|
277
|
+
self.data = geojson
|
|
278
|
+
data = self.data.copy()
|
|
279
|
+
srid = self.srid
|
|
280
|
+
|
|
281
|
+
if self.srid != self.BASE_SRID:
|
|
282
|
+
self = self.transform(self.BASE_SRID)
|
|
283
|
+
|
|
284
|
+
await super()._update(self.endpoint, self.data, clean=False)
|
|
285
|
+
self.data['geometry'] = data['geometry']
|
|
286
|
+
self._srid = srid
|
|
287
|
+
return self.data
|
|
281
288
|
|
|
282
289
|
|
|
283
290
|
@classmethod
|
geobox/feature.py
CHANGED
|
@@ -236,11 +236,8 @@ class Feature(Base):
|
|
|
236
236
|
|
|
237
237
|
try:
|
|
238
238
|
if self.id:
|
|
239
|
-
if self.srid != self.BASE_SRID:
|
|
240
|
-
self = self.transform(self.BASE_SRID)
|
|
241
|
-
self.data['geometry'] = self.original_geometry
|
|
242
239
|
self.update(self.data)
|
|
243
|
-
|
|
240
|
+
|
|
244
241
|
except AttributeError:
|
|
245
242
|
if self.srid != self.BASE_SRID:
|
|
246
243
|
self = self.transform(self.BASE_SRID)
|
|
@@ -295,7 +292,17 @@ class Feature(Base):
|
|
|
295
292
|
... }
|
|
296
293
|
>>> feature.update(geojson)
|
|
297
294
|
"""
|
|
298
|
-
|
|
295
|
+
self.data = geojson
|
|
296
|
+
data = self.data.copy()
|
|
297
|
+
srid = self.srid
|
|
298
|
+
|
|
299
|
+
if self.srid != self.BASE_SRID:
|
|
300
|
+
self = self.transform(self.BASE_SRID)
|
|
301
|
+
|
|
302
|
+
super()._update(self.endpoint, self.data, clean=False)
|
|
303
|
+
self.data['geometry'] = data['geometry']
|
|
304
|
+
self._srid = srid
|
|
305
|
+
return self.data
|
|
299
306
|
|
|
300
307
|
|
|
301
308
|
@classmethod
|
|
@@ -7,7 +7,7 @@ geobox/basemap.py,sha256=BSDb7mJm-Pmm5GRqvsHxKiqBNL_wfzy_GVv1qqTVFLc,5746
|
|
|
7
7
|
geobox/dashboard.py,sha256=Gkt66_WqJEco2olFfZ7W8ux3IhhbbudVqfLlB3t8MCs,13039
|
|
8
8
|
geobox/enums.py,sha256=jA5KwOdTMkFhXEBgcP-8bgi0cFyD1NFN4QpLelow0HA,8044
|
|
9
9
|
geobox/exception.py,sha256=jvpnv0M2Ck1FpxHTL_aKYWxGvLnCQ3d9vOrMIktjw1U,1507
|
|
10
|
-
geobox/feature.py,sha256=
|
|
10
|
+
geobox/feature.py,sha256=YP-wCSxEin93ji6Hq72LG7j1VjGC0Jk05g06IOW_W8I,20455
|
|
11
11
|
geobox/field.py,sha256=_5CS3kj3P-BKCbtAUd7dtkPBnN0D0H1ZKPlKx8DValw,11188
|
|
12
12
|
geobox/file.py,sha256=cPj3cYjK85BqWIROfA-c1B-yw6d7Gu5ZzyCmFqAJSVY,20191
|
|
13
13
|
geobox/layout.py,sha256=qnmFYFeVK-_mMjbzPJHAh9DcoMAdz-tzLDoHMpHST-Q,12608
|
|
@@ -40,7 +40,7 @@ geobox/aio/attachment.py,sha256=4IzC8Vnt_LJHSzhfhyMtGqrv1AHibkLWO-mOCCtRyO8,1336
|
|
|
40
40
|
geobox/aio/base.py,sha256=H9CB-5Gas3c1Xp14nW-PS-syoGNBpyRLN2iujlSxWLU,9455
|
|
41
41
|
geobox/aio/basemap.py,sha256=7NeEihNGjVZgc6TRfM2w_3RuAGNXRRpEFItmMlR4e4A,6092
|
|
42
42
|
geobox/aio/dashboard.py,sha256=L91YkVHtcb9QMozoIBOjiobskDM1NfxasVcTZs6hV3U,13843
|
|
43
|
-
geobox/aio/feature.py,sha256=
|
|
43
|
+
geobox/aio/feature.py,sha256=BouLyHGqpHsxMkSEs5EEPwzyzDdkzqnxlWZ7td1b-tY,20523
|
|
44
44
|
geobox/aio/field.py,sha256=KTN6P1edmPj7NlLEyUHx2BW6dY0TLPdHjCefB6_4L5g,11512
|
|
45
45
|
geobox/aio/file.py,sha256=RaygwYB4fkmxQyIG__NZZCdnXc7olOY2UC9qGQ3UhkQ,21217
|
|
46
46
|
geobox/aio/layout.py,sha256=IasLEPVq5U_9VbTPPo-JqxKL4rPxWrVFoHbRdQZk9iY,13471
|
|
@@ -65,8 +65,8 @@ geobox/aio/vectorlayer.py,sha256=d7BAPjp1MsFWhrgDh3gJ8LBAIA_2-vCGCT0ji9-e1O4,594
|
|
|
65
65
|
geobox/aio/version.py,sha256=Yt7tKUqHS8rKfTPAm77yAaDajFn0ZEo0UWhA5DN7_uM,11422
|
|
66
66
|
geobox/aio/view.py,sha256=CMULdkierGeIvRWdyfqy6FO_9_fgQeSAA1-xdcrl9Uw,45146
|
|
67
67
|
geobox/aio/workflow.py,sha256=UwOVMDRjJIiveXbYB8rGO02s5A7fn2BhEvQXkWMSApU,13707
|
|
68
|
-
geobox-2.2.
|
|
69
|
-
geobox-2.2.
|
|
70
|
-
geobox-2.2.
|
|
71
|
-
geobox-2.2.
|
|
72
|
-
geobox-2.2.
|
|
68
|
+
geobox-2.2.3.dist-info/licenses/LICENSE,sha256=AvFB7W94sJYKLDhBxLRshL3upexCOG8HQY_1JibB96w,1063
|
|
69
|
+
geobox-2.2.3.dist-info/METADATA,sha256=rhrWYWX5FpB_3a3LdlHJd-X_tiWw3CZcy25EJdgysJU,3082
|
|
70
|
+
geobox-2.2.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
71
|
+
geobox-2.2.3.dist-info/top_level.txt,sha256=ppXH8Bu2mlB-pLQ6lsoWEm2Gr6wZx1uzkhetsYA5ins,7
|
|
72
|
+
geobox-2.2.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|