Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile requirements.in
# pip-compile --pre requirements.in
#
asgiref==3.8.1
# via flask
Expand All @@ -18,14 +18,14 @@ flask[async]==3.1.0
# via
# -r requirements.in
# flask-cors
flask-cors==5.0.0
flask-cors==5.0.1
# via -r requirements.in
geode-background==8.9.3
geode-background==8.9.4
# via
# geode-explicit
# geode-implicit
# geode-simplex
geode-common==33.5.0
geode-common==33.5.1rc1
# via
# -r requirements.in
# geode-background
Expand All @@ -35,7 +35,7 @@ geode-common==33.5.0
# geode-numerics
# geode-simplex
# geode-viewables
geode-conversion==6.1.5
geode-conversion==6.1.6
# via
# geode-explicit
# geode-implicit
Expand All @@ -51,7 +51,7 @@ geode-numerics==5.2.5
# -r requirements.in
# geode-implicit
# geode-simplex
geode-simplex==9.0.10
geode-simplex==9.0.12rc1
# via
# -r requirements.in
# geode-implicit
Expand All @@ -69,7 +69,7 @@ markupsafe==3.0.2
# via
# jinja2
# werkzeug
opengeode-core==15.10.1
opengeode-core==15.13.0rc1
# via
# -r requirements.in
# geode-background
Expand Down Expand Up @@ -110,7 +110,7 @@ referencing==0.36.2
# via
# jsonschema
# jsonschema-specifications
rpds-py==0.22.3
rpds-py==0.23.1
# via
# jsonschema
# referencing
Expand All @@ -122,3 +122,4 @@ werkzeug==3.1.3
# via
# -r requirements.in
# flask
# flask-cors
20 changes: 20 additions & 0 deletions src/opengeodeweb_back/routes/blueprint_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,26 @@ def create_point():
)


with open(os.path.join(schemas, "texture_coordinates.json"), "r") as file:
texture_coordinates_json = json.load(file)


@routes.route(
texture_coordinates_json["route"],
methods=texture_coordinates_json["methods"],
)
def texture_coordinates():
DATA_FOLDER_PATH = flask.current_app.config["DATA_FOLDER_PATH"]
utils_functions.validate_request(flask.request, texture_coordinates_json)
data = geode_functions.load(
flask.request.json["input_geode_object"],
os.path.join(DATA_FOLDER_PATH, flask.request.json["filename"]),
)
texture_coordinates = data.texture_manager().texture_names()

return flask.make_response({"texture_coordinates": texture_coordinates}, 200)


with open(
os.path.join(schemas, "vertex_attribute_names.json"),
"r",
Expand Down
24 changes: 24 additions & 0 deletions src/opengeodeweb_back/routes/schemas/texture_coordinates.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"route": "/texture_coordinates",
"methods": [
"POST"
],
"type": "object",
"properties": {
"input_geode_object": {
"type": [
"string"
]
},
"filename": {
"type": [
"string"
]
}
},
"required": [
"input_geode_object",
"filename"
],
"additionalProperties": false
}
Loading