Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GTC-2027 (part 2) - give useful error when input geometry is not Polygon/MultiPolygon #504

Merged
merged 1 commit into from
May 2, 2024

Conversation

danscales
Copy link
Collaborator

GTC-2027 (part 2) - give useful error when input geometry is not Polygon/MultiPolygon

This is to fix for a bunch more "tuple index out of range" 500 errors that are showing up. Someone is submitting zonal statistic queries on geometries which are not Polygons. This is the same as my previous fix for normal queries.

Since zonal statististics are on the way out (eventually), I didn't add a new test for this particular error case.

…gon/MultiPolygon

This is to fix some more "tuple index out of range" 500 errors.

My previous fix was for usual queries. This fix is for zonal statistics calls.
(which have been deprecated for quite a while - should we just disable zonal
statistics queries sometime soon?)
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 81.78%. Comparing base (e6af669) to head (e6433eb).

Files Patch % Lines
app/routes/analysis/analysis.py 0.00% 2 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #504      +/-   ##
===========================================
- Coverage    81.81%   81.78%   -0.03%     
===========================================
  Files          124      124              
  Lines         5537     5539       +2     
===========================================
  Hits          4530     4530              
- Misses        1007     1009       +2     
Flag Coverage Δ
unittests 81.78% <0.00%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@danscales
Copy link
Collaborator Author

Thanks for the review!

@danscales danscales merged commit 9e4a02f into develop May 2, 2024
2 checks passed
@danscales danscales deleted the gtc-2027b branch May 2, 2024 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants