geobox 2.0.0__py3-none-any.whl → 2.1.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.
- geobox/aio/analysis.py +757 -0
- geobox/aio/api.py +103 -4
- geobox/aio/query.py +0 -9
- geobox/aio/raster.py +1273 -869
- geobox/aio/task.py +1 -1
- geobox/aio/usage.py +1 -1
- geobox/aio/vectorlayer.py +109 -2
- geobox/aio/workflow.py +1 -1
- geobox/analysis.py +757 -0
- geobox/api.py +104 -6
- geobox/enums.py +402 -348
- geobox/query.py +1 -10
- geobox/raster.py +1270 -863
- geobox/task.py +1 -1
- geobox/vectorlayer.py +107 -2
- geobox/view.py +2 -2
- {geobox-2.0.0.dist-info → geobox-2.1.0.dist-info}/METADATA +1 -1
- {geobox-2.0.0.dist-info → geobox-2.1.0.dist-info}/RECORD +21 -19
- {geobox-2.0.0.dist-info → geobox-2.1.0.dist-info}/WHEEL +0 -0
- {geobox-2.0.0.dist-info → geobox-2.1.0.dist-info}/licenses/LICENSE +0 -0
- {geobox-2.0.0.dist-info → geobox-2.1.0.dist-info}/top_level.txt +0 -0
geobox/query.py
CHANGED
|
@@ -348,8 +348,6 @@ class Query(Base):
|
|
|
348
348
|
>>> query.add_param(name='param_name', value='param_value', type=QueryParamType.LAYER)
|
|
349
349
|
>>> query.save()
|
|
350
350
|
"""
|
|
351
|
-
self._check_access()
|
|
352
|
-
|
|
353
351
|
self.params.append({
|
|
354
352
|
'name': name,
|
|
355
353
|
'value': value,
|
|
@@ -383,8 +381,6 @@ class Query(Base):
|
|
|
383
381
|
>>> query.remove_param(name='param_name')
|
|
384
382
|
>>> query.save()
|
|
385
383
|
"""
|
|
386
|
-
self._check_access()
|
|
387
|
-
|
|
388
384
|
for i, param in enumerate(self.params):
|
|
389
385
|
if param.get('name') == name:
|
|
390
386
|
self.params.pop(i)
|
|
@@ -428,9 +424,7 @@ class Query(Base):
|
|
|
428
424
|
or
|
|
429
425
|
>>> query = client.get_query(uuid="12345678-1234-5678-1234-567812345678")
|
|
430
426
|
>>> query.execute(f='json')
|
|
431
|
-
"""
|
|
432
|
-
self._check_access()
|
|
433
|
-
|
|
427
|
+
"""
|
|
434
428
|
if not self.sql:
|
|
435
429
|
raise ValueError('"sql" parameter is required for this action!')
|
|
436
430
|
if not self.params:
|
|
@@ -631,7 +625,6 @@ class Query(Base):
|
|
|
631
625
|
>>> query = Query.get_query(client, uuid="12345678-1234-5678-1234-567812345678")
|
|
632
626
|
>>> query.thumbnail
|
|
633
627
|
"""
|
|
634
|
-
self._check_access()
|
|
635
628
|
return super().thumbnail()
|
|
636
629
|
|
|
637
630
|
|
|
@@ -656,8 +649,6 @@ class Query(Base):
|
|
|
656
649
|
>>> query = Query.get_query(client, uuid="12345678-1234-5678-1234-567812345678")
|
|
657
650
|
>>> query.save_as_layer(layer_name='test')
|
|
658
651
|
"""
|
|
659
|
-
self._check_access()
|
|
660
|
-
|
|
661
652
|
params = [{
|
|
662
653
|
"name": item.get('name'),
|
|
663
654
|
"type": item.get('type'),
|