OpenGeodeWeb-Back 5.6.0rc1__py3-none-any.whl → 5.6.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.
@@ -283,6 +283,7 @@ with open(os.path.join(schemas, "create_point.json"), "r") as file:
283
283
  def create_point():
284
284
  utils_functions.validate_request(flask.request, create_point_json)
285
285
  DATA_FOLDER_PATH = flask.current_app.config["DATA_FOLDER_PATH"]
286
+ title = flask.request.json["title"]
286
287
  x = flask.request.json["x"]
287
288
  y = flask.request.json["y"]
288
289
  z = flask.request.json["z"]
@@ -290,16 +291,29 @@ def create_point():
290
291
  PointSet3D = class_.create()
291
292
  builder = geode_functions.create_builder("PointSet3D", PointSet3D)
292
293
  builder.create_point(opengeode.Point3D([x, y, z]))
293
-
294
+ builder.set_name(title)
295
+ name = PointSet3D.name()
294
296
  generated_id = str(uuid.uuid4()).replace("-", "")
297
+ object_type = geode_functions.get_object_type("PointSet3D")
298
+ saved_native_file_path = geode_functions.save(
299
+ "PointSet3D", PointSet3D, DATA_FOLDER_PATH, generated_id + ".og_pts3d"
300
+ )
295
301
  saved_viewable_file_path = geode_functions.save_viewable(
296
302
  "PointSet3D", PointSet3D, DATA_FOLDER_PATH, generated_id
297
303
  )
298
304
 
305
+ native_file_name = os.path.basename(saved_native_file_path[0])
306
+ viewable_file_name = os.path.basename(saved_viewable_file_path)
307
+
299
308
  return flask.make_response(
300
309
  {
301
310
  "viewable_file_name": os.path.basename(saved_viewable_file_path),
302
311
  "id": generated_id,
312
+ "name": name,
313
+ "native_file_name": native_file_name,
314
+ "viewable_file_name": viewable_file_name,
315
+ "object_type": object_type,
316
+ "geode_object": "PointSet3D",
303
317
  },
304
318
  200,
305
319
  )
@@ -5,6 +5,9 @@
5
5
  ],
6
6
  "type": "object",
7
7
  "properties": {
8
+ "title": {
9
+ "type": "string"
10
+ },
8
11
  "x": {
9
12
  "type": "number"
10
13
  },
@@ -16,6 +19,7 @@
16
19
  }
17
20
  },
18
21
  "required": [
22
+ "title",
19
23
  "x",
20
24
  "y",
21
25
  "z"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: OpenGeodeWeb-Back
3
- Version: 5.6.0rc1
3
+ Version: 5.6.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
@@ -18,19 +18,19 @@ Requires-Dist: click==8.1.8
18
18
  Requires-Dist: flask[async]==3.1.0
19
19
  Requires-Dist: flask-cors==5.0.1
20
20
  Requires-Dist: geode-background==8.9.4
21
- Requires-Dist: geode-common==33.5.1rc1
21
+ Requires-Dist: geode-common==33.5.0
22
22
  Requires-Dist: geode-conversion==6.1.6
23
23
  Requires-Dist: geode-explicit==6.1.28
24
24
  Requires-Dist: geode-implicit==3.5.2
25
25
  Requires-Dist: geode-numerics==5.2.5
26
- Requires-Dist: geode-simplex==9.0.12rc1
26
+ Requires-Dist: geode-simplex==9.0.11
27
27
  Requires-Dist: geode-viewables==3.0.10
28
28
  Requires-Dist: itsdangerous==2.2.0
29
29
  Requires-Dist: jinja2==3.1.5
30
30
  Requires-Dist: jsonschema==4.23.0
31
31
  Requires-Dist: jsonschema-specifications==2024.10.1
32
32
  Requires-Dist: markupsafe==3.0.2
33
- Requires-Dist: opengeode-core==15.13.0rc1
33
+ Requires-Dist: opengeode-core==15.12.0
34
34
  Requires-Dist: opengeode-geosciences==8.2.2
35
35
  Requires-Dist: opengeode-geosciencesio==5.3.6
36
36
  Requires-Dist: opengeode-inspector==6.3.7
@@ -4,10 +4,10 @@ opengeodeweb_back/geode_functions.py,sha256=ei0eI3pWMqzrhgI5ta5HtnoRoNs-GCqtkXe5
4
4
  opengeodeweb_back/geode_objects.py,sha256=4XH0TGujHw3LIBIzPLBa2eqxyfjVLo9hywKYxXEp-zU,24372
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=r8lEKmYKetN8bS0N4wOZeEwMpSWl_8YyhCchrQfPfPU,13174
7
+ opengeodeweb_back/routes/blueprint_routes.py,sha256=oDhoXIX5XIaaRa-_CEphwRmIxhuUYOS2spB2i1zOc8k,13818
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
- opengeodeweb_back/routes/schemas/create_point.json,sha256=fqBOLRxpRtCVz1t7ottdfhSMREhqNFUHrQwamn-F7Ds,306
10
+ opengeodeweb_back/routes/schemas/create_point.json,sha256=wkR0A0BFKvh3Knapjdi1_mDM7q3eoQiduLS-j6ciDSg,364
11
11
  opengeodeweb_back/routes/schemas/geode_objects_and_output_extensions.json,sha256=0t4YhdKxDlzcLh85JU85z6Pn5h8wlXVt3Zi4ZhXXmTQ,308
12
12
  opengeodeweb_back/routes/schemas/geographic_coordinate_systems.json,sha256=86QEBxAJXdMHulj2SyrxvAAwvyUq3mpKSazwASukeoM,242
13
13
  opengeodeweb_back/routes/schemas/inspect_file.json,sha256=7jmmLD2oZ2dxn5-2HqS6fU92eGM3FWBQdj3CjyYmGOA,285
@@ -19,8 +19,8 @@ opengeodeweb_back/routes/schemas/save_viewable_file.json,sha256=7BXO8vsQrmqyEQ2u
19
19
  opengeodeweb_back/routes/schemas/texture_coordinates.json,sha256=iLlP6EQiLpzfKBXdrX3fmse_4V_QjblEDV2f2AMUM20,347
20
20
  opengeodeweb_back/routes/schemas/upload_file.json,sha256=sE6bxz3mJbSZlGmrnR_hZmcx0dvZGn3Wpnn6szRPxXQ,186
21
21
  opengeodeweb_back/routes/schemas/vertex_attribute_names.json,sha256=wijww9z7vVUIr1_3hMnR5efpMfW2-o2-QvcO_MVDefE,295
22
- opengeodeweb_back-5.6.0rc1.dist-info/LICENSE,sha256=LoTB-aqQvzTGxoTRXNnhNV0LKiqdk2bQv6MB34l8zkI,1079
23
- opengeodeweb_back-5.6.0rc1.dist-info/METADATA,sha256=kt9Kk5g4qMoHpQZjs3l8i9mmYT51GHcYvfgN0pOPYOs,3068
24
- opengeodeweb_back-5.6.0rc1.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
25
- opengeodeweb_back-5.6.0rc1.dist-info/top_level.txt,sha256=tN1FZeLIVBrdja2-pbmhg5-tK-JILmmT9OeIBnhlUrQ,18
26
- opengeodeweb_back-5.6.0rc1.dist-info/RECORD,,
22
+ opengeodeweb_back-5.6.0rc3.dist-info/LICENSE,sha256=LoTB-aqQvzTGxoTRXNnhNV0LKiqdk2bQv6MB34l8zkI,1079
23
+ opengeodeweb_back-5.6.0rc3.dist-info/METADATA,sha256=RxDvT-EIb_iMbnUOZ1191N4mQyfL3apTZepr2JF4D-I,3059
24
+ opengeodeweb_back-5.6.0rc3.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
25
+ opengeodeweb_back-5.6.0rc3.dist-info/top_level.txt,sha256=tN1FZeLIVBrdja2-pbmhg5-tK-JILmmT9OeIBnhlUrQ,18
26
+ opengeodeweb_back-5.6.0rc3.dist-info/RECORD,,