8 Commits

Author SHA1 Message Date
Sean Gillies
2564e93658 Finish renaming, add a exc_wrap_vsilfile() 2017-01-11 13:01:30 +01:00
Erik Seglem
44c3d9badf Replace drivers with Env in docs and examples (#760)
Replace rasterio.drivers with rasterio.Env.
2016-06-02 19:01:18 -07:00
Sean Gillies
12f8fc7e3f New, lazier AWS sessions
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()
2016-04-28 15:26:55 -06:00
Sean Gillies
19954c5e6a Embracing hierarchy of loggers
Basically use `logging.getLogger(__name__)` everywhere and
configure at the top of the hierarchy.

Fixes a few pep8 nits along the way.
2016-04-12 10:08:04 -06:00
Sean Gillies
af06b9af4a Keep rasterio's cpl error handler in place
Never restore it to the GDAL default.

Also get in line with best practices for library and application
logging: NullHandlers attached in rasterio/__init__.py and then
overridden in rasterio/rio/main.py.

Closes #649
2016-04-11 14:38:18 -06:00
Sean Gillies
4893a66639 Avoid logging b'' value 2016-03-29 23:02:04 -06:00
Sean Gillies
6f3d18411d Adjust for new log entry 2016-03-29 22:47:13 -06:00
Sean Gillies
943fa8e099 New layout, tests moved. 2014-09-01 22:00:56 -06:00