* Successful coordinate transformations might leave errors on stack
We pop and log them after using the transformer.
Resolves#2353
* Test error clean up
* Skip test for GDAL <= 3.3
* Use CPLErrorReset
* Call CPLErrorReset in _err wrappers
* Remove obsolete exception handler
* Note changes from gh-2487
* Always check the error stack after calling GDALSuggestedWarpOutput2
Resolves#2353
* Remove special casing for exception messages
* Make code more readable
* Do the same for GDALAutoCreateWarpedVRT
Plus more code cleanup
* Remove commented lines
* Turn down log level for new source of GDAL messages
New Env class and tests.
More logging, tests, safer environment
Remove usage (deprecated) of rasterio.drivers()
Also pep8 cleanups throughout the tests and a fix for unchecked
dtypes when opening a dataset in 'w' mode.
Now we can simply import warnings in __init__.py. In the
deprecations tests, we needed to see a single warning only one
time to avoid multiple drivers() warnings.
Add a global env.
Add rasterio.env.setenv()
That went counter to the design of the context manager. Instead
I've added a check() method that is to be called after any GDAL
function that might have called CPLError().