OpenGeodeWeb-Back 7.2.0rc4__py3-none-any.whl → 7.3.0rc2__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.
@@ -0,0 +1,18 @@
1
+ # Standard library imports
2
+ from __future__ import annotations
3
+
4
+ from typing import TYPE_CHECKING, override
5
+
6
+ # Third party imports
7
+ # Local application imports
8
+ from .geode_object import GeodeObject
9
+
10
+ if TYPE_CHECKING:
11
+ from opengeodeweb_microservice.database.data_types import ViewerObjectType
12
+
13
+
14
+ class GeodeImage(GeodeObject):
15
+ @override
16
+ @classmethod
17
+ def viewer_object_type(cls) -> ViewerObjectType:
18
+ return "image"
@@ -10,18 +10,18 @@ import opengeode as og
10
10
  import opengeode_inspector as og_inspector
11
11
 
12
12
  # Local application imports
13
- from .geode_mesh import GeodeMesh
13
+ from .geode_image import GeodeImage
14
14
 
15
15
  if TYPE_CHECKING:
16
16
  from collections.abc import Sequence
17
17
 
18
18
  from opengeodeweb_microservice.database.data_types import (
19
- GeodeMeshType,
19
+ GeodeImageType,
20
20
  ViewerElementsType,
21
21
  )
22
22
 
23
23
 
24
- class GeodeRasterImage2D(GeodeMesh):
24
+ class GeodeRasterImage2D(GeodeImage):
25
25
  raster_image: og.RasterImage2D
26
26
 
27
27
  def __init__(self, raster_image: og.RasterImage2D) -> None:
@@ -30,7 +30,7 @@ class GeodeRasterImage2D(GeodeMesh):
30
30
 
31
31
  @override
32
32
  @classmethod
33
- def geode_object_type(cls) -> GeodeMeshType:
33
+ def geode_object_type(cls) -> GeodeImageType:
34
34
  return "RasterImage2D"
35
35
 
36
36
  @override
@@ -112,10 +112,6 @@ class GeodeRasterImage2D(GeodeMesh):
112
112
  def validate(self) -> og_inspector.ObjectValidity:
113
113
  return og_inspector.ObjectValidity()
114
114
 
115
- @override
116
- def vertex_attribute_manager(self) -> og.AttributeManager:
117
- return og.AttributeManager()
118
-
119
115
  @override
120
116
  @classmethod
121
117
  def loadable_family(cls) -> str:
@@ -10,18 +10,18 @@ import opengeode as og
10
10
  import opengeode_inspector as og_inspector
11
11
 
12
12
  # Local application imports
13
- from .geode_mesh import GeodeMesh
13
+ from .geode_image import GeodeImage
14
14
 
15
15
  if TYPE_CHECKING:
16
16
  from collections.abc import Sequence
17
17
 
18
18
  from opengeodeweb_microservice.database.data_types import (
19
- GeodeMeshType,
19
+ GeodeImageType,
20
20
  ViewerElementsType,
21
21
  )
22
22
 
23
23
 
24
- class GeodeRasterImage3D(GeodeMesh):
24
+ class GeodeRasterImage3D(GeodeImage):
25
25
  raster_image: og.RasterImage3D
26
26
 
27
27
  def __init__(self, raster_image: og.RasterImage3D) -> None:
@@ -30,7 +30,7 @@ class GeodeRasterImage3D(GeodeMesh):
30
30
 
31
31
  @override
32
32
  @classmethod
33
- def geode_object_type(cls) -> GeodeMeshType:
33
+ def geode_object_type(cls) -> GeodeImageType:
34
34
  return "RasterImage3D"
35
35
 
36
36
  @override
@@ -112,10 +112,6 @@ class GeodeRasterImage3D(GeodeMesh):
112
112
  def validate(self) -> og_inspector.ObjectValidity:
113
113
  return og_inspector.ObjectValidity()
114
114
 
115
- @override
116
- def vertex_attribute_manager(self) -> og.AttributeManager:
117
- return og.AttributeManager()
118
-
119
115
  @override
120
116
  @classmethod
121
117
  def loadable_family(cls) -> str:
@@ -113,6 +113,13 @@
113
113
  "minLength": 36,
114
114
  "maxLength": 36
115
115
  },
116
+ "GeodeImageType": {
117
+ "type": "string",
118
+ "enum": [
119
+ "RasterImage2D",
120
+ "RasterImage3D"
121
+ ]
122
+ },
116
123
  "GeodeMeshType": {
117
124
  "type": "string",
118
125
  "enum": [
@@ -122,14 +129,12 @@
122
129
  "PointSet3D",
123
130
  "EdgedCurve2D",
124
131
  "EdgedCurve3D",
125
- "RasterImage2D",
126
132
  "PolygonalSurface2D",
127
133
  "PolygonalSurface3D",
128
134
  "TriangulatedSurface2D",
129
135
  "TriangulatedSurface3D",
130
136
  "RegularGrid2D",
131
137
  "LightRegularGrid2D",
132
- "RasterImage3D",
133
138
  "PolyhedralSolid3D",
134
139
  "TetrahedralSolid3D",
135
140
  "HybridSolid3D",
@@ -152,20 +157,20 @@
152
157
  "GeodeObjectType": {
153
158
  "type": "string",
154
159
  "enum": [
160
+ "RasterImage2D",
161
+ "RasterImage3D",
155
162
  "VertexSet",
156
163
  "Graph",
157
164
  "PointSet2D",
158
165
  "PointSet3D",
159
166
  "EdgedCurve2D",
160
167
  "EdgedCurve3D",
161
- "RasterImage2D",
162
168
  "PolygonalSurface2D",
163
169
  "PolygonalSurface3D",
164
170
  "TriangulatedSurface2D",
165
171
  "TriangulatedSurface3D",
166
172
  "RegularGrid2D",
167
173
  "LightRegularGrid2D",
168
- "RasterImage3D",
169
174
  "PolyhedralSolid3D",
170
175
  "TetrahedralSolid3D",
171
176
  "HybridSolid3D",
@@ -190,7 +195,6 @@
190
195
  "GeodePolygonMeshType": {
191
196
  "type": "string",
192
197
  "enum": [
193
- "RasterImage2D",
194
198
  "PolygonalSurface2D",
195
199
  "PolygonalSurface3D",
196
200
  "TriangulatedSurface2D",
@@ -202,7 +206,6 @@
202
206
  "GeodePolyhedronMeshType": {
203
207
  "type": "string",
204
208
  "enum": [
205
- "RasterImage3D",
206
209
  "PolyhedralSolid3D",
207
210
  "TetrahedralSolid3D",
208
211
  "HybridSolid3D",
@@ -298,6 +301,7 @@
298
301
  "ViewerObjectType": {
299
302
  "type": "string",
300
303
  "enum": [
304
+ "image",
301
305
  "mesh",
302
306
  "model"
303
307
  ]
@@ -114,8 +114,8 @@ def check_save_viewable_file(
114
114
  _check(type(item["viewable_file"]) is str, "viewable_file is not a string")
115
115
  _check(type(item.get("id")) is str, "id is not a string")
116
116
  _check(
117
- item["viewer_object_type"] in ["model", "mesh"],
118
- "viewer_object_type is not model or mesh",
117
+ item["viewer_object_type"] in ["image", "mesh", "model"],
118
+ "viewer_object_type is not image, mesh or model",
119
119
  )
120
120
  _check(type(item["binary_light_viewable"]) is str, "binary_light_viewable is not a string")
121
121
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: OpenGeodeWeb-Back
3
- Version: 7.2.0rc4
3
+ Version: 7.3.0rc2
4
4
  Summary: OpenGeodeWeb-Back is an open source framework that proposes handy python functions and wrappers for the OpenGeode ecosystem
5
5
  Author-email: Geode-solutions <team-web@geode-solutions.com>
6
6
  Project-URL: Homepage, https://github.com/Geode-solutions/OpenGeodeWeb-Back
@@ -33,7 +33,7 @@ Requires-Dist: opengeode-io==8.2.0
33
33
  Requires-Dist: pillow==13.0.0
34
34
  Requires-Dist: types-defusedxml==0.7.0.20260504
35
35
  Requires-Dist: werkzeug==3.1.8
36
- Requires-Dist: opengeodeweb-microservice==1.*,>=1.4.0
36
+ Requires-Dist: opengeodeweb-microservice==1.*,>=1.5.0rc1
37
37
  Dynamic: license-file
38
38
 
39
39
  <h1 align="center">OpenGeodeWeb-Back<sup><i>by Geode-solutions</i></sup></h1>
@@ -3,9 +3,9 @@ opengeodeweb_back/app.py,sha256=ASp74Jhekinwq2OPZVmFzg6_CG-IO-FNcvnBk9L5q8w,9857
3
3
  opengeodeweb_back/app_config.py,sha256=G_oW0bnQNRmPEHG_IWYHy7cJWGly4EBuQutCKYM_wKs,1064
4
4
  opengeodeweb_back/geode_functions.py,sha256=YAi9ggvwYz0gyGdw76r52W_rNNJ7nwsObVftyo880YE,4429
5
5
  opengeodeweb_back/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
- opengeodeweb_back/schema_definitions.json,sha256=qrlTeX4IUkCE5fR_onzrXnBKz61YR-1wlYlc8Haktc8,5747
6
+ opengeodeweb_back/schema_definitions.json,sha256=UTsHe6EpabIa6UuxNup_DwnfGPuZKyBCcGYIJiugoKI,5784
7
7
  opengeodeweb_back/schema_types.py,sha256=VcDIF2gpeWxTlarbyReCIBU97brdDLBmsNOF8uVdugs,1557
8
- opengeodeweb_back/test_utils.py,sha256=04Xcnlrgj1NS2UQH7ae7qDK_J85J3akZKvBNCI8LSVc,4407
8
+ opengeodeweb_back/test_utils.py,sha256=y5lnJRlmR9_RYvO54MOfaSZl5DWrtGYil0FKuzxGj8A,4423
9
9
  opengeodeweb_back/typed_route.py,sha256=XNNM9NUTdkydQce56BMGO_yu297g0Eq4BgAgtqzpvGA,3769
10
10
  opengeodeweb_back/utils_functions.py,sha256=IYWd1-94ygMe8227IQhSV6fonOA8h-dR08Ae7_yXy5Y,23585
11
11
  opengeodeweb_back/basemap/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -27,6 +27,7 @@ opengeodeweb_back/geode_objects/geode_grid2d.py,sha256=x3H-FQLJAL5ac8K31K1EkysCZ
27
27
  opengeodeweb_back/geode_objects/geode_grid3d.py,sha256=_YfriiC-n_jy2YgLpoveIcqfWBo2gJ3bMWjhicQ8t4I,1066
28
28
  opengeodeweb_back/geode_objects/geode_horizon_stack3d.py,sha256=ReoqmKMAAK8M4-PdCH3cdmF-KDmIjvSNk37o9d51RGU,3815
29
29
  opengeodeweb_back/geode_objects/geode_hybrid_solid3d.py,sha256=3WBzZxbshNe5hs7R_p1wwLIMC29OO0k16rTRJv_JRaM,2634
30
+ opengeodeweb_back/geode_objects/geode_image.py,sha256=_emOKM4yvwzA8Ft0_l_4ZigN03yJ7HkX2o5cqkBFogM,433
30
31
  opengeodeweb_back/geode_objects/geode_implicit_cross_section.py,sha256=TwONYELC27as2W6Bp4e7egOQ8AMh0RLw8VkeRT-d8KI,3233
31
32
  opengeodeweb_back/geode_objects/geode_implicit_structural_model.py,sha256=-Kc5XWw0iloLdhqGIorIN8ECys4VQ-vadT4n-Z7TAM8,3366
32
33
  opengeodeweb_back/geode_objects/geode_light_regular_grid2d.py,sha256=DpvRvQv_NobUYOKAmtuBA2ovTcTr5Tby7GuqtPnIOA4,2997
@@ -39,8 +40,8 @@ opengeodeweb_back/geode_objects/geode_point_set3d.py,sha256=T4O7YsSHivpUeepYH__m
39
40
  opengeodeweb_back/geode_objects/geode_polygonal_surface2d.py,sha256=60YVCPwyBGA6wS1_yZXih4mmp708DyZfE-Xuq8-YTE4,2841
40
41
  opengeodeweb_back/geode_objects/geode_polygonal_surface3d.py,sha256=kGBPERmFzWjSYrM707eqxsZiT1byHvj_AFzt__pyuss,2841
41
42
  opengeodeweb_back/geode_objects/geode_polyhedral_solid3d.py,sha256=Al6skCt4Hd3KBTK2kGyNB0c_3fOaXW7QssRvXntggb0,2804
42
- opengeodeweb_back/geode_objects/geode_raster_image2d.py,sha256=NRaxTyj_CdhrfvtCa-DPWrymuECj2ea5kAWLpccVI-A,3290
43
- opengeodeweb_back/geode_objects/geode_raster_image3d.py,sha256=sXUpp_N24yAeHIUTo6klOUkCU0pYNR8i_hNjM9kCFzI,3290
43
+ opengeodeweb_back/geode_objects/geode_raster_image2d.py,sha256=i3se9QslwQY9Bk2Z_BM6l7982DN_eKv9q5EUZC23-WU,3180
44
+ opengeodeweb_back/geode_objects/geode_raster_image3d.py,sha256=hlA9KLf57zyaLvh9M5U-aAyxGJD2fSdJaSPhlV2IWlM,3180
44
45
  opengeodeweb_back/geode_objects/geode_regular_grid2d.py,sha256=hhIVF2ZpRlakWs2KpnHPC0Ph5wSTyfqMlej2cx9_Ajo,3075
45
46
  opengeodeweb_back/geode_objects/geode_regular_grid3d.py,sha256=XqAjTNIU-yOjRpBVhwDpAKpYJNBGHNy2xjqmAQ6OzRo,3067
46
47
  opengeodeweb_back/geode_objects/geode_section.py,sha256=e9F96zjMZS0YBf0Dl_RLApVKDsCY21ZnslkPSQC3C2g,7607
@@ -156,9 +157,9 @@ opengeodeweb_back/routes/schemas/vertex_attribute_names.json,sha256=vBhRMTMEFlig
156
157
  opengeodeweb_back/routes/schemas/vertex_attribute_names.py,sha256=ALYxIKjTnMg2sw7TNdTCYc2lTmCMPO-s2WWJ4ENd0IQ,963
157
158
  opengeodeweb_back/routes/schemas/vertex_attribute_range.json,sha256=AfSQTSH7HsrqW-tBsJfNzuPns42OAvShMagvdXD6N5g,766
158
159
  opengeodeweb_back/routes/schemas/vertex_attribute_range.py,sha256=o62JCrRCdGH5_EC7_NuZffK0ef3nXtWhc4UqdzFGEBQ,1020
159
- opengeodeweb_back-7.2.0rc4.dist-info/licenses/LICENSE,sha256=LoTB-aqQvzTGxoTRXNnhNV0LKiqdk2bQv6MB34l8zkI,1079
160
- opengeodeweb_back-7.2.0rc4.dist-info/METADATA,sha256=XQWoIa5_x5bu9rrQWf-fqyh4kQbpx0sBdsg83AJo-yY,2905
161
- opengeodeweb_back-7.2.0rc4.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
162
- opengeodeweb_back-7.2.0rc4.dist-info/entry_points.txt,sha256=zQdVlPLm17zhfFvqf1WdI7rFe-f-ruMt3UBBkCd3jcs,82
163
- opengeodeweb_back-7.2.0rc4.dist-info/top_level.txt,sha256=tN1FZeLIVBrdja2-pbmhg5-tK-JILmmT9OeIBnhlUrQ,18
164
- opengeodeweb_back-7.2.0rc4.dist-info/RECORD,,
160
+ opengeodeweb_back-7.3.0rc2.dist-info/licenses/LICENSE,sha256=LoTB-aqQvzTGxoTRXNnhNV0LKiqdk2bQv6MB34l8zkI,1079
161
+ opengeodeweb_back-7.3.0rc2.dist-info/METADATA,sha256=i8tDe6sXufCTcI5ViWKBCGdm0NK5LhUGE_x-MV6VQU8,2908
162
+ opengeodeweb_back-7.3.0rc2.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
163
+ opengeodeweb_back-7.3.0rc2.dist-info/entry_points.txt,sha256=zQdVlPLm17zhfFvqf1WdI7rFe-f-ruMt3UBBkCd3jcs,82
164
+ opengeodeweb_back-7.3.0rc2.dist-info/top_level.txt,sha256=tN1FZeLIVBrdja2-pbmhg5-tK-JILmmT9OeIBnhlUrQ,18
165
+ opengeodeweb_back-7.3.0rc2.dist-info/RECORD,,