Sean Gillies
2fed46302a
Merge branch 'master' into crs-none
2017-05-29 08:49:59 +02:00
Sean Gillies
3602216e85
Add test for fix
...
Resolves #1056
2017-05-25 23:22:49 +02:00
Sean Gillies
15ec8a35b9
Restore CRSError in _base
...
Also fix rare crasher in _reproject when osr pointer is reused
without being set back to NULL.
2017-05-24 16:48:08 +02:00
Kevin Wurster
ef55552d96
Raise an exception if GDAL >= 2.2.0 and transform_geom(antimeridian_cutting=False).
2017-05-12 19:23:12 -04:00
Sean Gillies
218d3740d4
Another warp test improvement
2017-05-02 14:26:01 +02:00
Sean Gillies
aefa7fb7f8
Resolves #1023
2017-05-02 12:34:13 +02:00
Kevin Wurster
57cc276757
Remove unnecessary 'rasterio.Env()' calls.
2017-04-13 19:58:21 -04:00
Sean Gillies
9e7ede0337
Switch to floor division
2017-01-17 11:08:34 +01: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
f8caf692be
try a different uninvertable projection
2016-12-06 10:08:26 -04:00
Matthew Perry
06c440474d
densify bounds test to use epsg:2163
2016-12-05 17:24:26 -04:00
Sean Gillies
3aeae52ab3
Add --gcps to rio-info
...
Either simple JSON representation or GeoJSON, one object or seq.
With option to round, as in rio-shapes.
This work also caught a bug in transform_geom(), see #922 .
2016-11-04 14:31:24 +01:00
Sean Gillies
61dd07dddc
Optionally use GCPs when computing reprojection params
...
Also add a shortcut to InMemoryRaster which can avoid large
unnecessary memory allocations for arrays that are never used.
2016-10-21 11:53:37 +02:00
Sean Gillies
bb3ee77086
Pass line and band space parameters properly
2016-09-28 14:52:00 +02:00
Sean Gillies
273352e2d5
Add test for reprojection of a view
...
Towards resolving #900
2016-09-28 11:02:29 +02:00
Sean Gillies
c09183c6c4
Merge branch 'master' into warp-one
2016-07-08 15:17:53 -06:00
Matthew Perry
9d90842a1f
merge master
2016-06-30 13:29:51 -04:00
Sean Gillies
807db5136f
Warp all bands using an approximate transformer
...
As suggested in #569
2016-06-29 17:31:27 -06:00
Kevin Wurster
ef952def3b
Merge master.
2016-06-14 21:09:27 -07:00
Kevin Wurster
a71f3f0f1f
Explicitly construct Affine() transforms rather than instantiating from Affine.from_gdal()
2016-06-14 10:44:03 -07:00
Matthew Perry
595aefbd43
drop additional methods for gdal1.9
2016-06-11 09:50:56 -04:00
Matthew Perry
b3ecfa17e3
skip unsupported resampling methods in GDAL1.x
2016-06-11 09:35:15 -04:00
Matthew Perry
a9c154ccf4
cleanup warp tests, no need to warp twice
2016-06-11 08:55:10 -04:00
Matthew Perry
4cf3fc0e3c
Use CHECK_WITH_INVERT_PROJ=true in default Env
2016-06-11 08:46:06 -04:00
dnomadb
d0aed03a0d
removing xfail; comment cleanup
2016-06-07 12:01:05 -07:00
dnomadb
7247f375d6
tweaking test
2016-06-06 13:50:05 -07:00
dnomadb
4b59991340
array warping test
2016-06-06 13:21:15 -07:00
dnomadb
fb87282a99
adding tests for initialization of dest nodata
2016-06-06 13:03:21 -07:00
Matthew Perry
5cb765a511
merge origin/master
2016-06-03 18:25:52 -04:00
Matthew Perry
d96e11a71c
use rasterio.Env
2016-06-03 06:22:26 -04:00
Matthew Perry
a5f4bdd96a
Merge remote-tracking branch 'origin/master' into reproj-ident
2016-06-03 06:21:37 -04:00
Matthew Perry
49f28b0f37
use rasterio.Env
2016-06-03 06:21:33 -04: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
Matthew Perry
e11b375870
pass on invert proj 'errors' and xfail tests for bug #614
2016-06-02 16:17:31 -04:00
Matthew Perry
25670a9348
translate the affine by small epsilon if it is identity, fixes #674
2016-06-02 14:35:59 -04:00
Matthew Perry
cb81e55cdc
xfailing test for identity matrix reproject
2016-06-02 13:21:33 -04:00
Matthew Perry
4006414d75
ensure reproject doesn't segfault with crs None
2016-06-02 13:20:19 -04: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
Sean Gillies
9056e191de
Add tests for unsupported algos
...
Also reverted to ordinary ValueError since you won't handle
invalid resampling values in a special way.
2016-04-09 09:19:52 -06:00
Matthew Perry
d037a15157
update tests to new gdal-calculated resolutions
2016-03-16 15:20:13 -04:00
Sean Gillies
3eb489ebd0
Guard against invalid resampling ids
2016-03-08 11:58:34 -07:00
Sean Gillies
e3dd925d73
Call warper methods with cpl_errs
...
And add a test for exception raised when a unknown resampling alg
identifier is passed.
2016-01-20 21:46:30 -07:00
Sean Gillies
906b4ddc5b
Align inputs/outputs with rio-merge
...
This means addition of `--output` option, use of the files_inout_arg
decorator, and helpers.
Additionally, turn _warp's RESAMPLING named tuple into an int enum,
more useful in the CLI and other modules.
2016-01-20 12:09:45 -07:00
Sean Gillies
aa8c7d6da5
--bounds is output units, no need to transform
...
Also removing superfluous line in test and some empty lines.
Towards resolving #541
2016-01-15 10:55:36 -07:00
Brendan Ward
61a49ee5ef
Added support for NaN in warp.
2016-01-13 20:39:50 -08:00
Brendan Ward
ced7fa3bcd
basic rio-warp in place
2015-07-10 22:36:51 -07:00
Amit Kapadia
c51c227459
shuffle around width and height params
2015-07-01 12:18:28 -07:00
Amit Kapadia
a5c9a9cae7
consistent args throughout transform funcs
2015-07-01 11:57:58 -07:00