-
Notifications
You must be signed in to change notification settings - Fork 9
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
pygeoprocessing.get_gis_type should raise an exception if gdal can't open the file #244
Comments
Hey @phargogh I was just looking at this and it appears that Internally we use |
Looks like the following InVEST models also call this function:
|
Yes, I am proposing that if the raster cannot be opened, it should raise a But this is also a notable behavioral change, and so we might want to put it off until a minor release, which is totally fine by me. |
Throughout pygeoprocessing, we do some basic checking for the case where gdal can't open up a dataset.
get_raster_info
andget_vector_info
both do this, and it's reasonable to expect thatget_gis_type
would also do this.The text was updated successfully, but these errors were encountered: