Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ximenesuk committed Jun 30, 2023
1 parent 8c5c377 commit 67ba993
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,8 @@ def ags_export_by_polygon(polygon: str = polygon_query):
:raises HTTPException 500: If the borehole exporter returns an error.
"""

# Check that the WKT is a valid POLYGON
# Check explicitly that the WKT is a valid POLYGON
# The BOREHOLE_INDEX_URL API does not return an error for some bad WKT
check_df = gpd.GeoDataFrame([{"type": "zone", "bound": polygon}])
try:
gpd.GeoSeries.from_wkt(check_df['bound'])
Expand Down

0 comments on commit 67ba993

Please sign in to comment.