OpenGeodeWeb-Back 5.4.0rc2__py3-none-any.whl → 5.4.0rc3__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.
- {OpenGeodeWeb_Back-5.4.0rc2.dist-info → OpenGeodeWeb_Back-5.4.0rc3.dist-info}/METADATA +1 -1
- {OpenGeodeWeb_Back-5.4.0rc2.dist-info → OpenGeodeWeb_Back-5.4.0rc3.dist-info}/RECORD +8 -8
- opengeodeweb_back/geode_functions.py +2 -2
- opengeodeweb_back/geode_objects.py +25 -25
- opengeodeweb_back/routes/blueprint_routes.py +4 -0
- {OpenGeodeWeb_Back-5.4.0rc2.dist-info → OpenGeodeWeb_Back-5.4.0rc3.dist-info}/LICENSE +0 -0
- {OpenGeodeWeb_Back-5.4.0rc2.dist-info → OpenGeodeWeb_Back-5.4.0rc3.dist-info}/WHEEL +0 -0
- {OpenGeodeWeb_Back-5.4.0rc2.dist-info → OpenGeodeWeb_Back-5.4.0rc3.dist-info}/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: OpenGeodeWeb-Back
|
3
|
-
Version: 5.4.
|
3
|
+
Version: 5.4.0rc3
|
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
|
@@ -1,10 +1,10 @@
|
|
1
1
|
opengeodeweb_back/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
2
|
opengeodeweb_back/app_config.py,sha256=bZIs0giTA0cYJJYbt25ZHYlHdsOy82h5xSxdOitgR4A,752
|
3
|
-
opengeodeweb_back/geode_functions.py,sha256=
|
4
|
-
opengeodeweb_back/geode_objects.py,sha256=
|
3
|
+
opengeodeweb_back/geode_functions.py,sha256=e13Ws4JDzPBxOUQfpOxjmxd7ZDj43-AsI8z8JsKDtG4,8824
|
4
|
+
opengeodeweb_back/geode_objects.py,sha256=hREwA-Qyi6YIVWhCu3HBnWMfLohPr9TpylVtZbJ2qyc,23658
|
5
5
|
opengeodeweb_back/test_utils.py,sha256=gvRPOzin4nI5TKuB-AFgIxcekTOYM4h7yUYk0tYIZFI,820
|
6
6
|
opengeodeweb_back/utils_functions.py,sha256=18kp8M3bnrlu692qj-ymJJPA1hTpPjx_xl9oVi5qGyg,4120
|
7
|
-
opengeodeweb_back/routes/blueprint_routes.py,sha256=
|
7
|
+
opengeodeweb_back/routes/blueprint_routes.py,sha256=oPFLxjTBgfxsjug4Qmn5YW_vlFOodAFl9H_aXDSO-24,11598
|
8
8
|
opengeodeweb_back/routes/schemas/allowed_files.json,sha256=pRsGf39LiJpl3zEGLg4IqvRtm7iUx3Wq4Tb4tSFXGV0,234
|
9
9
|
opengeodeweb_back/routes/schemas/allowed_objects.json,sha256=8JLtAI46eXeiJuiryS2geRVv0J1rGkFb87pRwtBZSZw,296
|
10
10
|
opengeodeweb_back/routes/schemas/create_point.json,sha256=fqBOLRxpRtCVz1t7ottdfhSMREhqNFUHrQwamn-F7Ds,306
|
@@ -17,8 +17,8 @@ opengeodeweb_back/routes/schemas/polygon_attribute_names.json,sha256=y0qDZ0v3zkz
|
|
17
17
|
opengeodeweb_back/routes/schemas/save_viewable_file.json,sha256=7BXO8vsQrmqyEQ2uycm2Ift_EY7a0KocvnGEjYrQFcQ,368
|
18
18
|
opengeodeweb_back/routes/schemas/upload_file.json,sha256=sE6bxz3mJbSZlGmrnR_hZmcx0dvZGn3Wpnn6szRPxXQ,186
|
19
19
|
opengeodeweb_back/routes/schemas/vertex_attribute_names.json,sha256=wijww9z7vVUIr1_3hMnR5efpMfW2-o2-QvcO_MVDefE,295
|
20
|
-
OpenGeodeWeb_Back-5.4.
|
21
|
-
OpenGeodeWeb_Back-5.4.
|
22
|
-
OpenGeodeWeb_Back-5.4.
|
23
|
-
OpenGeodeWeb_Back-5.4.
|
24
|
-
OpenGeodeWeb_Back-5.4.
|
20
|
+
OpenGeodeWeb_Back-5.4.0rc3.dist-info/LICENSE,sha256=LoTB-aqQvzTGxoTRXNnhNV0LKiqdk2bQv6MB34l8zkI,1079
|
21
|
+
OpenGeodeWeb_Back-5.4.0rc3.dist-info/METADATA,sha256=H1dnILo3TO26Z7nSPuT5w44rCArRDWIzunKZ1XO8dJU,3059
|
22
|
+
OpenGeodeWeb_Back-5.4.0rc3.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
23
|
+
OpenGeodeWeb_Back-5.4.0rc3.dist-info/top_level.txt,sha256=tN1FZeLIVBrdja2-pbmhg5-tK-JILmmT9OeIBnhlUrQ,18
|
24
|
+
OpenGeodeWeb_Back-5.4.0rc3.dist-info/RECORD,,
|
@@ -76,8 +76,8 @@ def create_crs(
|
|
76
76
|
)
|
77
77
|
|
78
78
|
|
79
|
-
def
|
80
|
-
return geode_object_value(geode_object)["
|
79
|
+
def get_object_type(geode_object: str):
|
80
|
+
return geode_object_value(geode_object)["object_type"]
|
81
81
|
|
82
82
|
|
83
83
|
def is_3D(geode_object: str):
|
@@ -28,7 +28,7 @@ def geode_objects_dict():
|
|
28
28
|
"convert": og_gs.convert_brep_coordinate_reference_system,
|
29
29
|
"create": og.create_brep_coordinate_system,
|
30
30
|
},
|
31
|
-
"
|
31
|
+
"object_type": "model",
|
32
32
|
"is_3D": True,
|
33
33
|
"is_viewable": True,
|
34
34
|
"save_viewable": g_v.save_viewable_brep,
|
@@ -50,7 +50,7 @@ def geode_objects_dict():
|
|
50
50
|
"convert": og_gs.convert_section_coordinate_reference_system,
|
51
51
|
"create": og.create_section_coordinate_system,
|
52
52
|
},
|
53
|
-
"
|
53
|
+
"object_type": "model",
|
54
54
|
"is_3D": False,
|
55
55
|
"is_viewable": True,
|
56
56
|
"save_viewable": g_v.save_viewable_cross_section,
|
@@ -71,7 +71,7 @@ def geode_objects_dict():
|
|
71
71
|
"convert": og_gs.convert_edged_curve_coordinate_reference_system2D,
|
72
72
|
"create": og.create_edged_curve_coordinate_system2D,
|
73
73
|
},
|
74
|
-
"
|
74
|
+
"object_type": "mesh",
|
75
75
|
"is_3D": False,
|
76
76
|
"is_viewable": True,
|
77
77
|
"save_viewable": g_v.save_viewable_edged_curve2D,
|
@@ -92,7 +92,7 @@ def geode_objects_dict():
|
|
92
92
|
"convert": og_gs.convert_edged_curve_coordinate_reference_system3D,
|
93
93
|
"create": og.create_edged_curve_coordinate_system3D,
|
94
94
|
},
|
95
|
-
"
|
95
|
+
"object_type": "mesh",
|
96
96
|
"is_3D": True,
|
97
97
|
"is_viewable": True,
|
98
98
|
"save_viewable": g_v.save_viewable_edged_curve3D,
|
@@ -108,7 +108,7 @@ def geode_objects_dict():
|
|
108
108
|
"is_saveable": og.is_graph_saveable,
|
109
109
|
"save": og.save_graph,
|
110
110
|
"builder": og.GraphBuilder.create,
|
111
|
-
"
|
111
|
+
"object_type": "mesh",
|
112
112
|
"is_3D": False,
|
113
113
|
"is_viewable": True,
|
114
114
|
},
|
@@ -127,7 +127,7 @@ def geode_objects_dict():
|
|
127
127
|
"convert": og_gs.convert_solid_mesh_coordinate_reference_system3D,
|
128
128
|
"create": og.create_solid_mesh_coordinate_system3D,
|
129
129
|
},
|
130
|
-
"
|
130
|
+
"object_type": "mesh",
|
131
131
|
"is_3D": True,
|
132
132
|
"is_viewable": True,
|
133
133
|
"save_viewable": g_v.save_viewable_hybrid_solid3D,
|
@@ -149,7 +149,7 @@ def geode_objects_dict():
|
|
149
149
|
"convert": og_gs.convert_section_coordinate_reference_system,
|
150
150
|
"create": og.create_section_coordinate_system,
|
151
151
|
},
|
152
|
-
"
|
152
|
+
"object_type": "model",
|
153
153
|
"is_3D": False,
|
154
154
|
"is_viewable": True,
|
155
155
|
"save_viewable": g_v.save_viewable_implicit_cross_section,
|
@@ -171,7 +171,7 @@ def geode_objects_dict():
|
|
171
171
|
"convert": og_gs.convert_brep_coordinate_reference_system,
|
172
172
|
"create": og.create_brep_coordinate_system,
|
173
173
|
},
|
174
|
-
"
|
174
|
+
"object_type": "model",
|
175
175
|
"is_3D": True,
|
176
176
|
"is_viewable": True,
|
177
177
|
"save_viewable": g_v.save_viewable_implicit_structural_model,
|
@@ -186,7 +186,7 @@ def geode_objects_dict():
|
|
186
186
|
"load": og.load_light_regular_grid2D,
|
187
187
|
"is_saveable": og.is_light_regular_grid_saveable2D,
|
188
188
|
"save": og.save_light_regular_grid2D,
|
189
|
-
"
|
189
|
+
"object_type": "mesh",
|
190
190
|
"is_3D": False,
|
191
191
|
"is_viewable": True,
|
192
192
|
"save_viewable": g_v.save_viewable_light_regular_grid2D,
|
@@ -200,7 +200,7 @@ def geode_objects_dict():
|
|
200
200
|
"load": og.load_light_regular_grid3D,
|
201
201
|
"is_saveable": og.is_light_regular_grid_saveable3D,
|
202
202
|
"save": og.save_light_regular_grid3D,
|
203
|
-
"
|
203
|
+
"object_type": "mesh",
|
204
204
|
"is_3D": True,
|
205
205
|
"is_viewable": True,
|
206
206
|
"save_viewable": g_v.save_viewable_light_regular_grid3D,
|
@@ -220,7 +220,7 @@ def geode_objects_dict():
|
|
220
220
|
"convert": og_gs.convert_point_set_coordinate_reference_system2D,
|
221
221
|
"create": og.create_point_set_coordinate_system2D,
|
222
222
|
},
|
223
|
-
"
|
223
|
+
"object_type": "mesh",
|
224
224
|
"is_3D": False,
|
225
225
|
"is_viewable": True,
|
226
226
|
"save_viewable": g_v.save_viewable_point_set2D,
|
@@ -241,7 +241,7 @@ def geode_objects_dict():
|
|
241
241
|
"convert": og_gs.convert_point_set_coordinate_reference_system3D,
|
242
242
|
"create": og.create_point_set_coordinate_system3D,
|
243
243
|
},
|
244
|
-
"
|
244
|
+
"object_type": "mesh",
|
245
245
|
"is_3D": True,
|
246
246
|
"is_viewable": True,
|
247
247
|
"save_viewable": g_v.save_viewable_point_set3D,
|
@@ -262,7 +262,7 @@ def geode_objects_dict():
|
|
262
262
|
"convert": og_gs.convert_surface_mesh_coordinate_reference_system2D,
|
263
263
|
"create": og.create_surface_mesh_coordinate_system2D,
|
264
264
|
},
|
265
|
-
"
|
265
|
+
"object_type": "mesh",
|
266
266
|
"is_3D": False,
|
267
267
|
"is_viewable": True,
|
268
268
|
"save_viewable": g_v.save_viewable_polygonal_surface2D,
|
@@ -283,7 +283,7 @@ def geode_objects_dict():
|
|
283
283
|
"convert": og_gs.convert_surface_mesh_coordinate_reference_system3D,
|
284
284
|
"create": og.create_surface_mesh_coordinate_system3D,
|
285
285
|
},
|
286
|
-
"
|
286
|
+
"object_type": "mesh",
|
287
287
|
"is_3D": True,
|
288
288
|
"is_viewable": True,
|
289
289
|
"save_viewable": g_v.save_viewable_polygonal_surface3D,
|
@@ -304,7 +304,7 @@ def geode_objects_dict():
|
|
304
304
|
"convert": og_gs.convert_solid_mesh_coordinate_reference_system3D,
|
305
305
|
"create": og.create_solid_mesh_coordinate_system3D,
|
306
306
|
},
|
307
|
-
"
|
307
|
+
"object_type": "mesh",
|
308
308
|
"is_3D": True,
|
309
309
|
"is_viewable": True,
|
310
310
|
"save_viewable": g_v.save_viewable_polyhedral_solid3D,
|
@@ -319,7 +319,7 @@ def geode_objects_dict():
|
|
319
319
|
"load": og.load_raster_image2D,
|
320
320
|
"is_saveable": og.is_raster_image_saveable2D,
|
321
321
|
"save": og.save_raster_image2D,
|
322
|
-
"
|
322
|
+
"object_type": "mesh",
|
323
323
|
"is_3D": False,
|
324
324
|
"is_viewable": False,
|
325
325
|
"save_viewable": g_v.save_viewable_raster_image2D,
|
@@ -333,7 +333,7 @@ def geode_objects_dict():
|
|
333
333
|
"load": og.load_raster_image3D,
|
334
334
|
"is_saveable": og.is_raster_image_saveable3D,
|
335
335
|
"save": og.save_raster_image3D,
|
336
|
-
"
|
336
|
+
"object_type": "mesh",
|
337
337
|
"is_3D": False,
|
338
338
|
"is_viewable": False,
|
339
339
|
"save_viewable": g_v.save_viewable_raster_image3D,
|
@@ -353,7 +353,7 @@ def geode_objects_dict():
|
|
353
353
|
"convert": og_gs.convert_surface_mesh_coordinate_reference_system2D,
|
354
354
|
"create": og.create_surface_mesh_coordinate_system2D,
|
355
355
|
},
|
356
|
-
"
|
356
|
+
"object_type": "mesh",
|
357
357
|
"is_3D": False,
|
358
358
|
"is_viewable": True,
|
359
359
|
"save_viewable": g_v.save_viewable_regular_grid2D,
|
@@ -373,7 +373,7 @@ def geode_objects_dict():
|
|
373
373
|
"convert": og_gs.convert_solid_mesh_coordinate_reference_system3D,
|
374
374
|
"create": og.create_surface_mesh_coordinate_system3D,
|
375
375
|
},
|
376
|
-
"
|
376
|
+
"object_type": "mesh",
|
377
377
|
"is_3D": True,
|
378
378
|
"is_viewable": True,
|
379
379
|
"save_viewable": g_v.save_viewable_regular_grid3D,
|
@@ -393,7 +393,7 @@ def geode_objects_dict():
|
|
393
393
|
"convert": og_gs.convert_section_coordinate_reference_system,
|
394
394
|
"create": og.create_section_coordinate_system,
|
395
395
|
},
|
396
|
-
"
|
396
|
+
"object_type": "model",
|
397
397
|
"is_3D": False,
|
398
398
|
"is_viewable": True,
|
399
399
|
"save_viewable": g_v.save_viewable_section,
|
@@ -415,7 +415,7 @@ def geode_objects_dict():
|
|
415
415
|
"convert": og_gs.convert_brep_coordinate_reference_system,
|
416
416
|
"create": og.create_brep_coordinate_system,
|
417
417
|
},
|
418
|
-
"
|
418
|
+
"object_type": "model",
|
419
419
|
"is_3D": True,
|
420
420
|
"is_viewable": True,
|
421
421
|
"save_viewable": g_v.save_viewable_structural_model,
|
@@ -436,7 +436,7 @@ def geode_objects_dict():
|
|
436
436
|
"convert": og_gs.convert_solid_mesh_coordinate_reference_system3D,
|
437
437
|
"create": og.create_solid_mesh_coordinate_system3D,
|
438
438
|
},
|
439
|
-
"
|
439
|
+
"object_type": "mesh",
|
440
440
|
"is_3D": True,
|
441
441
|
"is_viewable": True,
|
442
442
|
"save_viewable": g_v.save_viewable_tetrahedral_solid3D,
|
@@ -457,7 +457,7 @@ def geode_objects_dict():
|
|
457
457
|
"convert": og_gs.convert_surface_mesh_coordinate_reference_system2D,
|
458
458
|
"create": og.create_surface_mesh_coordinate_system2D,
|
459
459
|
},
|
460
|
-
"
|
460
|
+
"object_type": "mesh",
|
461
461
|
"is_3D": False,
|
462
462
|
"is_viewable": True,
|
463
463
|
"save_viewable": g_v.save_viewable_triangulated_surface2D,
|
@@ -478,7 +478,7 @@ def geode_objects_dict():
|
|
478
478
|
"convert": og_gs.convert_surface_mesh_coordinate_reference_system3D,
|
479
479
|
"create": og.create_surface_mesh_coordinate_system3D,
|
480
480
|
},
|
481
|
-
"
|
481
|
+
"object_type": "mesh",
|
482
482
|
"is_3D": True,
|
483
483
|
"is_viewable": True,
|
484
484
|
"save_viewable": g_v.save_viewable_triangulated_surface3D,
|
@@ -494,7 +494,7 @@ def geode_objects_dict():
|
|
494
494
|
"is_saveable": og.is_vertex_set_saveable,
|
495
495
|
"save": og.save_vertex_set,
|
496
496
|
"builder": og.VertexSetBuilder.create,
|
497
|
-
"
|
497
|
+
"object_type": "mesh",
|
498
498
|
"is_3D": False,
|
499
499
|
"is_viewable": False,
|
500
500
|
},
|
@@ -260,6 +260,9 @@ def save_viewable_file():
|
|
260
260
|
DATA_FOLDER_PATH,
|
261
261
|
generated_id + "." + native_extension,
|
262
262
|
)
|
263
|
+
object_type = geode_functions.get_object_type(
|
264
|
+
flask.request.json["input_geode_object"]
|
265
|
+
)
|
263
266
|
|
264
267
|
native_file_name = os.path.basename(absolute_native_file_path)
|
265
268
|
viewable_file_name = os.path.basename(saved_viewable_file_path)
|
@@ -269,6 +272,7 @@ def save_viewable_file():
|
|
269
272
|
"native_file_name": native_file_name,
|
270
273
|
"viewable_file_name": viewable_file_name,
|
271
274
|
"id": generated_id,
|
275
|
+
"object_type": object_type,
|
272
276
|
},
|
273
277
|
200,
|
274
278
|
)
|
File without changes
|
File without changes
|
File without changes
|