Skip to content

Commit

Permalink
refactor(backend): remove additional warning logs from check_crs func…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
spwoodcock committed Jul 29, 2024
1 parent 8291baa commit 1d80b69
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/backend/app/db/postgis_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,11 +536,8 @@ def is_valid_coordinate(coord):
raise HTTPException(status_code=400, detail=error_message)
return

log.warning(input_geojson)
log.warning(input_geojson.get("type"))
if (input_geojson_type := input_geojson.get("type")) == "FeatureCollection":
features = input_geojson.get("features", [])
log.warning(features)
coordinates = (
features[-1].get("geometry", {}).get("coordinates", []) if features else []
)
Expand All @@ -555,7 +552,6 @@ def is_valid_coordinate(coord):
first_coordinate = coordinates
coordinates = coordinates[0]

log.warning(coordinates)
if not is_valid_coordinate(first_coordinate):
log.error(error_message)
raise HTTPException(status_code=400, detail=error_message)
Expand Down

0 comments on commit 1d80b69

Please sign in to comment.