Implements a number of changes:
* Creates a CRS class that simply inherits from UserDict
* Moves CRS related methods (to_string, from_string, is_geographic,
is_projected, is_valid, and is_epsg_code) to be class methods
* Moves the CRS comparison method to be CRS.__eq__
* Modifies tests that compare CRS output to a raw dict, to compare to
UserDict.data property
* Replaces all creation of CRS represtation using bare dicts with the
use class instantiation
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()
Similar-ish to the existing masking tests in test_rio_features, but
these target the python function version, and are not as exhaustive.
In adding tests, added a new basic_image_file fixture in conftest.
Also switched to use warnings, though I didn't add any filtering (I ran
into some unintended consequences in my attempted filtering).
Since we can't unset a nodata value, this is the next best thing:
dataset.write_mask(True)
Sets the dataset's valid data mask uniformly to True (255).
Closes#328.
Remove test data from sdists. Check for it when running tests and
direct users to download location. No automated download... I don't
expect many users to be running the tests from an sdist.
Closes#133.