geobox 1.3.4__py3-none-any.whl → 1.4.1__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/api.py +131 -8
- geobox/apikey.py +6 -3
- geobox/attachment.py +27 -12
- geobox/basemap.py +1 -2
- geobox/enums.py +2 -8
- geobox/file.py +3 -0
- geobox/layout.py +314 -0
- geobox/log.py +20 -1
- geobox/map.py +121 -1
- geobox/model3d.py +2 -0
- geobox/plan.py +27 -0
- geobox/raster.py +4 -0
- geobox/task.py +6 -2
- geobox/tile3d.py +20 -1
- geobox/vectorlayer.py +80 -2
- geobox/view.py +80 -1
- geobox/workflow.py +2 -2
- {geobox-1.3.4.dist-info → geobox-1.4.1.dist-info}/METADATA +1 -1
- geobox-1.4.1.dist-info/RECORD +38 -0
- geobox-1.3.4.dist-info/RECORD +0 -37
- {geobox-1.3.4.dist-info → geobox-1.4.1.dist-info}/WHEEL +0 -0
- {geobox-1.3.4.dist-info → geobox-1.4.1.dist-info}/licenses/LICENSE +0 -0
- {geobox-1.3.4.dist-info → geobox-1.4.1.dist-info}/top_level.txt +0 -0
geobox/api.py
CHANGED
|
@@ -20,6 +20,7 @@ from .map import Map
|
|
|
20
20
|
from .user import User, UserRole, UserStatus, Session
|
|
21
21
|
from .query import Query
|
|
22
22
|
from .workflow import Workflow
|
|
23
|
+
from .layout import Layout
|
|
23
24
|
from .version import VectorLayerVersion
|
|
24
25
|
from .tile3d import Tile3d
|
|
25
26
|
from .settings import SystemSettings
|
|
@@ -28,7 +29,7 @@ from .route import Routing
|
|
|
28
29
|
from .plan import Plan
|
|
29
30
|
from .dashboard import Dashboard
|
|
30
31
|
from .basemap import Basemap
|
|
31
|
-
from .attachment import Attachment
|
|
32
|
+
from .attachment import Attachment
|
|
32
33
|
from .apikey import ApiKey
|
|
33
34
|
from .log import Log
|
|
34
35
|
from .usage import Usage, UsageScale, UsageParam
|
|
@@ -1535,7 +1536,7 @@ class GeoboxClient:
|
|
|
1535
1536
|
Example:
|
|
1536
1537
|
>>> from geobox import GeoboxClient
|
|
1537
1538
|
>>> client = GeoboxClient()
|
|
1538
|
-
>>> workflows = client.
|
|
1539
|
+
>>> workflows = client.get_workflows(q="name LIKE '%My workflow%'")
|
|
1539
1540
|
"""
|
|
1540
1541
|
return Workflow.get_workflows(self, **kwargs)
|
|
1541
1542
|
|
|
@@ -1681,6 +1682,105 @@ class GeoboxClient:
|
|
|
1681
1682
|
return VectorLayerVersion.get_version_by_name(self, name, user_id)
|
|
1682
1683
|
|
|
1683
1684
|
|
|
1685
|
+
def get_layouts(self, **kwargs) -> Union[List['Layout'], int]:
|
|
1686
|
+
"""
|
|
1687
|
+
Get list of layouts with optional filtering and pagination.
|
|
1688
|
+
|
|
1689
|
+
Keyword Args:
|
|
1690
|
+
q (str): query filter based on OGC CQL standard. e.g. "field1 LIKE '%GIS%' AND created_at > '2021-01-01'"
|
|
1691
|
+
search (str): search term for keyword-based searching among search_fields or all textual fields if search_fields does not have value. NOTE: if q param is defined this param will be ignored.
|
|
1692
|
+
search_fields (str): comma separated list of fields for searching.
|
|
1693
|
+
order_by (str): comma separated list of fields for sorting results [field1 A|D, field2 A|D, …]. e.g. name A, type D. NOTE: "A" denotes ascending order and "D" denotes descending order.
|
|
1694
|
+
return_count (bool): Whether to return total count. default is False.
|
|
1695
|
+
skip (int): Number of items to skip. default is 0.
|
|
1696
|
+
limit (int): Number of items to return. default is 10.
|
|
1697
|
+
user_id (int): Specific user. privileges required.
|
|
1698
|
+
shared (bool): Whether to return shared layouts. default is False.
|
|
1699
|
+
|
|
1700
|
+
Returns:
|
|
1701
|
+
List[Layout] | int: A list of layout instances or the total number of layouts.
|
|
1702
|
+
|
|
1703
|
+
Example:
|
|
1704
|
+
>>> from geobox import GeoboxClient
|
|
1705
|
+
>>> client = GeoboxClient()
|
|
1706
|
+
>>> layouts = client.get_layouts(q="name LIKE '%My layout%'")
|
|
1707
|
+
"""
|
|
1708
|
+
return Layout.get_layouts(self, **kwargs)
|
|
1709
|
+
|
|
1710
|
+
|
|
1711
|
+
def create_layout(self,
|
|
1712
|
+
name: str,
|
|
1713
|
+
display_name: str = None,
|
|
1714
|
+
description: str = None,
|
|
1715
|
+
settings: Dict = {},
|
|
1716
|
+
thumbnail: str = None,
|
|
1717
|
+
user_id: int = None) -> 'Layout':
|
|
1718
|
+
"""
|
|
1719
|
+
Create a new layout.
|
|
1720
|
+
|
|
1721
|
+
Args:
|
|
1722
|
+
name (str): The name of the layout.
|
|
1723
|
+
display_name (str): The display name of the layout.
|
|
1724
|
+
description (str): The description of the layout.
|
|
1725
|
+
settings (Dict): The settings of the layout.
|
|
1726
|
+
thumbnail (str): The thumbnail of the layout.
|
|
1727
|
+
user_id (int): Specific user. privileges layout.
|
|
1728
|
+
|
|
1729
|
+
Returns:
|
|
1730
|
+
Layout: The newly created layout instance.
|
|
1731
|
+
|
|
1732
|
+
Raises:
|
|
1733
|
+
ValidationError: If the layout data is invalid.
|
|
1734
|
+
|
|
1735
|
+
Example:
|
|
1736
|
+
>>> from geobox import GeoboxClient
|
|
1737
|
+
>>> client = GeoboxClient()
|
|
1738
|
+
>>> layout = client.create_layout(name="my_layout")
|
|
1739
|
+
"""
|
|
1740
|
+
return Layout.create_layout(self, name, display_name, description, settings, thumbnail, user_id)
|
|
1741
|
+
|
|
1742
|
+
|
|
1743
|
+
def get_layout(self, uuid: str, user_id: int = None) -> 'Layout':
|
|
1744
|
+
"""
|
|
1745
|
+
Get a layout by its UUID.
|
|
1746
|
+
|
|
1747
|
+
Args:
|
|
1748
|
+
uuid (str): The UUID of the layout to get.
|
|
1749
|
+
user_id (int): Specific user. privileges required.
|
|
1750
|
+
|
|
1751
|
+
Returns:
|
|
1752
|
+
Layout: The layout object.
|
|
1753
|
+
|
|
1754
|
+
Raises:
|
|
1755
|
+
NotFoundError: If the layout with the specified UUID is not found.
|
|
1756
|
+
|
|
1757
|
+
Example:
|
|
1758
|
+
>>> from geobox import GeoboxClient
|
|
1759
|
+
>>> client = GeoboxClient()
|
|
1760
|
+
>>> layout = client.get_layout(uuid="12345678-1234-5678-1234-567812345678")
|
|
1761
|
+
"""
|
|
1762
|
+
return Layout.get_layout(self, uuid, user_id)
|
|
1763
|
+
|
|
1764
|
+
|
|
1765
|
+
def get_layout_by_name(self, name: str, user_id: int = None) -> Union['Layout', None]:
|
|
1766
|
+
"""
|
|
1767
|
+
Get a layout by name
|
|
1768
|
+
|
|
1769
|
+
Args:
|
|
1770
|
+
name (str): the name of the layout to get
|
|
1771
|
+
user_id (int, optional): specific user. privileges required.
|
|
1772
|
+
|
|
1773
|
+
Returns:
|
|
1774
|
+
Layout | None: returns the layout if a layout matches the given name, else None
|
|
1775
|
+
|
|
1776
|
+
Example:
|
|
1777
|
+
>>> from geobox import GeoboxClient
|
|
1778
|
+
>>> client = GeoboxClient()
|
|
1779
|
+
>>> layout = client.get_layout_by_name(name='test')
|
|
1780
|
+
"""
|
|
1781
|
+
return Layout.get_layout_by_name(self, name, user_id)
|
|
1782
|
+
|
|
1783
|
+
|
|
1684
1784
|
def get_3dtiles(self, **kwargs) -> Union[List['Tile3d'], int]:
|
|
1685
1785
|
"""
|
|
1686
1786
|
Get list of 3D Tiles with optional filtering and pagination.
|
|
@@ -2016,6 +2116,25 @@ class GeoboxClient:
|
|
|
2016
2116
|
return Plan.get_plan(self, plan_id)
|
|
2017
2117
|
|
|
2018
2118
|
|
|
2119
|
+
def get_plan_by_name(self, name: str) -> Union['Plan', None]:
|
|
2120
|
+
"""
|
|
2121
|
+
Get a plan by name
|
|
2122
|
+
|
|
2123
|
+
Args:
|
|
2124
|
+
api (GeoboxClient): The GeoboxClient instance for making requests.
|
|
2125
|
+
name (str): the name of the plan to get
|
|
2126
|
+
|
|
2127
|
+
Returns:
|
|
2128
|
+
Plan | None: returns the plan if a plan matches the given name, else None
|
|
2129
|
+
|
|
2130
|
+
Example:
|
|
2131
|
+
>>> from geobox import GeoboxClient
|
|
2132
|
+
>>> client = GeoboxClient()
|
|
2133
|
+
>>> plan = client.get_plan_by_name(name='test')
|
|
2134
|
+
"""
|
|
2135
|
+
return Plan.get_plan_by_name(self, name)
|
|
2136
|
+
|
|
2137
|
+
|
|
2019
2138
|
def get_dashboards(self, **kwargs) -> Union[List['Dashboard'], int]:
|
|
2020
2139
|
"""
|
|
2021
2140
|
Get list of Dashboards
|
|
@@ -2175,13 +2294,12 @@ class GeoboxClient:
|
|
|
2175
2294
|
return Basemap.proxy_basemap(self, url)
|
|
2176
2295
|
|
|
2177
2296
|
|
|
2178
|
-
def get_attachments(self,
|
|
2297
|
+
def get_attachments(self, resource: Union['Map', 'VectorLayer', 'VectorLayerView'], **kwargs) -> List['Attachment']:
|
|
2179
2298
|
"""
|
|
2180
|
-
Get
|
|
2299
|
+
Get the resouces attachments
|
|
2181
2300
|
|
|
2182
2301
|
Args:
|
|
2183
|
-
|
|
2184
|
-
resource_uuid (str): The Resoource uuid of the attachment.
|
|
2302
|
+
resource (Map | VectorLayer | VectorLayerView): options are: Map, Vector, View objects
|
|
2185
2303
|
|
|
2186
2304
|
Keyword Args:
|
|
2187
2305
|
element_id (str): the id of the element with attachment.
|
|
@@ -2194,12 +2312,17 @@ class GeoboxClient:
|
|
|
2194
2312
|
Returns:
|
|
2195
2313
|
List[Attachment] | int: A list of attachments instances or the total number of attachments.
|
|
2196
2314
|
|
|
2315
|
+
Raises:
|
|
2316
|
+
TypeError: if the resource type is not supported
|
|
2317
|
+
|
|
2197
2318
|
Example:
|
|
2198
2319
|
>>> from geobox import GeoboxClient
|
|
2320
|
+
>>> from geobox.attachment import Attachment
|
|
2199
2321
|
>>> client = GeoboxClient()
|
|
2200
|
-
>>>
|
|
2322
|
+
>>> map = client.get_maps()[0]
|
|
2323
|
+
>>> attachments = client.get_attachments(resource=map)
|
|
2201
2324
|
"""
|
|
2202
|
-
return Attachment.get_attachments(self,
|
|
2325
|
+
return Attachment.get_attachments(self, resource=resource, **kwargs)
|
|
2203
2326
|
|
|
2204
2327
|
|
|
2205
2328
|
def create_attachment(self,
|
geobox/apikey.py
CHANGED
|
@@ -176,11 +176,14 @@ class ApiKey(Base):
|
|
|
176
176
|
>>> apikey = ApiKey.get_apikey(client, key_id=1)
|
|
177
177
|
>>> apikey.update(name="updated_name")
|
|
178
178
|
"""
|
|
179
|
-
data = {
|
|
179
|
+
data = clean_data({
|
|
180
180
|
"name": name,
|
|
181
181
|
"user_id": user_id
|
|
182
|
-
}
|
|
183
|
-
|
|
182
|
+
})
|
|
183
|
+
|
|
184
|
+
response = self.api.put(self.endpoint, data, is_json=False)
|
|
185
|
+
self._update_properties(response)
|
|
186
|
+
return response
|
|
184
187
|
|
|
185
188
|
|
|
186
189
|
def delete(self) -> None:
|
geobox/attachment.py
CHANGED
|
@@ -3,7 +3,6 @@ from urllib.parse import urljoin
|
|
|
3
3
|
|
|
4
4
|
from .base import Base
|
|
5
5
|
from .utils import clean_data
|
|
6
|
-
from .enums import AttachmentResourceType
|
|
7
6
|
from .map import Map
|
|
8
7
|
from .vectorlayer import VectorLayer
|
|
9
8
|
from .view import VectorLayerView
|
|
@@ -56,14 +55,13 @@ class Attachment(Base):
|
|
|
56
55
|
|
|
57
56
|
|
|
58
57
|
@classmethod
|
|
59
|
-
def get_attachments(cls, api: 'GeoboxClient',
|
|
58
|
+
def get_attachments(cls, api: 'GeoboxClient', resource: Union['Map', 'VectorLayer', 'VectorLayerView'], **kwargs) -> Union[List['Attachment'], int]:
|
|
60
59
|
"""
|
|
61
60
|
Get list of attachments with optional filtering and pagination.
|
|
62
61
|
|
|
63
62
|
Args:
|
|
64
63
|
api (GeoboxClient): The GeoboxClient instance for making requests.
|
|
65
|
-
|
|
66
|
-
resource_uuid (str): The Resoource uuid of the attachment.
|
|
64
|
+
resource (Map | VectorLayer | VectorLayerView): options are: Map, Vector, View objects
|
|
67
65
|
|
|
68
66
|
Keyword Args:
|
|
69
67
|
element_id (str): the id of the element with attachment.
|
|
@@ -76,17 +74,34 @@ class Attachment(Base):
|
|
|
76
74
|
Returns:
|
|
77
75
|
List[Attachment] | int: A list of attachments instances or the total number of attachments.
|
|
78
76
|
|
|
77
|
+
Raises:
|
|
78
|
+
TypeError: if the resource type is not supported
|
|
79
|
+
|
|
79
80
|
Example:
|
|
80
81
|
>>> from geobox import GeoboxClient
|
|
81
82
|
>>> from geobox.attachment import Attachment
|
|
82
83
|
>>> client = GeoboxClient()
|
|
83
|
-
>>>
|
|
84
|
+
>>> map = client.get_maps()[0]
|
|
85
|
+
>>> attachments = Attachment.get_attachments(client, resource=map, q="name LIKE '%My attachment%'")
|
|
84
86
|
or
|
|
85
|
-
>>> attachments = client.get_attachments(q="name LIKE '%My attachment%'")
|
|
87
|
+
>>> attachments = client.get_attachments(resource=map, q="name LIKE '%My attachment%'")
|
|
86
88
|
"""
|
|
89
|
+
if type(resource) == VectorLayer:
|
|
90
|
+
resource_type = 'vector'
|
|
91
|
+
|
|
92
|
+
elif type(resource) == VectorLayerView:
|
|
93
|
+
resource_type = 'view'
|
|
94
|
+
|
|
95
|
+
elif type(resource) == Map:
|
|
96
|
+
resource_type = 'map'
|
|
97
|
+
|
|
98
|
+
else:
|
|
99
|
+
raise TypeError('resource must be a vectorlayer or view or map object')
|
|
100
|
+
|
|
101
|
+
|
|
87
102
|
params = {
|
|
88
|
-
'resource_type': resource_type
|
|
89
|
-
'resource_uuid':
|
|
103
|
+
'resource_type': resource_type,
|
|
104
|
+
'resource_uuid': resource.uuid,
|
|
90
105
|
'element_id': kwargs.get('element_id'),
|
|
91
106
|
'search': kwargs.get('search'),
|
|
92
107
|
'order_by': kwargs.get('order_by'),
|
|
@@ -155,13 +170,13 @@ class Attachment(Base):
|
|
|
155
170
|
... description="Attachment Description")
|
|
156
171
|
"""
|
|
157
172
|
if isinstance(resource, VectorLayer):
|
|
158
|
-
resource_type =
|
|
173
|
+
resource_type = 'vector'
|
|
159
174
|
|
|
160
175
|
if isinstance(resource, VectorLayerView):
|
|
161
|
-
resource_type =
|
|
176
|
+
resource_type = 'view'
|
|
162
177
|
|
|
163
178
|
if isinstance(resource, Map):
|
|
164
|
-
resource_type =
|
|
179
|
+
resource_type = 'map'
|
|
165
180
|
|
|
166
181
|
data = {
|
|
167
182
|
"name": name,
|
|
@@ -171,7 +186,7 @@ class Attachment(Base):
|
|
|
171
186
|
"loc_y": loc_y,
|
|
172
187
|
"resource_type": resource_type,
|
|
173
188
|
"resource_uuid": resource.uuid,
|
|
174
|
-
"element_id": feature.id,
|
|
189
|
+
"element_id": feature.id if feature else None,
|
|
175
190
|
"file_id": file.id
|
|
176
191
|
}
|
|
177
192
|
return super()._create(api, cls.BASE_ENDPOINT, data, factory_func=lambda api, item: Attachment(api, item['id'], item))
|
geobox/basemap.py
CHANGED
geobox/enums.py
CHANGED
|
@@ -19,6 +19,7 @@ class PublishFileType(Enum):
|
|
|
19
19
|
VECTOR = 'vector'
|
|
20
20
|
RASTER = 'raster'
|
|
21
21
|
MODEL3D = 'model3d'
|
|
22
|
+
Tiles3D = 'tiles3d'
|
|
22
23
|
|
|
23
24
|
class FileType(Enum):
|
|
24
25
|
Compressed = 'Compressed'
|
|
@@ -36,6 +37,7 @@ class FileType(Enum):
|
|
|
36
37
|
FileGDB = 'FileGDB'
|
|
37
38
|
GeoTIFF = 'GeoTIFF'
|
|
38
39
|
GeoJSON = 'GeoJSON'
|
|
40
|
+
ThreedTiles = 'ThreedTiles'
|
|
39
41
|
|
|
40
42
|
class FileFormat(Enum):
|
|
41
43
|
# Spatial Data Formats
|
|
@@ -270,14 +272,6 @@ class UserStatus(Enum):
|
|
|
270
272
|
DISABLED = "Disabled"
|
|
271
273
|
|
|
272
274
|
|
|
273
|
-
class AttachmentResourceType(Enum):
|
|
274
|
-
Map = "map"
|
|
275
|
-
|
|
276
|
-
Vector = "vector"
|
|
277
|
-
|
|
278
|
-
View = "view"
|
|
279
|
-
|
|
280
|
-
|
|
281
275
|
class MaxLogPolicy(Enum):
|
|
282
276
|
OverwriteFirstLog = "OverwriteFirstLog"
|
|
283
277
|
|
geobox/file.py
CHANGED
|
@@ -429,6 +429,9 @@ class File(Base):
|
|
|
429
429
|
FileType(self.layers[0]['format']).value in ['GLB']):
|
|
430
430
|
publish_as = PublishFileType.MODEL3D
|
|
431
431
|
|
|
432
|
+
elif self.file_type.value in ['ThreedTiles']:
|
|
433
|
+
publish_as = PublishFileType.Tiles3D
|
|
434
|
+
|
|
432
435
|
else:
|
|
433
436
|
raise ValidationError('Unknown format')
|
|
434
437
|
|
geobox/layout.py
ADDED
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
from typing import List, Dict, Optional, TYPE_CHECKING, Union
|
|
2
|
+
|
|
3
|
+
from .base import Base
|
|
4
|
+
|
|
5
|
+
if TYPE_CHECKING:
|
|
6
|
+
from . import GeoboxClient
|
|
7
|
+
from .user import User
|
|
8
|
+
|
|
9
|
+
class Layout(Base):
|
|
10
|
+
|
|
11
|
+
BASE_ENDPOINT = 'layouts/'
|
|
12
|
+
|
|
13
|
+
def __init__(self,
|
|
14
|
+
api: 'GeoboxClient',
|
|
15
|
+
uuid: str,
|
|
16
|
+
data: Optional[Dict] = {}):
|
|
17
|
+
"""
|
|
18
|
+
Initialize a layout instance.
|
|
19
|
+
|
|
20
|
+
Args:
|
|
21
|
+
api (GeoboxClient): The GeoboxClient instance for making requests.
|
|
22
|
+
uuid (str): The unique identifier for the layout.
|
|
23
|
+
data (Dict): The data of the layout.
|
|
24
|
+
"""
|
|
25
|
+
super().__init__(api, uuid=uuid, data=data)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
@classmethod
|
|
29
|
+
def get_layouts(cls, api: 'GeoboxClient', **kwargs) -> Union[List['Layout'], int]:
|
|
30
|
+
"""
|
|
31
|
+
Get list of layouts with optional filtering and pagination.
|
|
32
|
+
|
|
33
|
+
Args:
|
|
34
|
+
api (GeoboxClient): The GeoboxClient instance for making requests.
|
|
35
|
+
|
|
36
|
+
Keyword Args:
|
|
37
|
+
q (str): query filter based on OGC CQL standard. e.g. "field1 LIKE '%GIS%' AND created_at > '2021-01-01'"
|
|
38
|
+
search (str): search term for keyword-based searching among search_fields or all textual fields if search_fields does not have value. NOTE: if q param is defined this param will be ignored.
|
|
39
|
+
search_fields (str): comma separated list of fields for searching.
|
|
40
|
+
order_by (str): comma separated list of fields for sorting results [field1 A|D, field2 A|D, …]. e.g. name A, type D. NOTE: "A" denotes ascending order and "D" denotes descending order.
|
|
41
|
+
return_count (bool): Whether to return total count. default is False.
|
|
42
|
+
skip (int): Number of items to skip. default is 0.
|
|
43
|
+
limit (int): Number of items to return. default is 10.
|
|
44
|
+
user_id (int): Specific user. privileges required.
|
|
45
|
+
shared (bool): Whether to return shared layouts. default is False.
|
|
46
|
+
|
|
47
|
+
Returns:
|
|
48
|
+
List[Layout] | int: A list of layout instances or the total number of layouts.
|
|
49
|
+
|
|
50
|
+
Example:
|
|
51
|
+
>>> from geobox import GeoboxClient
|
|
52
|
+
>>> from geobox.layout import Layout
|
|
53
|
+
>>> client = GeoboxClient()
|
|
54
|
+
>>> layouts = Layout.get_layout(client, q="name LIKE '%My layout%'")
|
|
55
|
+
or
|
|
56
|
+
>>> layouts = client.get_layout(q="name LIKE '%My layout%'")
|
|
57
|
+
"""
|
|
58
|
+
params = {
|
|
59
|
+
'f': 'json',
|
|
60
|
+
'q': kwargs.get('q'),
|
|
61
|
+
'search': kwargs.get('search'),
|
|
62
|
+
'search_fields': kwargs.get('search_fields'),
|
|
63
|
+
'order_by': kwargs.get('order_by'),
|
|
64
|
+
'return_count': kwargs.get('return_count', False),
|
|
65
|
+
'skip': kwargs.get('skip', 0),
|
|
66
|
+
'limit': kwargs.get('limit', 10),
|
|
67
|
+
'user_id': kwargs.get('user_id'),
|
|
68
|
+
'shared': kwargs.get('shared', False)
|
|
69
|
+
}
|
|
70
|
+
return super()._get_list(api, cls.BASE_ENDPOINT, params, factory_func=lambda api, item: Layout(api, item['uuid'], item))
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
@classmethod
|
|
74
|
+
def create_layout(cls,
|
|
75
|
+
api: 'GeoboxClient',
|
|
76
|
+
name: str,
|
|
77
|
+
display_name: str = None,
|
|
78
|
+
description: str = None,
|
|
79
|
+
settings: Dict = {},
|
|
80
|
+
thumbnail: str = None,
|
|
81
|
+
user_id: int = None) -> 'Layout':
|
|
82
|
+
"""
|
|
83
|
+
Create a new layout.
|
|
84
|
+
|
|
85
|
+
Args:
|
|
86
|
+
api (GeoboxClient): The GeoboxClient instance for making requests.
|
|
87
|
+
name (str): The name of the Layout.
|
|
88
|
+
display_name (str): The display name of the layout.
|
|
89
|
+
description (str): The description of the layout.
|
|
90
|
+
settings (Dict): The settings of the layout.
|
|
91
|
+
thumbnail (str): The thumbnail of the layout.
|
|
92
|
+
user_id (int): Specific user. privileges layout.
|
|
93
|
+
|
|
94
|
+
Returns:
|
|
95
|
+
Layout: The newly created layout instance.
|
|
96
|
+
|
|
97
|
+
Raises:
|
|
98
|
+
ValidationError: If the layout data is invalid.
|
|
99
|
+
|
|
100
|
+
Example:
|
|
101
|
+
>>> from geobox import GeoboxClient
|
|
102
|
+
>>> from geobox.layout import Layout
|
|
103
|
+
>>> client = GeoboxClient()
|
|
104
|
+
>>> layout = Layout.create_layout(client, name="my_layout")
|
|
105
|
+
or
|
|
106
|
+
>>> layout = client.create_layout(name="my_layout")
|
|
107
|
+
"""
|
|
108
|
+
data = {
|
|
109
|
+
"name": name,
|
|
110
|
+
"display_name": display_name,
|
|
111
|
+
"description": description,
|
|
112
|
+
"settings": settings,
|
|
113
|
+
"thumbnail": thumbnail,
|
|
114
|
+
"user_id": user_id,
|
|
115
|
+
}
|
|
116
|
+
return super()._create(api, cls.BASE_ENDPOINT, data, factory_func=lambda api, item: Layout(api, item['uuid'], item))
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
@classmethod
|
|
120
|
+
def get_layout(cls, api: 'GeoboxClient', uuid: str, user_id: int = None) -> 'Layout':
|
|
121
|
+
"""
|
|
122
|
+
Get a layout by its UUID.
|
|
123
|
+
|
|
124
|
+
Args:
|
|
125
|
+
api (GeoboxClient): The GeoboxClient instance for making requests.
|
|
126
|
+
uuid (str): The UUID of the layout to get.
|
|
127
|
+
user_id (int): Specific user. privileges required.
|
|
128
|
+
|
|
129
|
+
Returns:
|
|
130
|
+
Layout: The layout object.
|
|
131
|
+
|
|
132
|
+
Raises:
|
|
133
|
+
NotFoundError: If the layout with the specified UUID is not found.
|
|
134
|
+
|
|
135
|
+
Example:
|
|
136
|
+
>>> from geobox import GeoboxClient
|
|
137
|
+
>>> from geobox.layout import Layout
|
|
138
|
+
>>> client = GeoboxClient()
|
|
139
|
+
>>> layout = Layout.get_layout(client, uuid="12345678-1234-5678-1234-567812345678")
|
|
140
|
+
or
|
|
141
|
+
>>> layout = client.get_layout(uuid="12345678-1234-5678-1234-567812345678")
|
|
142
|
+
"""
|
|
143
|
+
params = {
|
|
144
|
+
'f': 'json',
|
|
145
|
+
'user_id': user_id,
|
|
146
|
+
}
|
|
147
|
+
return super()._get_detail(api, cls.BASE_ENDPOINT, uuid, params, factory_func=lambda api, item: Layout(api, item['uuid'], item))
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
@classmethod
|
|
151
|
+
def get_layout_by_name(cls, api: 'GeoboxClient', name: str, user_id: int = None) -> Union['Layout', None]:
|
|
152
|
+
"""
|
|
153
|
+
Get a layout by name
|
|
154
|
+
|
|
155
|
+
Args:
|
|
156
|
+
api (GeoboxClient): The GeoboxClient instance for making requests.
|
|
157
|
+
name (str): the name of the layout to get
|
|
158
|
+
user_id (int, optional): specific user. privileges required.
|
|
159
|
+
|
|
160
|
+
Returns:
|
|
161
|
+
Layout | None: returns the layout if a layout matches the given name, else None
|
|
162
|
+
|
|
163
|
+
Example:
|
|
164
|
+
>>> from geobox import GeoboxClient
|
|
165
|
+
>>> from geobox.layout import Layout
|
|
166
|
+
>>> client = GeoboxClient()
|
|
167
|
+
>>> layout = Layout.get_layout_by_name(client, name='test')
|
|
168
|
+
or
|
|
169
|
+
>>> layout = client.get_layout_by_name(name='test')
|
|
170
|
+
"""
|
|
171
|
+
layouts = cls.get_layouts(api, q=f"name = '{name}'", user_id=user_id)
|
|
172
|
+
if layouts and layouts[0].name == name:
|
|
173
|
+
return layouts[0]
|
|
174
|
+
else:
|
|
175
|
+
return None
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
def update(self, **kwargs) -> Dict:
|
|
179
|
+
"""
|
|
180
|
+
Update the layout.
|
|
181
|
+
|
|
182
|
+
Keyword Args:
|
|
183
|
+
name (str): The name of the layout.
|
|
184
|
+
display_name (str): The display name of the layout.
|
|
185
|
+
description (str): The description of the layout.
|
|
186
|
+
settings (Dict): The settings of the layout.
|
|
187
|
+
thumbnail (str): The thumbnail of the layout.
|
|
188
|
+
|
|
189
|
+
Returns:
|
|
190
|
+
Dict: The updated layout data.
|
|
191
|
+
|
|
192
|
+
Raises:
|
|
193
|
+
ValidationError: If the layout data is invalid.
|
|
194
|
+
|
|
195
|
+
Example:
|
|
196
|
+
>>> from geobox import GeoboxClient
|
|
197
|
+
>>> from geobox.layout import Layout
|
|
198
|
+
>>> client = GeoboxClient()
|
|
199
|
+
>>> layout = Layout.get_layout(client, uuid="12345678-1234-5678-1234-567812345678")
|
|
200
|
+
>>> layout.update_layout(display_name="New Display Name")
|
|
201
|
+
"""
|
|
202
|
+
data = {
|
|
203
|
+
"name": kwargs.get('name'),
|
|
204
|
+
"display_name": kwargs.get('display_name'),
|
|
205
|
+
"description": kwargs.get('description'),
|
|
206
|
+
"settings": kwargs.get('settings'),
|
|
207
|
+
"thumbnail": kwargs.get('thumbnail')
|
|
208
|
+
}
|
|
209
|
+
return super()._update(self.endpoint, data)
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
def delete(self) -> None:
|
|
213
|
+
"""
|
|
214
|
+
Delete the Layout.
|
|
215
|
+
|
|
216
|
+
Returns:
|
|
217
|
+
None
|
|
218
|
+
|
|
219
|
+
Example:
|
|
220
|
+
>>> from geobox import GeoboxClient
|
|
221
|
+
>>> from geobox.layout import Layout
|
|
222
|
+
>>> client = GeoboxClient()
|
|
223
|
+
>>> layout = Layout.get_layout(client, uuid="12345678-1234-5678-1234-567812345678")
|
|
224
|
+
>>> layout.delete()
|
|
225
|
+
"""
|
|
226
|
+
super().delete(self.endpoint)
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
@property
|
|
230
|
+
def thumbnail(self) -> str:
|
|
231
|
+
"""
|
|
232
|
+
Get the thumbnail URL of the Layout.
|
|
233
|
+
|
|
234
|
+
Returns:
|
|
235
|
+
str: The thumbnail of the Layout.
|
|
236
|
+
|
|
237
|
+
Example:
|
|
238
|
+
>>> from geobox import GeoboxClient
|
|
239
|
+
>>> from geobox.layout import Layout
|
|
240
|
+
>>> client = GeoboxClient()
|
|
241
|
+
>>> layout = Layout.get_layout(client, uuid="12345678-1234-5678-1234-567812345678")
|
|
242
|
+
>>> layout.thumbnail
|
|
243
|
+
'https://example.com/thumbnail.png'
|
|
244
|
+
"""
|
|
245
|
+
return super().thumbnail()
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
def share(self, users: List['User']) -> None:
|
|
249
|
+
"""
|
|
250
|
+
Shares the layout with specified users.
|
|
251
|
+
|
|
252
|
+
Args:
|
|
253
|
+
users (List[User]): The list of user objects to share the layout with.
|
|
254
|
+
|
|
255
|
+
Returns:
|
|
256
|
+
None
|
|
257
|
+
|
|
258
|
+
Example:
|
|
259
|
+
>>> from geobox import GeoboxClient
|
|
260
|
+
>>> from geobox.layout import Layout
|
|
261
|
+
>>> client = GeoboxClient()
|
|
262
|
+
>>> layout = Layout.get_layout(client, uuid="12345678-1234-5678-1234-567812345678")
|
|
263
|
+
>>> users = client.search_users(search='John')
|
|
264
|
+
>>> layout.share(users=users)
|
|
265
|
+
"""
|
|
266
|
+
super()._share(self.endpoint, users)
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
def unshare(self, users: List['User']) -> None:
|
|
270
|
+
"""
|
|
271
|
+
Unshares the layout with specified users.
|
|
272
|
+
|
|
273
|
+
Args:
|
|
274
|
+
users (List[User]): The list of user objects to unshare the layout with.
|
|
275
|
+
|
|
276
|
+
Returns:
|
|
277
|
+
None
|
|
278
|
+
|
|
279
|
+
Example:
|
|
280
|
+
>>> from geobox import GeoboxClient
|
|
281
|
+
>>> from geobox.layout import Layout
|
|
282
|
+
>>> client = GeoboxClient()
|
|
283
|
+
>>> layout = Layout.get_layout(client, uuid="12345678-1234-5678-1234-567812345678")
|
|
284
|
+
>>> users = client.search_users(search='John')
|
|
285
|
+
>>> layout.unshare(users=users)
|
|
286
|
+
"""
|
|
287
|
+
super()._unshare(self.endpoint, users)
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
def get_shared_users(self, search: str = None, skip: int = 0, limit: int = 10) -> List['User']:
|
|
291
|
+
"""
|
|
292
|
+
Retrieves the list of users the layout is shared with.
|
|
293
|
+
|
|
294
|
+
Args:
|
|
295
|
+
search (str, optional): The search query.
|
|
296
|
+
skip (int, optional): The number of users to skip.
|
|
297
|
+
limit (int, optional): The maximum number of users to retrieve.
|
|
298
|
+
|
|
299
|
+
Returns:
|
|
300
|
+
List[User]: The list of shared users.
|
|
301
|
+
|
|
302
|
+
Example:
|
|
303
|
+
>>> from geobox import GeoboxClient
|
|
304
|
+
>>> from geobox.layout import Layout
|
|
305
|
+
>>> client = GeoboxClient()
|
|
306
|
+
>>> layout = Layout.get_layout(client, uuid="12345678-1234-5678-1234-567812345678")
|
|
307
|
+
>>> layout.get_shared_users(search='John', skip=0, limit=10)
|
|
308
|
+
"""
|
|
309
|
+
params = {
|
|
310
|
+
'search': search,
|
|
311
|
+
'skip': skip,
|
|
312
|
+
'limit': limit
|
|
313
|
+
}
|
|
314
|
+
return super()._get_shared_users(self.endpoint, params)
|
geobox/log.py
CHANGED
|
@@ -6,6 +6,7 @@ from .base import Base
|
|
|
6
6
|
|
|
7
7
|
if TYPE_CHECKING:
|
|
8
8
|
from . import GeoboxClient
|
|
9
|
+
from .user import User
|
|
9
10
|
|
|
10
11
|
|
|
11
12
|
class Log(Base):
|
|
@@ -98,4 +99,22 @@ class Log(Base):
|
|
|
98
99
|
>>> log.delete()
|
|
99
100
|
"""
|
|
100
101
|
super().delete(self.endpoint)
|
|
101
|
-
self.log_id = None
|
|
102
|
+
self.log_id = None
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
@property
|
|
106
|
+
def user(self) -> Union['User', None]:
|
|
107
|
+
"""
|
|
108
|
+
Get the owner user for the log
|
|
109
|
+
|
|
110
|
+
Returns:
|
|
111
|
+
User | None: if the log has owner user
|
|
112
|
+
|
|
113
|
+
Example:
|
|
114
|
+
>>> from geobox import Geobox
|
|
115
|
+
>>> from geopox.log import Log
|
|
116
|
+
>>> client = GeoboxClient()
|
|
117
|
+
>>> log = Log.get_logs(client)[0]
|
|
118
|
+
>>> log.user
|
|
119
|
+
"""
|
|
120
|
+
return self.api.get_user(self.owner_id)
|
geobox/map.py
CHANGED
|
@@ -4,11 +4,15 @@ from urllib.parse import urljoin, urlencode
|
|
|
4
4
|
from .base import Base
|
|
5
5
|
from .utils import clean_data, join_url_params
|
|
6
6
|
from .model3d import Model
|
|
7
|
+
from .file import File
|
|
8
|
+
from .feature import Feature
|
|
7
9
|
|
|
8
10
|
if TYPE_CHECKING:
|
|
9
11
|
from . import GeoboxClient
|
|
10
12
|
from .user import User
|
|
11
13
|
from .task import Task
|
|
14
|
+
from .attachment import Attachment
|
|
15
|
+
|
|
12
16
|
|
|
13
17
|
|
|
14
18
|
class Map(Base):
|
|
@@ -859,4 +863,120 @@ class Map(Base):
|
|
|
859
863
|
>>> map.image_tile_url()
|
|
860
864
|
>>> map.image_tile_url(x=1, y=2, z=3, format='.pbf')
|
|
861
865
|
"""
|
|
862
|
-
|
|
866
|
+
endpoint = f"{self.api.base_url}{self.endpoint}tiles/{z}/{x}/{y}{format}"
|
|
867
|
+
|
|
868
|
+
if not self.api.access_token and self.api.apikey:
|
|
869
|
+
endpoint = f'{endpoint}?apikey={self.api.apikey}'
|
|
870
|
+
|
|
871
|
+
return endpoint
|
|
872
|
+
|
|
873
|
+
|
|
874
|
+
def export_map_to_image(self, bbox: List, width: int, height: int) -> 'Task':
|
|
875
|
+
"""
|
|
876
|
+
Export the map to image
|
|
877
|
+
|
|
878
|
+
Args:
|
|
879
|
+
bbox (List): e.g. [50.275, 35.1195, 51.4459, 36.0416]
|
|
880
|
+
width (int): minimum: 10, maximum: 10000
|
|
881
|
+
height (int): minimum: 10, maximum: 10000
|
|
882
|
+
|
|
883
|
+
Returns:
|
|
884
|
+
Task: the task object
|
|
885
|
+
|
|
886
|
+
Example:
|
|
887
|
+
>>> from geobox import GeoboxClient
|
|
888
|
+
>>> from geobox.map import Map
|
|
889
|
+
>>> client = GeoboxClient()
|
|
890
|
+
>>> map = Map.get_map(client, uuid="12345678-1234-5678-1234-567812345678")
|
|
891
|
+
>>> task = map.export_map_to_image(bbox=[50.275, 35.1195, 51.4459, 36.0416],
|
|
892
|
+
... width=1024,
|
|
893
|
+
... height=1024)
|
|
894
|
+
"""
|
|
895
|
+
data = clean_data({
|
|
896
|
+
'uuid': self.uuid,
|
|
897
|
+
'bbox': bbox,
|
|
898
|
+
'width': width,
|
|
899
|
+
'height': height
|
|
900
|
+
})
|
|
901
|
+
query_string = urlencode(data)
|
|
902
|
+
endpoint = urljoin(self.endpoint, 'export/')
|
|
903
|
+
endpoint = f"{endpoint}?{query_string}"
|
|
904
|
+
response = self.api.post(endpoint)
|
|
905
|
+
return self.api.get_task(response['task_id'])
|
|
906
|
+
|
|
907
|
+
|
|
908
|
+
def get_attachments(self, **kwargs) -> List['Attachment']:
|
|
909
|
+
"""
|
|
910
|
+
Get the resouces attachments
|
|
911
|
+
|
|
912
|
+
Keyword Args:
|
|
913
|
+
element_id (str): the id of the element with attachment.
|
|
914
|
+
search (str): search term for keyword-based searching among all textual fields.
|
|
915
|
+
order_by (str): comma separated list of fields for sorting results [field1 A|D, field2 A|D, …]. e.g. name A, type D. NOTE: "A" denotes ascending order and "D" denotes descending order.
|
|
916
|
+
skip (int): Number of items to skip. default is 0.
|
|
917
|
+
limit (int): Number of items to return. default is 10.
|
|
918
|
+
return_count (bool): Whether to return total count. default is False.
|
|
919
|
+
|
|
920
|
+
Returns:
|
|
921
|
+
List[Attachment] | int: A list of attachments instances or the total number of attachments.
|
|
922
|
+
|
|
923
|
+
Raises:
|
|
924
|
+
TypeError: if the resource type is not supported
|
|
925
|
+
|
|
926
|
+
Example:
|
|
927
|
+
>>> from geobox import GeoboxClient
|
|
928
|
+
>>> from geobox.map import Map
|
|
929
|
+
>>> client = GeoboxClient()
|
|
930
|
+
>>> map = Map.get_map(client, uuid="12345678-1234-5678-1234-567812345678")
|
|
931
|
+
>>> map.get_attachments()
|
|
932
|
+
"""
|
|
933
|
+
from .attachment import Attachment
|
|
934
|
+
|
|
935
|
+
return Attachment.get_attachments(self.api, resource=self, **kwargs)
|
|
936
|
+
|
|
937
|
+
|
|
938
|
+
def create_attachment(self,
|
|
939
|
+
name: str,
|
|
940
|
+
loc_x: int,
|
|
941
|
+
loc_y: int,
|
|
942
|
+
file: 'File',
|
|
943
|
+
feature: 'Feature' = None,
|
|
944
|
+
display_name: str = None,
|
|
945
|
+
description: str = None) -> 'Attachment':
|
|
946
|
+
"""
|
|
947
|
+
Create a new Attachment.
|
|
948
|
+
|
|
949
|
+
Args:
|
|
950
|
+
name (str): The name of the scene.
|
|
951
|
+
loc_x (int): x parameter of the attachment location.
|
|
952
|
+
loc_y (int): y parameter of the attachment location.
|
|
953
|
+
file (File): the file object.
|
|
954
|
+
feature (Feature, optional): the feature object.
|
|
955
|
+
display_name (str, optional): The display name of the scene.
|
|
956
|
+
description (str, optional): The description of the scene.
|
|
957
|
+
|
|
958
|
+
Returns:
|
|
959
|
+
Attachment: The newly created Attachment instance.
|
|
960
|
+
|
|
961
|
+
Raises:
|
|
962
|
+
ValidationError: If the Attachment data is invalid.
|
|
963
|
+
|
|
964
|
+
Example:
|
|
965
|
+
>>> from geobox import GeoboxClient
|
|
966
|
+
>>> from geobox.map import Map
|
|
967
|
+
>>> client = GeoboxClient()
|
|
968
|
+
>>> map = Map.get_map(client, uuid="12345678-1234-5678-1234-567812345678")
|
|
969
|
+
>>> file = client.get_files()[0]
|
|
970
|
+
>>> map.create_attachment(name='test', loc_x=10, loc_y=10, file=file)
|
|
971
|
+
"""
|
|
972
|
+
from .attachment import Attachment
|
|
973
|
+
|
|
974
|
+
return Attachment.create_attachment(self.api,
|
|
975
|
+
name=name,
|
|
976
|
+
loc_x=loc_x,
|
|
977
|
+
loc_y=loc_y,
|
|
978
|
+
resource=self,
|
|
979
|
+
file=file,
|
|
980
|
+
feature=feature,
|
|
981
|
+
display_name=display_name,
|
|
982
|
+
description=description)
|
geobox/model3d.py
CHANGED
|
@@ -152,6 +152,7 @@ class Model(Base):
|
|
|
152
152
|
|
|
153
153
|
Keyword Args:
|
|
154
154
|
name (str): The new name for the model.
|
|
155
|
+
display_name (str): The new display name.
|
|
155
156
|
description (str): The new description for the model.
|
|
156
157
|
settings (Dict): The new settings for the model.
|
|
157
158
|
thumbnail (str): The new thumbnail for the model.
|
|
@@ -190,6 +191,7 @@ class Model(Base):
|
|
|
190
191
|
"""
|
|
191
192
|
data = {
|
|
192
193
|
'name': kwargs.get('name'),
|
|
194
|
+
'display_name': kwargs.get('display_name'),
|
|
193
195
|
'description': kwargs.get('description'),
|
|
194
196
|
'settings': kwargs.get('settings'),
|
|
195
197
|
'thumbnail': kwargs.get('thumbnail')
|
geobox/plan.py
CHANGED
|
@@ -191,6 +191,33 @@ class Plan(Base):
|
|
|
191
191
|
'f': 'json'
|
|
192
192
|
}
|
|
193
193
|
return super()._get_detail(api, cls.BASE_ENDPOINT, plan_id, params, factory_func=lambda api, item: Plan(api, item['id'], item))
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
@classmethod
|
|
197
|
+
def get_plan_by_name(cls, api: 'GeoboxClient', name: str) -> Union['Plan', None]:
|
|
198
|
+
"""
|
|
199
|
+
Get a plan by name
|
|
200
|
+
|
|
201
|
+
Args:
|
|
202
|
+
api (GeoboxClient): The GeoboxClient instance for making requests.
|
|
203
|
+
name (str): the name of the plan to get
|
|
204
|
+
|
|
205
|
+
Returns:
|
|
206
|
+
Plan | None: returns the plan if a plan matches the given name, else None
|
|
207
|
+
|
|
208
|
+
Example:
|
|
209
|
+
>>> from geobox import GeoboxClient
|
|
210
|
+
>>> from geobox.plan import Plan
|
|
211
|
+
>>> client = GeoboxClient()
|
|
212
|
+
>>> plan = Workflow.get_plan_by_name(client, name='test')
|
|
213
|
+
or
|
|
214
|
+
>>> plan = client.get_plan_by_name(name='test')
|
|
215
|
+
"""
|
|
216
|
+
plans = cls.get_plans(api, q=f"name = '{name}'")
|
|
217
|
+
if plans and plans[0].name == name:
|
|
218
|
+
return plans[0]
|
|
219
|
+
else:
|
|
220
|
+
return None
|
|
194
221
|
|
|
195
222
|
|
|
196
223
|
def update(self, **kwargs) -> Dict:
|
geobox/raster.py
CHANGED
|
@@ -513,6 +513,10 @@ class Raster(Base):
|
|
|
513
513
|
endpoint = f'{self.api.base_url}{self.endpoint}render/{z}/{x}/{y}.png'
|
|
514
514
|
if query_string:
|
|
515
515
|
endpoint = f'{endpoint}?{query_string}'
|
|
516
|
+
|
|
517
|
+
if not self.api.access_token and self.api.apikey:
|
|
518
|
+
endpoint = join_url_params(endpoint, {"apikey": self.api.apikey})
|
|
519
|
+
|
|
516
520
|
return endpoint
|
|
517
521
|
|
|
518
522
|
|
geobox/task.py
CHANGED
|
@@ -11,6 +11,7 @@ if TYPE_CHECKING:
|
|
|
11
11
|
from .raster import Raster
|
|
12
12
|
from .model3d import Model
|
|
13
13
|
from .file import File
|
|
14
|
+
from .tile3d import Tile3d
|
|
14
15
|
|
|
15
16
|
class Task(Base):
|
|
16
17
|
"""
|
|
@@ -46,12 +47,12 @@ class Task(Base):
|
|
|
46
47
|
|
|
47
48
|
|
|
48
49
|
@property
|
|
49
|
-
def output_asset(self) -> Union['VectorLayer', 'Raster', 'Model', 'File', None]:
|
|
50
|
+
def output_asset(self) -> Union['VectorLayer', 'Raster', 'Model', 'File', 'Tile3d', None]:
|
|
50
51
|
"""
|
|
51
52
|
output asset property
|
|
52
53
|
|
|
53
54
|
Returns:
|
|
54
|
-
VectorLayer | Raster | Model | None: if task type is publish, it returns the published layer
|
|
55
|
+
VectorLayer | Raster | Model | Tile3d | None: if task type is publish, it returns the published layer
|
|
55
56
|
|
|
56
57
|
Example:
|
|
57
58
|
>>> from geobox import GeoboxClient
|
|
@@ -71,6 +72,9 @@ class Task(Base):
|
|
|
71
72
|
|
|
72
73
|
elif self.data.get('result', {}).get('file_uuid'):
|
|
73
74
|
return self.api.get_file(uuid=self.data['result']['file_uuid'])
|
|
75
|
+
|
|
76
|
+
elif self.data.get('result', {}).get('3dtiles_uuid'):
|
|
77
|
+
return self.api.get_3dtile(uuid=self.data['result']['3dtiles_uuid'])
|
|
74
78
|
|
|
75
79
|
else:
|
|
76
80
|
return None
|
geobox/tile3d.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
from typing import List, Dict, Optional, TYPE_CHECKING, Union
|
|
2
|
+
from urllib.parse import urljoin
|
|
2
3
|
|
|
3
4
|
from .base import Base
|
|
4
5
|
|
|
@@ -291,4 +292,22 @@ class Tile3d(Base):
|
|
|
291
292
|
'skip': skip,
|
|
292
293
|
'limit': limit
|
|
293
294
|
}
|
|
294
|
-
return super()._get_shared_users(self.endpoint, params)
|
|
295
|
+
return super()._get_shared_users(self.endpoint, params)
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
def get_tileset_json(self) -> Dict:
|
|
299
|
+
"""
|
|
300
|
+
Get Tileset JSON of a 3D Tiles.
|
|
301
|
+
|
|
302
|
+
Returns:
|
|
303
|
+
Dict: The tileset JSON configuration.
|
|
304
|
+
|
|
305
|
+
Example:
|
|
306
|
+
>>> from geobox import GeoboxClient
|
|
307
|
+
>>> from geobox.tile3d import Tile3d
|
|
308
|
+
>>> client = GeoboxClient()
|
|
309
|
+
>>> tile = Tile3d.get_3dtile(api=client, uuid="12345678-1234-5678-1234-567812345678")
|
|
310
|
+
>>> tile_json = tile.get_tileset_json()
|
|
311
|
+
"""
|
|
312
|
+
endpoint = urljoin(self.endpoint, 'tileset.json')
|
|
313
|
+
return self.api.get(endpoint)
|
geobox/vectorlayer.py
CHANGED
|
@@ -11,12 +11,13 @@ from .task import Task
|
|
|
11
11
|
from .enums import InputGeomType, FileOutputFormat
|
|
12
12
|
from .version import VectorLayerVersion
|
|
13
13
|
|
|
14
|
-
|
|
15
14
|
if TYPE_CHECKING:
|
|
16
15
|
from .api import GeoboxClient
|
|
17
16
|
from .view import VectorLayerView
|
|
18
17
|
from .user import User
|
|
19
18
|
from .file import File
|
|
19
|
+
from .attachment import Attachment
|
|
20
|
+
|
|
20
21
|
|
|
21
22
|
class VectorLayer(Base):
|
|
22
23
|
"""
|
|
@@ -1227,4 +1228,81 @@ class VectorLayer(Base):
|
|
|
1227
1228
|
>>> layer.prune_edited_areas()
|
|
1228
1229
|
"""
|
|
1229
1230
|
endpoint = urljoin(self.endpoint, 'prune/')
|
|
1230
|
-
return self.api.post(endpoint)
|
|
1231
|
+
return self.api.post(endpoint)
|
|
1232
|
+
|
|
1233
|
+
|
|
1234
|
+
def get_attachments(self, **kwargs) -> List['Attachment']:
|
|
1235
|
+
"""
|
|
1236
|
+
Get the resouces attachments
|
|
1237
|
+
|
|
1238
|
+
Keyword Args:
|
|
1239
|
+
element_id (str): the id of the element with attachment.
|
|
1240
|
+
search (str): search term for keyword-based searching among all textual fields.
|
|
1241
|
+
order_by (str): comma separated list of fields for sorting results [field1 A|D, field2 A|D, …]. e.g. name A, type D. NOTE: "A" denotes ascending order and "D" denotes descending order.
|
|
1242
|
+
skip (int): Number of items to skip. default is 0.
|
|
1243
|
+
limit (int): Number of items to return. default is 10.
|
|
1244
|
+
return_count (bool): Whether to return total count. default is False.
|
|
1245
|
+
|
|
1246
|
+
Returns:
|
|
1247
|
+
List[Attachment] | int: A list of attachments instances or the total number of attachments.
|
|
1248
|
+
|
|
1249
|
+
Raises:
|
|
1250
|
+
TypeError: if the resource type is not supported
|
|
1251
|
+
|
|
1252
|
+
Example:
|
|
1253
|
+
>>> from geobox import GeoboxClient
|
|
1254
|
+
>>> from geobox.vectorlayer import VectorLayer
|
|
1255
|
+
>>> client = GeoboxClient()
|
|
1256
|
+
>>> layer = VectorLayer.get_vector(api=client, uuid="12345678-1234-5678-1234-567812345678")
|
|
1257
|
+
>>> layer.get_attachments()
|
|
1258
|
+
"""
|
|
1259
|
+
from .attachment import Attachment
|
|
1260
|
+
|
|
1261
|
+
return Attachment.get_attachments(self.api, resource=self, **kwargs)
|
|
1262
|
+
|
|
1263
|
+
|
|
1264
|
+
def create_attachment(self,
|
|
1265
|
+
name: str,
|
|
1266
|
+
loc_x: int,
|
|
1267
|
+
loc_y: int,
|
|
1268
|
+
file: 'File',
|
|
1269
|
+
feature: 'Feature' = None,
|
|
1270
|
+
display_name: str = None,
|
|
1271
|
+
description: str = None) -> 'Attachment':
|
|
1272
|
+
"""
|
|
1273
|
+
Create a new Attachment.
|
|
1274
|
+
|
|
1275
|
+
Args:
|
|
1276
|
+
name (str): The name of the scene.
|
|
1277
|
+
loc_x (int): x parameter of the attachment location.
|
|
1278
|
+
loc_y (int): y parameter of the attachment location.
|
|
1279
|
+
file (File): the file object.
|
|
1280
|
+
feature (Feature, optional): the feature object.
|
|
1281
|
+
display_name (str, optional): The display name of the scene.
|
|
1282
|
+
description (str, optional): The description of the scene.
|
|
1283
|
+
|
|
1284
|
+
Returns:
|
|
1285
|
+
Attachment: The newly created Attachment instance.
|
|
1286
|
+
|
|
1287
|
+
Raises:
|
|
1288
|
+
ValidationError: If the Attachment data is invalid.
|
|
1289
|
+
|
|
1290
|
+
Example:
|
|
1291
|
+
>>> from geobox import GeoboxClient
|
|
1292
|
+
>>> from geobox.vectorlayer import VectorLayer
|
|
1293
|
+
>>> client = GeoboxClient()
|
|
1294
|
+
>>> layer = VectorLayer.get_vector(api=client, uuid="12345678-1234-5678-1234-567812345678")
|
|
1295
|
+
>>> file = client.get_files()[0]
|
|
1296
|
+
>>> layer.create_attachment(name='test', loc_x=10, loc_y=10, file=file)
|
|
1297
|
+
"""
|
|
1298
|
+
from .attachment import Attachment
|
|
1299
|
+
|
|
1300
|
+
return Attachment.create_attachment(self.api,
|
|
1301
|
+
name=name,
|
|
1302
|
+
loc_x=loc_x,
|
|
1303
|
+
loc_y=loc_y,
|
|
1304
|
+
resource=self,
|
|
1305
|
+
file=file,
|
|
1306
|
+
feature=feature,
|
|
1307
|
+
display_name=display_name,
|
|
1308
|
+
description=description)
|
geobox/view.py
CHANGED
|
@@ -7,9 +7,11 @@ if TYPE_CHECKING:
|
|
|
7
7
|
from . import GeoboxClient
|
|
8
8
|
from .field import Field
|
|
9
9
|
from .user import User
|
|
10
|
-
from .enums import InputGeomType
|
|
10
|
+
from .enums import InputGeomType
|
|
11
11
|
from .task import Task
|
|
12
12
|
from .file import File
|
|
13
|
+
from .attachment import Attachment
|
|
14
|
+
|
|
13
15
|
|
|
14
16
|
|
|
15
17
|
class VectorLayerView(VectorLayer):
|
|
@@ -862,3 +864,80 @@ class VectorLayerView(VectorLayer):
|
|
|
862
864
|
>>> view.prune_edited_areas()
|
|
863
865
|
"""
|
|
864
866
|
return super().prune_edited_areas()
|
|
867
|
+
|
|
868
|
+
|
|
869
|
+
def get_attachments(self, **kwargs) -> List['Attachment']:
|
|
870
|
+
"""
|
|
871
|
+
Get the resouces attachments
|
|
872
|
+
|
|
873
|
+
Keyword Args:
|
|
874
|
+
element_id (str): the id of the element with attachment.
|
|
875
|
+
search (str): search term for keyword-based searching among all textual fields.
|
|
876
|
+
order_by (str): comma separated list of fields for sorting results [field1 A|D, field2 A|D, …]. e.g. name A, type D. NOTE: "A" denotes ascending order and "D" denotes descending order.
|
|
877
|
+
skip (int): Number of items to skip. default is 0.
|
|
878
|
+
limit (int): Number of items to return. default is 10.
|
|
879
|
+
return_count (bool): Whether to return total count. default is False.
|
|
880
|
+
|
|
881
|
+
Returns:
|
|
882
|
+
List[Attachment] | int: A list of attachments instances or the total number of attachments.
|
|
883
|
+
|
|
884
|
+
Raises:
|
|
885
|
+
TypeError: if the resource type is not supported
|
|
886
|
+
|
|
887
|
+
Example:
|
|
888
|
+
>>> from geobox import GeoboxClient
|
|
889
|
+
>>> from geobox.view import VectorLayerView
|
|
890
|
+
>>> client = GeoboxClient()
|
|
891
|
+
>>> view = VectorLayerView.get_view(client, uuid="12345678-1234-5678-1234-567812345678")
|
|
892
|
+
>>> view.get_attachments()
|
|
893
|
+
"""
|
|
894
|
+
from .attachment import Attachment
|
|
895
|
+
|
|
896
|
+
return Attachment.get_attachments(self.api, resource=self, **kwargs)
|
|
897
|
+
|
|
898
|
+
|
|
899
|
+
def create_attachment(self,
|
|
900
|
+
name: str,
|
|
901
|
+
loc_x: int,
|
|
902
|
+
loc_y: int,
|
|
903
|
+
file: 'File',
|
|
904
|
+
feature: 'Feature' = None,
|
|
905
|
+
display_name: str = None,
|
|
906
|
+
description: str = None) -> 'Attachment':
|
|
907
|
+
"""
|
|
908
|
+
Create a new Attachment.
|
|
909
|
+
|
|
910
|
+
Args:
|
|
911
|
+
name (str): The name of the scene.
|
|
912
|
+
loc_x (int): x parameter of the attachment location.
|
|
913
|
+
loc_y (int): y parameter of the attachment location.
|
|
914
|
+
file (File): the file object.
|
|
915
|
+
feature (Feature, optional): the feature object.
|
|
916
|
+
display_name (str, optional): The display name of the scene.
|
|
917
|
+
description (str, optional): The description of the scene.
|
|
918
|
+
|
|
919
|
+
Returns:
|
|
920
|
+
Attachment: The newly created Attachment instance.
|
|
921
|
+
|
|
922
|
+
Raises:
|
|
923
|
+
ValidationError: If the Attachment data is invalid.
|
|
924
|
+
|
|
925
|
+
Example:
|
|
926
|
+
>>> from geobox import GeoboxClient
|
|
927
|
+
>>> from geobox.view import VectorLayerView
|
|
928
|
+
>>> client = GeoboxClient()
|
|
929
|
+
>>> view = VectorLayerView.get_view(client, uuid="12345678-1234-5678-1234-567812345678")
|
|
930
|
+
>>> file = client.get_files()[0]
|
|
931
|
+
>>> view.create_attachment(name='test', loc_x=10, loc_y=10, file=file)
|
|
932
|
+
"""
|
|
933
|
+
from .attachment import Attachment
|
|
934
|
+
|
|
935
|
+
return Attachment.create_attachment(self.api,
|
|
936
|
+
name=name,
|
|
937
|
+
loc_x=loc_x,
|
|
938
|
+
loc_y=loc_y,
|
|
939
|
+
resource=self,
|
|
940
|
+
file=file,
|
|
941
|
+
feature=feature,
|
|
942
|
+
display_name=display_name,
|
|
943
|
+
description=description)
|
geobox/workflow.py
CHANGED
|
@@ -51,9 +51,9 @@ class Workflow(Base):
|
|
|
51
51
|
>>> from geobox import GeoboxClient
|
|
52
52
|
>>> from geobox.workflow import Workflow
|
|
53
53
|
>>> client = GeoboxClient()
|
|
54
|
-
>>> workflows = Workflow.
|
|
54
|
+
>>> workflows = Workflow.get_workflows(client, q="name LIKE '%My workflow%'")
|
|
55
55
|
or
|
|
56
|
-
>>> workflows = client.
|
|
56
|
+
>>> workflows = client.get_workflows(q="name LIKE '%My workflow%'")
|
|
57
57
|
"""
|
|
58
58
|
params = {
|
|
59
59
|
'f': 'json',
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
geobox/__init__.py,sha256=iRkJAFIjMXiAaLTVXvZcW5HM7ttyipGdxFZ15NCM8qU,1895
|
|
2
|
+
geobox/api.py,sha256=8wO1AvyIWf0n2gi-Jv22IM6gyjtbX4KGBYXJTKTh01A,105230
|
|
3
|
+
geobox/apikey.py,sha256=OXsf1ltXcN1jIQJHECdnIE5R_Qksb897xVJOkORRsxw,7522
|
|
4
|
+
geobox/attachment.py,sha256=Q5LVn2j8gm-CptDVhpqtfzyQTDDd1FjW_9MEJBRQb6M,11865
|
|
5
|
+
geobox/base.py,sha256=OdabLbBflglLkNWM7TGCWtPh73M_-42_Ph963K26JQg,12931
|
|
6
|
+
geobox/basemap.py,sha256=fQhCj6ERYCEaY4RLINrftEt4RDakddKZ-wG9Av4Rv_8,4468
|
|
7
|
+
geobox/dashboard.py,sha256=x99jUGzUJra4cdcffSYC0_FvrihZh6sPI4o79f-Aptc,11694
|
|
8
|
+
geobox/enums.py,sha256=Ur8zbUjfx09oxXb-uzwFfDT_Nt8I4AP5pFQKJ9bxVxI,6204
|
|
9
|
+
geobox/exception.py,sha256=jvpnv0M2Ck1FpxHTL_aKYWxGvLnCQ3d9vOrMIktjw1U,1507
|
|
10
|
+
geobox/feature.py,sha256=3Kbc1LjIkBt1YqRAry84BrR7qxx9BexvBB3YQ8D9mGk,18504
|
|
11
|
+
geobox/field.py,sha256=p9eitUpnsiGj6GUhjSomk6HWlsNJSbE-Oh_4VcjaqVo,10562
|
|
12
|
+
geobox/file.py,sha256=cMm-SwTzRKALiIj-gkY4UJzUsOuN5SGz50eU1ylNAxk,20079
|
|
13
|
+
geobox/layout.py,sha256=TdE5FJ7fzbhkexojY8h-r68hXb5UYM6MIfNkxfs_RKA,11285
|
|
14
|
+
geobox/log.py,sha256=Xuq4oKPwaypZ4nYEOIXu13dH4AkQcf0pkTw85gDQqS4,4063
|
|
15
|
+
geobox/map.py,sha256=JfGYGo1P9jcbYLr3RkwrvhTTnb-xmH_EsuqO0M_yT5c,36118
|
|
16
|
+
geobox/model3d.py,sha256=GUpZdRcy6Fs83PdqdfX70F_uxIAqkyTbsMWYSI7rV5k,12011
|
|
17
|
+
geobox/mosaic.py,sha256=6wSK9xkjtBUEtIsZANWVYwsJbDx112mO1SQOXcPTVo8,23780
|
|
18
|
+
geobox/plan.py,sha256=jUzl6CQBY6IsdieEppJOmE0sSjwvu6eHO89pC_JFs6I,12066
|
|
19
|
+
geobox/query.py,sha256=FqeiZf2E4tJ2FG-mIfRKov6H1QWUrMSErVpNWcb3Wx0,24038
|
|
20
|
+
geobox/raster.py,sha256=gBWZUm88uJwjgSlp7auS0nEB9KjkTv1F9hvdPaJqCic,30084
|
|
21
|
+
geobox/route.py,sha256=cKZTTHBHM8woWbhHIpCvrRX_doJcTkGktouee0z7oG0,2723
|
|
22
|
+
geobox/scene.py,sha256=GEzvWB-l-xO-8IodwFAPt4T7lZxuzEKJ1H0cqfx78W4,11301
|
|
23
|
+
geobox/settings.py,sha256=rGRdM18Vo7xnjfZXPLRMbKeoVC_lZmzkNRPS0SQv05o,5660
|
|
24
|
+
geobox/task.py,sha256=eqT73YC2JV9LOnQdsW5BkGsZvOl4pKYPlAtz1MxoT1c,13721
|
|
25
|
+
geobox/tile3d.py,sha256=BCchPCRYdvJoufYZa-I-uwVj6XREaQaYBWAqoizDUDs,11019
|
|
26
|
+
geobox/tileset.py,sha256=bQOckE04F31vb-NYmNsQzXndZSTDZyskWspRikjZuBs,24241
|
|
27
|
+
geobox/usage.py,sha256=_54xL-n-2Bg9wGpoOBKnh85WqdpMWEtqxRJVaFlVWe0,7908
|
|
28
|
+
geobox/user.py,sha256=YY72uRvjKUUWUZbxhrft37FVBlqDeosPMf3EpMVBhc0,15069
|
|
29
|
+
geobox/utils.py,sha256=qLtchKIdw-az3KCiiFv0-Cpmx9RfBxORjlATvVyDIaQ,1314
|
|
30
|
+
geobox/vectorlayer.py,sha256=eB1zadgS4xqxV1NEUwaXsh5PIwAX054tYBqdu8ZO6hs,56452
|
|
31
|
+
geobox/version.py,sha256=0GLPhxCeEb2bAkdpPJWtXPXc1KP6kQ_TOMwLAL0ldo0,9374
|
|
32
|
+
geobox/view.py,sha256=t-MlTNDL1T53Mybny5UOMTjVQwDdaDovLJfyl3Qgx1I,40919
|
|
33
|
+
geobox/workflow.py,sha256=_WEIy1zLpBFx5yeuZ4ClnwPdU90jQbdy5bWYYIRa4JY,11549
|
|
34
|
+
geobox-1.4.1.dist-info/licenses/LICENSE,sha256=AvFB7W94sJYKLDhBxLRshL3upexCOG8HQY_1JibB96w,1063
|
|
35
|
+
geobox-1.4.1.dist-info/METADATA,sha256=KF1UGO6DhvFbUGt4WcubAl9QH7VAcGz1K0OMytVgaC0,2658
|
|
36
|
+
geobox-1.4.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
37
|
+
geobox-1.4.1.dist-info/top_level.txt,sha256=ppXH8Bu2mlB-pLQ6lsoWEm2Gr6wZx1uzkhetsYA5ins,7
|
|
38
|
+
geobox-1.4.1.dist-info/RECORD,,
|
geobox-1.3.4.dist-info/RECORD
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
geobox/__init__.py,sha256=iRkJAFIjMXiAaLTVXvZcW5HM7ttyipGdxFZ15NCM8qU,1895
|
|
2
|
-
geobox/api.py,sha256=spbIWSeYCml_rmiisDLQjFcvm6I_UJGobUJm9H-Z9sQ,100719
|
|
3
|
-
geobox/apikey.py,sha256=FBio1PtGovAUaTE0HW9IJ55UuFdR_1ICk_FQhHu5dAE,7427
|
|
4
|
-
geobox/attachment.py,sha256=qplcYfHkoV9aHaXQ7xFnkrsYxwmUs0PNPbjoSerET34,11582
|
|
5
|
-
geobox/base.py,sha256=OdabLbBflglLkNWM7TGCWtPh73M_-42_Ph963K26JQg,12931
|
|
6
|
-
geobox/basemap.py,sha256=7Jo2MeEN8U8Av54kPPaFzQFjajcNYgMRMOTZXPUcXyk,4529
|
|
7
|
-
geobox/dashboard.py,sha256=x99jUGzUJra4cdcffSYC0_FvrihZh6sPI4o79f-Aptc,11694
|
|
8
|
-
geobox/enums.py,sha256=mGF6eXQlNHcUXV0AVMolI200a__g-S9wMjQ1p4ka28g,6244
|
|
9
|
-
geobox/exception.py,sha256=jvpnv0M2Ck1FpxHTL_aKYWxGvLnCQ3d9vOrMIktjw1U,1507
|
|
10
|
-
geobox/feature.py,sha256=3Kbc1LjIkBt1YqRAry84BrR7qxx9BexvBB3YQ8D9mGk,18504
|
|
11
|
-
geobox/field.py,sha256=p9eitUpnsiGj6GUhjSomk6HWlsNJSbE-Oh_4VcjaqVo,10562
|
|
12
|
-
geobox/file.py,sha256=Ula8r8pZaCmifsnUHDbaJujw53SLxUiCiBzVS358o88,19967
|
|
13
|
-
geobox/log.py,sha256=ZTmVErhyAszf7M5YFxT5mqXNNDGPnRwXPeGLDS1G6PE,3582
|
|
14
|
-
geobox/map.py,sha256=6pyD4rpw-Z9DIuvVg66UCBsPk30eCt0b1cIjVBxA_1Q,31348
|
|
15
|
-
geobox/model3d.py,sha256=8P7_Yj1JvumCHWqMxgUmIvQvsKs5tSjI1vf00AItyHQ,11901
|
|
16
|
-
geobox/mosaic.py,sha256=6wSK9xkjtBUEtIsZANWVYwsJbDx112mO1SQOXcPTVo8,23780
|
|
17
|
-
geobox/plan.py,sha256=_ZV9F6loG92uQZGJl_9T08Kg85g3hnODmpccSkTYVdw,11193
|
|
18
|
-
geobox/query.py,sha256=FqeiZf2E4tJ2FG-mIfRKov6H1QWUrMSErVpNWcb3Wx0,24038
|
|
19
|
-
geobox/raster.py,sha256=Gt2bHb8NYm-8JkJlFm4-VccihcfZQzhQA8hPc3xzfvI,29934
|
|
20
|
-
geobox/route.py,sha256=cKZTTHBHM8woWbhHIpCvrRX_doJcTkGktouee0z7oG0,2723
|
|
21
|
-
geobox/scene.py,sha256=GEzvWB-l-xO-8IodwFAPt4T7lZxuzEKJ1H0cqfx78W4,11301
|
|
22
|
-
geobox/settings.py,sha256=rGRdM18Vo7xnjfZXPLRMbKeoVC_lZmzkNRPS0SQv05o,5660
|
|
23
|
-
geobox/task.py,sha256=eLMgbhcYTADooWqKDPh6Jlh5S5oqxMMKoYIm0YPVZvg,13519
|
|
24
|
-
geobox/tile3d.py,sha256=5z6zOihHiwCDizP_9Zwsm87gkTMljm9rQ8hFpAUkA10,10398
|
|
25
|
-
geobox/tileset.py,sha256=bQOckE04F31vb-NYmNsQzXndZSTDZyskWspRikjZuBs,24241
|
|
26
|
-
geobox/usage.py,sha256=_54xL-n-2Bg9wGpoOBKnh85WqdpMWEtqxRJVaFlVWe0,7908
|
|
27
|
-
geobox/user.py,sha256=YY72uRvjKUUWUZbxhrft37FVBlqDeosPMf3EpMVBhc0,15069
|
|
28
|
-
geobox/utils.py,sha256=qLtchKIdw-az3KCiiFv0-Cpmx9RfBxORjlATvVyDIaQ,1314
|
|
29
|
-
geobox/vectorlayer.py,sha256=5IglRp7uoMm3yggYpHurDRAGQo9x7KdjJGicSLpxrSs,53035
|
|
30
|
-
geobox/version.py,sha256=0GLPhxCeEb2bAkdpPJWtXPXc1KP6kQ_TOMwLAL0ldo0,9374
|
|
31
|
-
geobox/view.py,sha256=ZNJNBQclM6fc0cxXmU_L_XEBwd4lbsEncs6ynxWU9lc,37531
|
|
32
|
-
geobox/workflow.py,sha256=7Ne_42-nG88_Po-OAK0ChWkfrknxJiPW6JFiElTwh3Q,11547
|
|
33
|
-
geobox-1.3.4.dist-info/licenses/LICENSE,sha256=AvFB7W94sJYKLDhBxLRshL3upexCOG8HQY_1JibB96w,1063
|
|
34
|
-
geobox-1.3.4.dist-info/METADATA,sha256=r4Bk6des4BDQI3KU3Kmt1rFhXQGSkYwiOVCgGRMvPPI,2658
|
|
35
|
-
geobox-1.3.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
36
|
-
geobox-1.3.4.dist-info/top_level.txt,sha256=ppXH8Bu2mlB-pLQ6lsoWEm2Gr6wZx1uzkhetsYA5ins,7
|
|
37
|
-
geobox-1.3.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|