890 Commits

Author SHA1 Message Date
Sean C. Gillies
b5ff28add1 add_alpha=False means never add an alpha band, default is None
Resolves #1372
2018-06-12 16:27:07 -06:00
Sean C. Gillies
73ca8cfe6f Ensure VRT alpha band nodataval is set
Resolves #1371.

Also adds a few more relevant tests.
2018-06-12 16:05:29 -06:00
vincentsarago
12ab168a57 skip <gdal2 2018-06-05 17:16:11 -04:00
vincentsarago
4c537fd6d4 split test and use billinear 2018-06-05 16:49:33 -04:00
vincentsarago
10b6146469 update dataset_mask kwarg tests 2018-06-04 14:07:18 -04:00
Sean C. Gillies
ce09606598 Require GDAL >= 2.1 for test 2018-06-04 06:37:42 -07:00
Sean C. Gillies
2d3eb2ba9d Add test of deprecated params 2018-06-03 23:00:32 -07:00
Sean C. Gillies
75e5ae29b6 Do the right thing for sources with .msk and no nodata
The right thing being to add an alpha band to the VRT.
2018-06-03 22:47:46 -07:00
Sean C. Gillies
14d09535b4 Skip test_warped_vrt_dst_alpha for GDAL < 2.1 2018-06-03 21:29:00 -07:00
Sean C. Gillies
b55c6faaaa Straighten out warped VRT nodata and masks 2018-06-03 15:32:37 -06:00
Sean C. Gillies
001dc9f413 Add dunder str method 2018-05-30 09:16:33 -06:00
Sean C. Gillies
3728f1433e CRS bug fixes, new features, and deprecations 2018-05-29 22:21:25 -06:00
Sean Gillies
a5a4b1094c
Merge pull request #1351 from mapbox/parse-path-take-2
New rasterio.path module
2018-05-25 11:30:33 -06:00
Sean C. Gillies
0538b55d46 Make block_shapes and files into lists 2018-05-25 11:27:50 -06:00
Sean Gillies
b193cc8f23
Merge branch 'master' into parse-path-take-2 2018-05-24 22:01:10 -06:00
Sean Gillies
1dca528a4a
Merge pull request #1344 from mapbox/issue1175
Make descriptions and units properties set-able, warn about deprecation of setters
2018-05-24 21:41:58 -06:00
Sean C. Gillies
1cb52c0c15 Require GDAL 2.1+ for description editing
There seems to be a subtle metadata writing issue in versions < 2.1
2018-05-24 18:50:19 -06:00
Sean C. Gillies
e49adea0aa Remove duplicate tests 2018-05-24 17:15:29 -06:00
Sean Gillies
a64f69201b
Merge branch 'master' into issue1175 2018-05-24 16:27:59 -06:00
Sean C. Gillies
e80c22923d Add set_band_unit and set_band_descriptions for rio-edit-info
Plus supporting tests.
2018-05-24 16:15:16 -06:00
Sean C. Gillies
e131d15cbd Remove kwds assertion 2018-05-24 14:57:27 -06:00
Sean C. Gillies
efee1076f8 Clean up test condition and add tests of deprecation 2018-05-24 14:38:00 -06:00
Sean C. Gillies
ba7b4f76b1 Deprecate creation kwds in profiles
Addresses concerns raised in #1332
2018-05-24 13:57:27 -06:00
Sean C. Gillies
5872ac70db Address comments
Migration guide updated, lots of documentation added, tests increased.
2018-05-23 15:53:16 -06:00
Sean C. Gillies
caddbf1611 Watch out for absolute path differences 2018-05-23 10:57:49 -06:00
Sean C. Gillies
2308aa6d5e New rasterio.path module
The signatures of all cdef class initializers in rasterio._base and
rasterio._io have changed: these method now take instance of ParsedPath
or UnparsedPath from rasterio.path and do not take strings.

New ParsedPath and UnparsedPath classes have been added to improve input
file handling and validation. The existing parse_path and vsi_path
functions have been rewritten to use these new classes and have been
moved to the new rasterio.path module. The signature of rasterio.open
has not been changed and users of Rasterio will be unaffected.

The rasterio.vfs module and its functions are being replaced by new functions
in rasterio.path.
2018-05-23 10:05:07 -06:00
Sean C. Gillies
33028b92aa Pass nodata cmd option to open call
Resolves #1345

Also exposes a bug in testing code that I have fixed. In hindsight,
it looks like we tailored the test to expect the buggy behavior.
2018-05-18 17:25:27 -06:00
Sean C. Gillies
d658a04600 Warn deprecation of all set_* methods 2018-05-18 09:38:47 -06:00
Sean C. Gillies
2e6f64334f Make descriptions, nodatavals, units set-able 2018-05-17 23:38:41 -06:00
Sean C. Gillies
09c09f5299 Moar tests and small fixes 2018-05-17 15:52:21 -06:00
Sean C. Gillies
43d3f7b4f0 Remove xfail marker, address other feedback
Also a little test cleanup
2018-05-15 11:33:35 -06:00
Sean C. Gillies
016d173ee5 Removed commented code 2018-05-11 12:29:55 -06:00
Sean C. Gillies
58b95de29b Resolves #1011
And more!
2018-05-11 11:44:41 -06:00
Sean Gillies
78b372697b
Merge pull request #1332 from mapbox/no-saved-open-opts
Do not include saved open options in a dataset's profile
2018-05-08 15:19:57 -06:00
Sean C. Gillies
7c6f398e34 Resolves #1337 2018-05-07 15:35:37 -06:00
Sean C. Gillies
271bcf8b8c case matters 2018-04-25 17:51:01 -06:00
Sean C. Gillies
7e032ad2be Photometric won't be in the profile 2018-04-25 17:18:14 -06:00
Sean C. Gillies
9f1fea66be Cleanup 2018-04-25 16:57:01 -06:00
Sean C. Gillies
a9d41e7967 Do save opening options but do not copy them to profile 2018-04-25 16:49:08 -06:00
Sean C. Gillies
07a03413c3 Comment out pdb import 2018-04-25 09:53:20 -06:00
Sean C. Gillies
f5434180b6 Do not save opening options in tags 2018-04-25 09:44:40 -06:00
Sean Gillies
cb55493d75
Merge pull request #1308 from j08lue/vrt-src-crs
WIP:Document and test src_crs and src_transform on WarpedVRT
2018-04-20 14:15:11 -06:00
Erik Seglem
7b2e9eca2b Refactor force overwrite to overwrite. 2018-04-20 14:13:35 -04:00
Jonas Sølvsteen
b1fc4c2732 remove test for src_transform again 2018-04-20 08:12:46 +02:00
Sean C. Gillies
b954d11106 Incorporate excellent feedback
* renamed variables
* improved use of test fixtures
* added support for the func's extra args and kwargs
* added an example tool
2018-04-18 10:45:08 -06:00
Sean C. Gillies
6f12290f46 count, not find 2018-04-17 12:15:42 -06:00
Sean C. Gillies
5a5faa622c Tools module, class, and tests 2018-04-17 11:50:55 -06:00
vincentsarago
a9404eef75 skip tests for < gdal22 2018-04-17 11:52:28 -04:00
vincentsarago
0b0b622714 merge with master 2018-04-16 18:59:57 -04:00
vincentsarago
eb4f5cacd4 raise BandOverviewError error 2018-04-16 18:58:37 -04:00