Sean Gillies
9355513d39
Get env from main ctx
...
Migrate all tests over to invoking main_group with a named command.
2016-07-27 14:51:36 -06:00
Kevin Wurster
ef952def3b
Merge master.
2016-06-14 21:09:27 -07:00
Kevin Wurster
40cbc26d73
Switch src.transform to an instance of affine.Affine() and add a warning deprecating src.affine.
...
Switch src.affine to src.transform in tests
2016-06-05 14:29:34 -04: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
Erik Seglem
a31e3c8c16
Standardize on import numpy as np.
2016-06-01 22:47:33 -04: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
b9205b1fcb
Remove references to read_band() but not the actual method.
2016-04-12 20:50:50 -04:00
Kevin Wurster
d60d40c3ca
Remove references to write_band() but not the actual method.
2016-04-12 20:45:56 -04:00
Matthew Perry
f1c501e5aa
additional tests for rio cmds
2016-04-05 12:16:19 -04:00
Matthew Perry
bb45a7147c
merge origin/master
2016-03-31 11:30:37 -04:00
Sean Gillies
fd2f9dbfd8
Reformat tests so commands get a context obj
2016-03-30 22:11:43 -06:00
Matthew Perry
75dcb7c149
move rio commands to individual files
2016-03-21 18:39:31 -04:00
Sean Gillies
fbd74c2e7f
Add a force_overwrite option.
...
Plus some consolidation of existing options.
Closes #539
2016-01-11 15:32:05 -07:00
Brendan Ward
15772d8d33
Refactor of features tests
2015-11-08 20:25:36 -08:00
Matthew Perry
432302a6e6
implement option 3, change default instead of argument
2015-09-18 09:48:59 -04:00
Johan Van de Wauw
5c13f6d40c
Adjust test to work well on i386
2015-08-17 20:46:11 +02:00
Brendan Ward
d2cb5a2349
updated flags
2015-04-20 20:29:45 -07:00
Brendan Ward
faced7fde8
Refactored rio extract to rio mask and handling of stdin
2015-04-15 22:58:19 -07:00
Brendan Ward
89b84b3e6d
Added rio extract command, minor refactoring of _base window handling
2015-04-14 09:03:24 -07:00
Sean Gillies
343c125ad4
Change --raw to --not-masked, update read's docstring.
...
Also change warnings in rio-rasterize to click.echo(err=True).
2015-04-07 21:28:30 -06:00
Sean Gillies
246bc48973
Merge branch 'master' into ship-shape-rio-shape
2015-04-07 15:06:17 -06:00
Sean Gillies
b5dce02abb
Better docstring, 100% coverage of rio.features
...
Also change read_band() to read() in tests, pep8 corrections.
2015-04-07 10:45:56 -06:00
Sean Gillies
2ef9947ecd
Enhancements for rio-shapes.
...
Closes #316 .
Also avoid unnecessary warnings about GDAL style transforms.
2015-04-06 13:20:01 -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
774f898753
Added error for GeoJSON out of bounds of existing or --like raster
2015-02-05 21:19:38 -08:00
Brendan Ward
3823b075e9
Added rio-rasterize
2015-02-04 22:06:15 -08:00
Sean Gillies
1091a69eea
Proper application of nodata switch for all cases.
...
Plus tests to get to 100% coverage.
2014-12-30 13:27:41 -07:00