1998 Commits

Author SHA1 Message Date
Sean Gillies
f0d3eb0bfb Fix last lingering window errors 2017-06-28 15:05:16 +02:00
Sean Gillies
2c1d7c5377 Brendan was right about how to guard/deprecate windows 2017-06-17 09:33:02 +02:00
Sean Gillies
598f701c36 Delete "or tuple" in docstrings 2017-06-16 17:30:50 +02:00
Sean Gillies
361112e825 Refactor and test improvements
Traded the `int_reshape` function for a `round_shape` method on
the Window class with better docs and clearer semantics.
2017-06-16 17:20:15 +02:00
Sean Gillies
56a6eba992 Add hypothesis to test extras 2017-06-12 16:53:13 +02:00
Sean Gillies
7755c65fed Update change log, version, fuzz a test 2017-06-12 16:36:41 +02:00
Sean Gillies
731aa86f3a xfail for GDAL < 2.2 2017-06-12 13:15:25 +02:00
Sean Gillies
e3d0ab29d7 Improve consistency of bounds handling. 2017-06-12 11:21:38 +02:00
Sean Gillies
d7ea5bfbfe xfail some pixel value senstivie tests when gdal < 2 2017-06-11 17:14:29 +02:00
Sean Gillies
b8b5df23b9 Add deprecation warning for old style range tuples 2017-06-11 16:15:02 +02:00
Sean Gillies
b0affb09b4 Check that str(dtype) is in our dict 2017-06-11 14:16:32 +02:00
Sean Gillies
a7af809757 Add attrs to requirements 2017-06-11 09:52:40 +02:00
Sean Gillies
3089c728da New impl for Window class
An offset and length representation of windows avoids unnecessary
additions and subtractions that can lead to loss of precision.

A consequence is that we can no longer assert equality between
instances of Window and range tuples because Window no longer
subclasses tuple.

Rasterio is now ready for floating point windows.
2017-06-10 18:42:49 +02:00
Sean Gillies
f3938ad07b Merge branch 'master' into float-windows 2017-06-07 17:35:06 +02:00
Sean Gillies
8ea7bfa45b Update WarpedVRT topic and indexes 2017-06-07 17:23:18 +02:00
Sean Gillies
dbd389c483 Update change log and version. 1.0a9 2017-06-02 08:56:27 +02:00
Sean Gillies
a118f17664 Merge pull request #1071 from mojodna/warpedvrt-target-dimensions
WarpedVRT with target dimensions
2017-06-01 17:53:00 +02:00
Sean Gillies
3bc5b5b8ca Switch to pytest.warns() 2017-06-01 17:52:10 +02:00
Sean Gillies
5a25c8fe6e Round windows to get array shape 2017-06-01 14:27:59 +02:00
Seth Fitzsimmons
a374761ba6 Set DstGeoTransform 2017-05-31 11:49:38 -07:00
Seth Fitzsimmons
e940d52eaf Set pTransformerArg 2017-05-31 09:33:12 -07:00
Sean Gillies
1f3514ea30 Merge pull request #941 from mapbox/target-aligned-pixels
[wip] Target align pixels
2017-05-31 11:12:41 +02:00
Sean Gillies
434bd3a4cf Merge pull request #1069 from mojodna/window-precision
Expose precision kwarg on source.window
2017-05-31 11:11:39 +02:00
Sean Gillies
2547fe12d0 Merge pull request #1068 from mojodna/patch-1
Typo: collectons → collections
2017-05-31 11:10:30 +02:00
Sean Gillies
c518b8309c Make sure float values make it to GDAL 2017-05-31 09:56:27 +02:00
Sean Gillies
5bc7ff3107 Merge pull request #1070 from mapbox/crs-wkt
+ CRS.from_wkt()
2017-05-31 08:04:09 +02:00
Kevin Wurster
ea8ce24ee8 + CRS.from_wkt() 2017-05-30 23:38:01 -04:00
Seth Fitzsimmons
3c593b1849 Expose precision kwarg on source.window 2017-05-30 18:37:29 -07:00
Seth Fitzsimmons
f378475adb Misc cleanup 2017-05-30 18:21:51 -07:00
Seth Fitzsimmons
09b6ac6d29 Expose warped VRT functionality w/ target dimensions
GDALAutoCreateWarpedVRT handles most of the setup (as it wraps
GDALCreateWarpedVRT), so some of it needs manual initialization.
2017-05-30 18:21:51 -07:00
Seth Fitzsimmons
0203421877 Set up band info in warp options 2017-05-30 18:21:51 -07:00
Seth Fitzsimmons
c235a62288 Typo: collectons → collections 2017-05-30 17:48:04 -07:00
Sean Gillies
7bd56889c6 Merge pull request #1058 from mapbox/crs-none
Use `None` for undefined CRS instead of `CRS()`
2017-05-29 09:01:06 +02:00
Sean Gillies
2fed46302a Merge branch 'master' into crs-none 2017-05-29 08:49:59 +02:00
Sean Gillies
86f9368881 Raise CRSError as last resort in set_crs() 2017-05-29 08:35:36 +02:00
Kevin Wurster
c0bc80d46d Point to the correct ticket. 2017-05-28 14:20:10 -04:00
Sean Gillies
77f9a66dcb Merge pull request #1064 from brendan-ward/fix_min_dtype
Fixed bug in dtypes.get_minimum_dtype()
2017-05-27 10:13:26 +02:00
Brendan Ward
e555ccdc48 Fixed bug in get_minimum_dtype() and added tests 2017-05-26 21:57:46 -07:00
Sean Gillies
1efdf180b5 Merge pull request #1061 from mapbox/issue1056
Add test for fix
2017-05-26 12:52:05 +02:00
Sean Gillies
3602216e85 Add test for fix
Resolves #1056
2017-05-25 23:22:49 +02:00
Matthew Perry
cb31f493a6 Merge pull request #1060 from mapbox/cover-osr-equiv
add tests for OSR equivalence
2017-05-25 07:52:27 -06:00
Sean Gillies
b3b01e07e6 Add a test of using an LZW-compressed tiff in memoryfile 2017-05-25 15:46:59 +02:00
Matthew Perry
bcd35c537e add tests 2017-05-25 07:04:34 -06: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
Sean Gillies
2866ea82d6 Use None for undefined CRS instead of CRS()
Resolves #1057
2017-05-24 13:16:50 +02:00
Sean Gillies
c8f80e4b0a Merge pull request #1055 from mojodna/patch-2
Typo indicies → indices
2017-05-24 12:11:31 +02:00
Seth Fitzsimmons
3823b51cfa Typo indicies → indices 2017-05-23 15:42:43 -07:00
Sean Gillies
4cbc12f38f Merge branch 'master' of github.com:mapbox/rasterio 2017-05-23 22:00:31 +02:00
Sean Gillies
58281b8045 Update warped VRT topic doc 2017-05-23 21:59:21 +02:00
Matthew Perry
dda4b82347 Merge pull request #1054 from mapbox/warnings-no-output
pytest warnings
2017-05-23 08:08:09 -06:00