geobox 2.2.2__tar.gz → 2.2.3__tar.gz
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-2.2.2 → geobox-2.2.3}/PKG-INFO +1 -1
- {geobox-2.2.2 → geobox-2.2.3}/geobox/aio/feature.py +12 -5
- {geobox-2.2.2 → geobox-2.2.3}/geobox/feature.py +12 -5
- {geobox-2.2.2 → geobox-2.2.3}/geobox.egg-info/PKG-INFO +1 -1
- {geobox-2.2.2 → geobox-2.2.3}/pyproject.toml +1 -1
- {geobox-2.2.2 → geobox-2.2.3}/tests/test_feature.py +506 -503
- {geobox-2.2.2 → geobox-2.2.3}/LICENSE +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/README.md +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/__init__.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/aio/__init__.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/aio/api.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/aio/apikey.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/aio/attachment.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/aio/base.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/aio/basemap.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/aio/dashboard.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/aio/field.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/aio/file.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/aio/layout.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/aio/log.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/aio/map.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/aio/model3d.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/aio/mosaic.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/aio/plan.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/aio/query.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/aio/raster.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/aio/raster_analysis.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/aio/route.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/aio/scene.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/aio/settings.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/aio/task.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/aio/tile3d.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/aio/tileset.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/aio/usage.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/aio/user.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/aio/vector_tool.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/aio/vectorlayer.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/aio/version.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/aio/view.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/aio/workflow.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/api.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/apikey.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/attachment.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/base.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/basemap.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/dashboard.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/enums.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/exception.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/field.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/file.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/layout.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/log.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/map.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/model3d.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/mosaic.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/plan.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/query.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/raster.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/raster_analysis.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/route.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/scene.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/settings.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/task.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/tile3d.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/tileset.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/usage.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/user.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/utils.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/vector_tool.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/vectorlayer.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/version.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/view.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox/workflow.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox.egg-info/SOURCES.txt +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox.egg-info/dependency_links.txt +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox.egg-info/requires.txt +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/geobox.egg-info/top_level.txt +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/setup.cfg +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/tests/test_api.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/tests/test_apikey.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/tests/test_attachment.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/tests/test_basemap.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/tests/test_dashboard.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/tests/test_field.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/tests/test_file.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/tests/test_layout.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/tests/test_log.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/tests/test_map.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/tests/test_model3d.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/tests/test_mosaic.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/tests/test_plan.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/tests/test_query.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/tests/test_raster.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/tests/test_raster_analysis.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/tests/test_route.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/tests/test_scene.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/tests/test_settings.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/tests/test_task.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/tests/test_tile3d.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/tests/test_tileset.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/tests/test_usage.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/tests/test_user.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/tests/test_vector_tool.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/tests/test_vectorlayer.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/tests/test_version.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/tests/test_view.py +0 -0
- {geobox-2.2.2 → geobox-2.2.3}/tests/test_workflow.py +0 -0
|
@@ -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
|
|
@@ -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
|