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/enums.py CHANGED
@@ -1,348 +1,402 @@
1
- from enum import Enum
2
-
3
- # File Enums
4
- class InputGeomType(Enum):
5
- POINT = 'POINT'
6
- LINE = 'LINE'
7
- POLYGON = 'POLYGON'
8
- MULTIPOINT = 'MULTIPOINT'
9
- MULTILINE = 'MULTILINE'
10
- MULTIPOLYGON = 'MULTIPOLYGON'
11
- POINT_Z = 'POINTZ'
12
- LINE_Z = 'LINEZ'
13
- POLYGON_Z = 'POLYGONZ'
14
- MULTIPOINT_Z = 'MULTIPOINTZ'
15
- MULTILINE_Z = 'MULTILINEZ'
16
- MULTIPOLYGON_Z = 'MULTIPOLYGONZ'
17
-
18
- class PublishFileType(Enum):
19
- VECTOR = 'vector'
20
- RASTER = 'raster'
21
- MODEL3D = 'model3d'
22
- Tiles3D = 'tiles3d'
23
-
24
- class FileType(Enum):
25
- Compressed = 'Compressed'
26
- Complex = 'Complex'
27
- Image = 'Image'
28
- Video = 'Video'
29
- Document = 'Document'
30
- GPKG = 'GPKG'
31
- DXF = 'DXF'
32
- GPX = 'GPX'
33
- CSV = 'CSV'
34
- Shapefile = 'Shapefile'
35
- KML = 'KML'
36
- GLB = 'GLB'
37
- FileGDB = 'FileGDB'
38
- GeoTIFF = 'GeoTIFF'
39
- GeoJSON = 'GeoJSON'
40
- ThreedTiles = 'ThreedTiles'
41
-
42
- class FileFormat(Enum):
43
- # Spatial Data Formats
44
- Shapefile = '.shp'
45
- FileGDB = '.gdb'
46
- CSV = '.csv'
47
- KML = '.kml'
48
- DXF = '.dxf'
49
- GPX = '.gpx'
50
- GPKG = '.gpkg'
51
- GeoJSON = '.geojson'
52
- # GeoTIFF = '.tiff'
53
-
54
- # Image Formats
55
- JPG = '.jpg'
56
- JPEG = '.jpeg'
57
- SVG = '.svg'
58
- PNG = '.png'
59
- BMP = '.bmp'
60
- TIF = '.tif'
61
- GIF = '.gif'
62
-
63
- # Video Formats
64
- MP4 = '.mp4'
65
- AVI = '.avi'
66
- OGG = '.ogg'
67
- WEBM = '.webm'
68
- MPEG = '.mpeg'
69
- WMV = '.wmv'
70
-
71
- # Document Formats
72
- TXT = '.txt'
73
- DOC = '.doc'
74
- DOCX = '.docx'
75
- XLS = '.xls'
76
- XLSX = '.xlsx'
77
- PPT = '.ppt'
78
- PPTX = '.pptx'
79
- PDF = '.pdf'
80
-
81
- # Compressed Formats
82
- ZIP = '.zip'
83
- SEVEN_Z = '.7z' # 7z
84
- RAR = '.rar'
85
- ISO = '.iso'
86
- GZ = '.gz'
87
- BZ2 = '.bz2'
88
- TAR = '.tar'
89
- CAB = '.cab'
90
- IMG = '.img'
91
-
92
-
93
- # Field Enums
94
- class FieldType(Enum):
95
- """
96
- A class representing the data type of a field.
97
- """
98
- Integer = "Integer"
99
- """
100
- An integer field.
101
- """
102
- Float = "Float"
103
- """
104
- A float field.
105
- """
106
- String = "String"
107
- """
108
- A string field.
109
- """
110
- Long = "Long"
111
- """
112
- A Long field.
113
- """
114
- DATE = "Date"
115
- """
116
- A Date field.
117
- """
118
- TIME = "Time"
119
- """
120
- A Time Field.
121
- """
122
- DATETIME = "DateTime"
123
- """
124
- A DateTime Field.
125
- """
126
-
127
-
128
- # Layer Enums
129
- class LayerType(Enum):
130
- """
131
- Enumeration of supported vector layer geometry types.
132
-
133
- This enum defines the different types of geometric shapes that can be stored in a vector layer.
134
- Each type represents a specific geometric structure supported by the Geobox API.
135
- """
136
- Point = "Point"
137
- """A single point in 2D space"""
138
-
139
- MultiPoint = "MultiPoint"
140
- """A collection of points"""
141
-
142
- Polygon = "Polygon"
143
- """A closed shape defined by a sequence of points"""
144
-
145
- Polyline = "Polyline"
146
- """A polyline geometry"""
147
-
148
-
149
- # Layer Enums
150
- class FeatureType(Enum):
151
- """
152
- Enumeration of supported feature geometry types.
153
-
154
- This enum defines the different types of geometric shapes that can be stored in a feature.
155
- Each type represents a specific geometric structure supported by the Geobox API.
156
- """
157
- Point = "Point"
158
- """A single point in 2D space"""
159
-
160
- MultiPoint = "MultiPoint"
161
- """A collection of points"""
162
-
163
- LineString = "LineString"
164
- """A sequence of points forming a line"""
165
-
166
- MultiLineString = "MultiLineString"
167
- """A collection of lines"""
168
-
169
- Polygon = "Polygon"
170
- """A closed shape defined by a sequence of points"""
171
-
172
- MultiPolygon = "MultiPolygon"
173
- """A collection of polygons"""
174
-
175
-
176
- # Task Enums
177
- class TaskStatus(Enum):
178
- """
179
- Enumeration of possible task statuses.
180
- """
181
- PENDING = "PENDING"
182
- """
183
- The task is pending.
184
- """
185
- PROGRESS = "PROGRESS"
186
- """
187
- The task is in progress.
188
- """
189
- SUCCESS = "SUCCESS"
190
- """
191
- The task is successful.
192
- """
193
- FAILURE = "FAILURE"
194
- """
195
- The task is failed.
196
- """
197
- ABORTED = "ABORTED"
198
- """
199
- The task is aborted.
200
- """
201
-
202
- class QueryGeometryType(Enum):
203
- """
204
- Enumeration of possible query geometry types.
205
- """
206
- POINT = "Point"
207
- """
208
- A point geometry.
209
- """
210
- MULTIPOINT = "Multipoint"
211
- """
212
- A multipoint geometry.
213
- """
214
- POLYLINE = "Polyline"
215
- """
216
- A polyline geometry.
217
- """
218
- POLYGON = "Polygon"
219
- """
220
- A polygon geometry.
221
- """
222
-
223
- class QueryParamType(Enum):
224
- """
225
- Enumeration of possible query parameter types.
226
- """
227
- LAYER = "Layer"
228
- """
229
- A layer parameter.
230
- """
231
- ATTRIBUTE = "Attribute"
232
- """
233
- A Attribute parameter.
234
- """
235
- FLOAT = "Float"
236
- """
237
- A Float parameter.
238
- """
239
- INTEGER = "Integer"
240
- """
241
- A Integer parameter.
242
- """
243
- TEXT = "Text"
244
- """
245
- A Text parameter.
246
- """
247
- BOOLEAN = "Boolean"
248
- """
249
- A Boolean parameter.
250
- """
251
-
252
-
253
- class UserRole(Enum):
254
- SYSTEM_ADMIN = "System Admin"
255
-
256
- ACCOUNT_ADMIN = "Account Admin"
257
-
258
- PUBLISHER = "Publisher"
259
-
260
- EDITOR = "Editor"
261
-
262
- VIEWER = "Viewer"
263
-
264
-
265
- class UserStatus(Enum):
266
- NEW = "New"
267
-
268
- PENDING = "Pending"
269
-
270
- ACTIVE = "Active"
271
-
272
- DISABLED = "Disabled"
273
-
274
-
275
- class MaxLogPolicy(Enum):
276
- OverwriteFirstLog = "OverwriteFirstLog"
277
-
278
- IgnoreLogging = "IgnoreLogging"
279
-
280
-
281
- class InvalidDataPolicy(Enum):
282
- ReportToAdmin = "ReportToAdmin"
283
-
284
- LogOnly = "LogOnly"
285
-
286
-
287
- class LoginFailurePolicy(Enum):
288
- BlockIPTemporarily = "BlockIPTemporarily"
289
-
290
- DisableAccount = "DisableAccount"
291
-
292
-
293
- class MaxConcurrentSessionPolicy(Enum):
294
- CloseLastSession = "CloseLastSession"
295
-
296
- CloseMostInactiveSession = "CloseMostInactiveSession"
297
-
298
- PreventNewSession = "PreventNewSession"
299
-
300
-
301
- class RoutingGeometryType(Enum):
302
- geojson = "geojson"
303
-
304
- polyline = "polyline"
305
-
306
- polyline6= "polyline6"
307
-
308
-
309
- class RoutingOverviewLevel(Enum):
310
- Full = 'full'
311
-
312
- Simplified = 'simplified'
313
-
314
-
315
- class QueryResultType(Enum):
316
- metadata = "metadata"
317
-
318
- data = "data"
319
-
320
- both = "both"
321
-
322
-
323
- class FileOutputFormat(Enum):
324
- Shapefile = "Shapefile"
325
-
326
- GPKG = "GPKG"
327
-
328
- GeoJSON = "GeoJSON"
329
-
330
- CSV = "CSV"
331
-
332
- KML = "KML"
333
-
334
- DXF = "DXF"
335
-
336
-
337
- class UsageScale(Enum):
338
- Hour = 'hour'
339
-
340
- Day = 'day'
341
-
342
- Month = 'month'
343
-
344
-
345
- class UsageParam(Enum):
346
- Traffict = 'traffic'
347
-
348
- Calls = 'calls'
1
+ from enum import Enum
2
+
3
+ # File Enums
4
+ class InputGeomType(Enum):
5
+ POINT = 'POINT'
6
+ LINE = 'LINE'
7
+ POLYGON = 'POLYGON'
8
+ MULTIPOINT = 'MULTIPOINT'
9
+ MULTILINE = 'MULTILINE'
10
+ MULTIPOLYGON = 'MULTIPOLYGON'
11
+ POINT_Z = 'POINTZ'
12
+ LINE_Z = 'LINEZ'
13
+ POLYGON_Z = 'POLYGONZ'
14
+ MULTIPOINT_Z = 'MULTIPOINTZ'
15
+ MULTILINE_Z = 'MULTILINEZ'
16
+ MULTIPOLYGON_Z = 'MULTIPOLYGONZ'
17
+
18
+ class PublishFileType(Enum):
19
+ VECTOR = 'vector'
20
+ RASTER = 'raster'
21
+ MODEL3D = 'model3d'
22
+ Tiles3D = 'tiles3d'
23
+
24
+ class FileType(Enum):
25
+ Compressed = 'Compressed'
26
+ Complex = 'Complex'
27
+ Image = 'Image'
28
+ Video = 'Video'
29
+ Document = 'Document'
30
+ GPKG = 'GPKG'
31
+ DXF = 'DXF'
32
+ GPX = 'GPX'
33
+ CSV = 'CSV'
34
+ Shapefile = 'Shapefile'
35
+ KML = 'KML'
36
+ GLB = 'GLB'
37
+ FileGDB = 'FileGDB'
38
+ GeoTIFF = 'GeoTIFF'
39
+ GeoJSON = 'GeoJSON'
40
+ ThreedTiles = 'ThreedTiles'
41
+
42
+ class FileFormat(Enum):
43
+ # Spatial Data Formats
44
+ Shapefile = '.shp'
45
+ FileGDB = '.gdb'
46
+ CSV = '.csv'
47
+ KML = '.kml'
48
+ DXF = '.dxf'
49
+ GPX = '.gpx'
50
+ GPKG = '.gpkg'
51
+ GeoJSON = '.geojson'
52
+ # GeoTIFF = '.tiff'
53
+
54
+ # Image Formats
55
+ JPG = '.jpg'
56
+ JPEG = '.jpeg'
57
+ SVG = '.svg'
58
+ PNG = '.png'
59
+ BMP = '.bmp'
60
+ TIF = '.tif'
61
+ GIF = '.gif'
62
+
63
+ # Video Formats
64
+ MP4 = '.mp4'
65
+ AVI = '.avi'
66
+ OGG = '.ogg'
67
+ WEBM = '.webm'
68
+ MPEG = '.mpeg'
69
+ WMV = '.wmv'
70
+
71
+ # Document Formats
72
+ TXT = '.txt'
73
+ DOC = '.doc'
74
+ DOCX = '.docx'
75
+ XLS = '.xls'
76
+ XLSX = '.xlsx'
77
+ PPT = '.ppt'
78
+ PPTX = '.pptx'
79
+ PDF = '.pdf'
80
+
81
+ # Compressed Formats
82
+ ZIP = '.zip'
83
+ SEVEN_Z = '.7z' # 7z
84
+ RAR = '.rar'
85
+ ISO = '.iso'
86
+ GZ = '.gz'
87
+ BZ2 = '.bz2'
88
+ TAR = '.tar'
89
+ CAB = '.cab'
90
+ IMG = '.img'
91
+
92
+
93
+ # Field Enums
94
+ class FieldType(Enum):
95
+ """
96
+ A class representing the data type of a field.
97
+ """
98
+ Integer = "Integer"
99
+ """
100
+ An integer field.
101
+ """
102
+ Float = "Float"
103
+ """
104
+ A float field.
105
+ """
106
+ String = "String"
107
+ """
108
+ A string field.
109
+ """
110
+ Long = "Long"
111
+ """
112
+ A Long field.
113
+ """
114
+ DATE = "Date"
115
+ """
116
+ A Date field.
117
+ """
118
+ TIME = "Time"
119
+ """
120
+ A Time Field.
121
+ """
122
+ DATETIME = "DateTime"
123
+ """
124
+ A DateTime Field.
125
+ """
126
+
127
+
128
+ # Layer Enums
129
+ class LayerType(Enum):
130
+ """
131
+ Enumeration of supported vector layer geometry types.
132
+
133
+ This enum defines the different types of geometric shapes that can be stored in a vector layer.
134
+ Each type represents a specific geometric structure supported by the Geobox API.
135
+ """
136
+ Point = "Point"
137
+ """A single point in 2D space"""
138
+
139
+ MultiPoint = "MultiPoint"
140
+ """A collection of points"""
141
+
142
+ Polygon = "Polygon"
143
+ """A closed shape defined by a sequence of points"""
144
+
145
+ Polyline = "Polyline"
146
+ """A polyline geometry"""
147
+
148
+
149
+ # Layer Enums
150
+ class FeatureType(Enum):
151
+ """
152
+ Enumeration of supported feature geometry types.
153
+
154
+ This enum defines the different types of geometric shapes that can be stored in a feature.
155
+ Each type represents a specific geometric structure supported by the Geobox API.
156
+ """
157
+ Point = "Point"
158
+ """A single point in 2D space"""
159
+
160
+ MultiPoint = "MultiPoint"
161
+ """A collection of points"""
162
+
163
+ LineString = "LineString"
164
+ """A sequence of points forming a line"""
165
+
166
+ MultiLineString = "MultiLineString"
167
+ """A collection of lines"""
168
+
169
+ Polygon = "Polygon"
170
+ """A closed shape defined by a sequence of points"""
171
+
172
+ MultiPolygon = "MultiPolygon"
173
+ """A collection of polygons"""
174
+
175
+
176
+ # Task Enums
177
+ class TaskStatus(Enum):
178
+ """
179
+ Enumeration of possible task statuses.
180
+ """
181
+ PENDING = "PENDING"
182
+ """
183
+ The task is pending.
184
+ """
185
+ PROGRESS = "PROGRESS"
186
+ """
187
+ The task is in progress.
188
+ """
189
+ SUCCESS = "SUCCESS"
190
+ """
191
+ The task is successful.
192
+ """
193
+ FAILURE = "FAILURE"
194
+ """
195
+ The task is failed.
196
+ """
197
+ ABORTED = "ABORTED"
198
+ """
199
+ The task is aborted.
200
+ """
201
+
202
+ class QueryGeometryType(Enum):
203
+ """
204
+ Enumeration of possible query geometry types.
205
+ """
206
+ POINT = "Point"
207
+ """
208
+ A point geometry.
209
+ """
210
+ MULTIPOINT = "Multipoint"
211
+ """
212
+ A multipoint geometry.
213
+ """
214
+ POLYLINE = "Polyline"
215
+ """
216
+ A polyline geometry.
217
+ """
218
+ POLYGON = "Polygon"
219
+ """
220
+ A polygon geometry.
221
+ """
222
+
223
+ class QueryParamType(Enum):
224
+ """
225
+ Enumeration of possible query parameter types.
226
+ """
227
+ LAYER = "Layer"
228
+ """
229
+ A layer parameter.
230
+ """
231
+ ATTRIBUTE = "Attribute"
232
+ """
233
+ A Attribute parameter.
234
+ """
235
+ FLOAT = "Float"
236
+ """
237
+ A Float parameter.
238
+ """
239
+ INTEGER = "Integer"
240
+ """
241
+ A Integer parameter.
242
+ """
243
+ TEXT = "Text"
244
+ """
245
+ A Text parameter.
246
+ """
247
+ BOOLEAN = "Boolean"
248
+ """
249
+ A Boolean parameter.
250
+ """
251
+
252
+
253
+ class UserRole(Enum):
254
+ SYSTEM_ADMIN = "System Admin"
255
+
256
+ ACCOUNT_ADMIN = "Account Admin"
257
+
258
+ PUBLISHER = "Publisher"
259
+
260
+ EDITOR = "Editor"
261
+
262
+ VIEWER = "Viewer"
263
+
264
+
265
+ class UserStatus(Enum):
266
+ NEW = "New"
267
+
268
+ PENDING = "Pending"
269
+
270
+ ACTIVE = "Active"
271
+
272
+ DISABLED = "Disabled"
273
+
274
+
275
+ class MaxLogPolicy(Enum):
276
+ OverwriteFirstLog = "OverwriteFirstLog"
277
+
278
+ IgnoreLogging = "IgnoreLogging"
279
+
280
+
281
+ class InvalidDataPolicy(Enum):
282
+ ReportToAdmin = "ReportToAdmin"
283
+
284
+ LogOnly = "LogOnly"
285
+
286
+
287
+ class LoginFailurePolicy(Enum):
288
+ BlockIPTemporarily = "BlockIPTemporarily"
289
+
290
+ DisableAccount = "DisableAccount"
291
+
292
+
293
+ class MaxConcurrentSessionPolicy(Enum):
294
+ CloseLastSession = "CloseLastSession"
295
+
296
+ CloseMostInactiveSession = "CloseMostInactiveSession"
297
+
298
+ PreventNewSession = "PreventNewSession"
299
+
300
+
301
+ class RoutingGeometryType(Enum):
302
+ geojson = "geojson"
303
+
304
+ polyline = "polyline"
305
+
306
+ polyline6= "polyline6"
307
+
308
+
309
+ class RoutingOverviewLevel(Enum):
310
+ Full = 'full'
311
+
312
+ Simplified = 'simplified'
313
+
314
+
315
+ class QueryResultType(Enum):
316
+ metadata = "metadata"
317
+
318
+ data = "data"
319
+
320
+ both = "both"
321
+
322
+
323
+ class FileOutputFormat(Enum):
324
+ Shapefile = "Shapefile"
325
+
326
+ GPKG = "GPKG"
327
+
328
+ GeoJSON = "GeoJSON"
329
+
330
+ CSV = "CSV"
331
+
332
+ KML = "KML"
333
+
334
+ DXF = "DXF"
335
+
336
+
337
+ class UsageScale(Enum):
338
+ Hour = 'hour'
339
+
340
+ Day = 'day'
341
+
342
+ Month = 'month'
343
+
344
+
345
+ class UsageParam(Enum):
346
+ Traffict = 'traffic'
347
+
348
+ Calls = 'calls'
349
+
350
+
351
+ class AnalysisDataType(Enum):
352
+ uint8 = 'uint8'
353
+ uint16 = 'uint16'
354
+ int16 = 'int16'
355
+ uint32 = 'uint32'
356
+ int32 = 'int32'
357
+ float32 = 'float32'
358
+ float64 = 'float64'
359
+
360
+
361
+ class PolygonizeConnectivity(Enum):
362
+ connected_8 = 8
363
+ connected_4 = 4
364
+
365
+
366
+ class AnalysisResampleMethod(Enum):
367
+ near = 'near'
368
+ bilinear = 'bilinear'
369
+ cubic = 'cubic'
370
+ cubicspline = 'cubicspline'
371
+ lanczos = 'lanczos'
372
+ average = 'average'
373
+ mode = 'mode'
374
+ max = 'max'
375
+ min = 'min'
376
+ med = 'med'
377
+ q1 = 'q1'
378
+ q3 = 'q3'
379
+ rms = 'rms'
380
+ sum = 'sum'
381
+
382
+
383
+ class SlopeUnit(Enum):
384
+ degree = 'degree'
385
+ percent = 'percent'
386
+
387
+
388
+ class AnalysisAlgorithm(Enum):
389
+ Horn = 'Horn'
390
+ ZevenbergenThorne = 'ZevenbergenThorne'
391
+
392
+
393
+ class RangeBound(Enum):
394
+ left = 'left'
395
+ right = 'right'
396
+ both = 'both'
397
+ neither = 'neither'
398
+
399
+
400
+ class DistanceUnit(Enum):
401
+ GEO = 'GEO'
402
+ PIXEL = 'PIXEL'