Matthew Perry
bcd35c537e
add tests
2017-05-25 07:04:34 -06:00
Sean Gillies
fc441110e2
Revert "Test for empty CRS equality"
2017-05-09 13:03:59 +02:00
Matthew Perry
eab5ece9c1
==
2017-05-08 17:48:26 -06:00
Matthew Perry
1a016d7d82
fully cover OSR equivalence branch
2017-05-08 17:23:16 -06:00
Matthew Perry
185672846f
add tests for empty CRS equality
2017-05-08 10:47:33 -06:00
James McBride
c0373d84bf
Restore ValueError raise for null CRS.
2017-01-24 08:50:28 -08:00
James McBride
da03fef2be
Modify behavior of null CRS, WIP ( #960 ).
...
Allow comparison of null CRS with other CRS.
2017-01-21 19:31:55 -08:00
Sean Gillies
cd47517d46
Replace CPLErrors context manager with two wrapper funcs
...
Less complication, less code.
2016-12-15 17:05:03 +01:00
Matthew Perry
861cf8a474
a more tests
2016-06-10 12:43:09 -04:00
James Hiebert
a0a4289b51
Adds a CRS.to_dict method and updates comparisons
2016-06-05 09:32:58 -07:00
James Hiebert
10da8396a5
Changes CRS.is_* methods to properties
2016-06-04 15:50:08 -07:00
James Hiebert
293e3767b4
Fixes typo in test name
2016-06-04 12:09:09 -07:00
James Hiebert
c8bc1b7919
Adds a __repr__ method to the CRS class
2016-06-04 11:25:02 -07:00
James Hiebert
2a744b3868
Adds a wkt property to the CRS class
2016-06-04 10:50:51 -07:00
James Hiebert
b895209535
Fixes python 2.7 tests with compat string types
2016-06-03 17:17:44 -07:00
James Hiebert
c2be0f6b8f
Adds a public module for the CRS class
2016-06-03 17:17:44 -07:00
James Hiebert
a7e7cbef63
Replaces crs as a dict with a CRS class
...
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
2016-06-03 17:15:48 -07:00
Brendan Ward
aa9b783078
Added better validation and testing of CRS conversion to OGRSpatialReference objects
2016-06-02 21:52:30 -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
Kevin Wurster
36eab05e2c
Raise a CRSError instead of ValueError + handling for '[]' and ''.
2016-04-06 16:50:22 -04:00
Kevin Wurster
369a5923be
Raise an exception when {} is passed to crs.from_string(). An empty JSON object does not contain any CRS information.
2016-04-06 14:49:29 -04:00
Even Rouault
825a7609ff
Fix test_write_3857() with GDAL trunk ( #548 )
...
The WKT string for EPSG:3857 has changed in GDAL 2.1, so make
the test a bit less specific for robustness.
2016-03-05 18:16:20 +01:00
Brendan Ward
29a0e741e1
Fixed bug with EPSG contained in a proj4 string
2015-09-04 14:35:19 -07:00
Brendan Ward
5dce1d4116
Changed --res to single value option
2015-07-10 22:36:52 -07:00
Sean Gillies
ee1ef2d32b
Consolidate crs validity test.
...
Also add another test of the --all callback and fix the bug it
exposed.
2015-07-08 07:50:35 -06:00
Brendan Ward
df72bcf3ee
Added crs check to rio rasterize, relaxed bounds error to warning, added OSR utility functions, increased test coverage
2015-04-05 22:38:11 -07:00
Brendan Ward
d4c8d5120c
Handle proj4 bare parameters with string values
2014-10-06 13:43:17 -07:00
Sean Gillies
943fa8e099
New layout, tests moved.
2014-09-01 22:00:56 -06:00