-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BGDIINF_SB-2238: Improved error handling - avoid 500 errors on bad re…
…quest Avoiding 500 error when the request parameters are invalid. Only LineString and Point are supported as input geometry. Checking this avoid later crash. Removed also broad exception by using correct exception type. Point and LineString shape `is_valid` is a property and not a function and do not raise exception but simply return True or False. Before this kind of invalid shape object where caught later by trying to guess the srid.
- Loading branch information
Showing
2 changed files
with
23 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters