Ryan Grout
da7fd4d0f5
Raise exception when CRS differs during merge ( #2740 )
2023-02-13 08:36:43 -06:00
Ryan Grout
16c800e175
BUG: Resolve get_minimum_dtype with mixed dtype lists ( #2734 )
...
* Handles mixed type lists.
* Use asanyarray to be friendly to array subclasses like MaskedArray.
2023-02-06 09:14:55 -06:00
Alan D. Snow
4b70505301
LNT: Address flake8 import complaints ( #2739 )
2023-01-26 16:17:39 -06:00
Bas Couwenberg
f29f4d0161
Fix ImportError with unreachable http_proxy. ( #2737 )
2023-01-26 15:44:17 -06:00
Sean Gillies
6bb3e52e19
Merge tag '1.3.5' into main
2023-01-25 14:05:58 -07:00
Alan D. Snow
fd48539e46
BUG: Update write_mask to accept numpy booleans ( #2707 ) ( #2732 )
...
Co-authored-by: Jan Žák <zj@zakjan.cz>
2023-01-24 21:13:50 -06:00
Sean Gillies
89b4bd24c7
Add missing rio-env tests and reformat command module
2023-01-24 10:52:58 -07:00
Sean Gillies
c6949887d6
Add missing tests for rio-transform, and docstring
...
Resolves #1329
2023-01-24 10:29:14 -07:00
Sean Gillies
16c6bc784f
Use a GDAL transform in test_deprecated.py
2023-01-18 09:50:17 -07:00
Sean Gillies
2fb7802b42
Use a GDAL transform in test_deprecated.py
2023-01-18 09:44:47 -07:00
Jan Žák
caff38c7c0
BUG: Update write_mask to accept numpy booleans ( #2707 )
2023-01-11 13:31:27 -06:00
Ryan Grout
0020f79f52
TST: Fix numpy deprecation warning ( #2704 )
2023-01-11 13:29:37 -06:00
Sean Gillies
55df3c7890
Clean up MemoryFile /vsimem/ dirs recursively
2023-01-10 17:20:48 -07:00
Sean Gillies
b00a6a8a9e
Clean up MemoryFile /vsimem/ dirs recursively
2023-01-10 17:16:49 -07:00
Alan D. Snow
51efb0d7a8
LNT: Use flake8 to find undefined variables & unused imports ( #2693 )
2023-01-10 12:48:09 -06:00
Alan D. Snow
72bdbc05b4
TST: Use GDALVersion in test_gdal_version ( #2686 )
2022-12-27 13:21:12 -06:00
Alan D. Snow
840ea6305d
CLN: Remove unnecessary GDALVersion runtime checks ( #2685 )
...
Co-authored-by: Even Rouault <even.rouault@spatialys.com>
2022-12-27 13:20:54 -06:00
Alan D. Snow
e5012df1d6
CI: Update GDAL versions in test matrix ( #2679 )
2022-12-17 07:15:02 -06:00
Sean Gillies
d1def87354
BUG: Fixes for unsigned access to S3 ( #2669 ) ( #2688 )
...
* BUG: Fixes for unsigned access to S3 (#2669 )
* Add parse_bool helper method
This is for parsing boolean environment variables
* Fix s3_endpoint config when unsigned
S3 endpoint configuration was not propagated to GDAL when accessing
public buckets.
* Allow AWSSession construction without boto3
Should be able to use AWSSession even when boto3 is not installed so
long as unsigned access is used.
AWSSession is responsible to configuration of things like region and
endpoint url, so it's needed even when accessing public buckets without
relying on environment variables. `boto3` dependency is only needed for
obtaining credentials though.
* Convert parse_bool test to parametrize for clarity
* Update change log
Co-authored-by: Kirill Kouzoubov <Kirill888@gmail.com>
2022-12-16 15:06:44 -07:00
Sean Gillies
1c01599edc
BUG: ignore blockysize when converting untiled to tiled ( #2678 ) ( #2687 )
...
* BUG: ignore blockysize when converting untiled to tiled (#2678 )
* Update change log
Co-authored-by: Alan D. Snow <alansnow21@gmail.com>
2022-12-16 14:36:22 -07:00
Alan D. Snow
b89c1942ad
TST: Update warp tests for GDAL 3.7 ( #2680 )
2022-12-15 09:27:21 -06:00
Kirill Kouzoubov
84f3bbad70
BUG: Fixes for unsigned access to S3 ( #2669 )
...
* Add parse_bool helper method
This is for parsing boolean environment variables
* Fix s3_endpoint config when unsigned
S3 endpoint configuration was not propagated to GDAL when accessing
public buckets.
* Allow AWSSession construction without boto3
Should be able to use AWSSession even when boto3 is not installed so
long as unsigned access is used.
AWSSession is responsible to configuration of things like region and
endpoint url, so it's needed even when accessing public buckets without
relying on environment variables. `boto3` dependency is only needed for
obtaining credentials though.
* Convert parse_bool test to parametrize for clarity
2022-12-12 19:59:31 -06:00
Alan D. Snow
74a257aa81
BUG: ignore blockysize when converting untiled to tiled ( #2678 )
2022-12-12 19:58:08 -06:00
Even Rouault
e4ecc02b9e
Take into account GDAL >= 3.7 GDT_Int8 signed int8 datatype ( fixes #2635 ) ( #2656 )
2022-11-20 22:30:33 -06:00
Alan D. Snow
50db10b7c1
TST: Update S3 paths ( #2647 )
2022-11-18 11:20:53 -06:00
Alan D. Snow
7d1549128d
TST: Update S3 paths ( #2647 )
2022-11-17 20:56:31 -06:00
Even Rouault
91d326edc7
dtypes.get_minimum_dtype(): make it return int8 if min_value >= -128 and max_value <= 127 ( fixes #2598 ) ( #2657 )
2022-11-17 20:55:51 -06:00
Sean Gillies
06f28449eb
Merge tag '1.3.4' into main
2022-11-16 20:49:35 -07:00
snowman2
71b9db9802
TST: Update mock_debian for GDAL 3.1-3.7
2022-11-13 19:30:33 -06:00
Alan D. Snow
c5f29c3ba3
Merge pull request #2641 from snowman2/gdal_latest
...
CI: Test latest GDAL & update tests
2022-11-10 10:48:23 -06:00
Alan D. Snow
036a5b0dd7
BUG: pull AZURE_STORAGE_ACCESS_KEY from env if not provided as arg ( #2637 ) ( #2643 )
...
Co-authored-by: Henry Rodman <henry@ncx.com>
2022-11-10 10:47:32 -06:00
Henry Rodman
d270bdef88
BUG: pull AZURE_STORAGE_ACCESS_KEY from env if not provided as arg ( #2637 )
2022-11-10 10:40:25 -06:00
snowman2
cdb7d3922e
TST: add expected values to test_reproject_resampling_alpha & test_reproject_resampling for GDAL 3.6
2022-11-09 20:49:55 -06:00
Scott Staniewicz
23e05271a6
BUG: add get_data_window for nodata=nan, fixes #2628 ( #2629 )
2022-11-09 10:43:23 -06:00
Elliott Sales de Andrade
d6dabdb43f
Don't use fixed port for test server ( #2619 )
2022-11-09 10:42:19 -06:00
Elliott Sales de Andrade
3503b19ad6
Don't use fixed port for test server ( #2619 )
2022-11-09 10:36:53 -06:00
Scott Staniewicz
34c4f3d2b9
BUG: add get_data_window for nodata=nan, fixes #2628 ( #2629 )
2022-11-09 10:36:01 -06:00
Sean Gillies
3debd662c2
Merge branch 'maint-1.3' into main
2022-10-19 15:40:35 -06:00
Sean Gillies
2f0abbf0c8
Fully support tiled=False and blockysize ( #2615 )
...
Resolves #2599
2022-10-19 13:32:59 -06:00
Sean Gillies
ac69d215a9
Set position of the underlying stream to 0 in _filepath
...
Resolves #2550
2022-10-10 11:35:10 -06:00
Alan D. Snow
7ff28e4c1f
TST: Skip test_issue2353bis for GDAL 3.5+ ( #2608 )
2022-10-10 09:36:51 -06:00
Alan D. Snow
39f874418d
BUG: parse path without modifying query ( #2603 )
2022-10-07 13:22:36 -05:00
Sean Gillies
4b1e369069
Remove _loading, copy it into __init__ ( #2594 )
...
* Remove _loading, it's done in __init__ now
Resolves #2593
* import sys
* Correct imports
* We already require python >= 3.8
* Add PR number to change log
2022-09-26 18:02:54 -06:00
Alan D. Snow
24db5b3670
ENH: Add support for writing GeometryCollection ( #2581 )
2022-09-08 14:38:05 -05:00
Alan D. Snow
7c1f35b509
Pass along strides to GDAL in MemoryDataset #2511 ( #2512 ) ( #2558 )
...
* Pass along strides to GDAL in MemoryDataset #2511
when given non-contigous array on output pass along strides
information to GDAL.
* Add test for #2509
* Update changes.txt
Co-authored-by: Kirill Kouzoubov <Kirill888@gmail.com>
2022-08-19 09:11:52 -06:00
Alan D. Snow
21a1622086
ENH: Add support for PROJ_DATA environment variable ( #2530 ) ( #2557 )
2022-08-19 09:11:40 -06:00
Alan D. Snow
570b169666
get_data_window cleanup ( #2510 ) ( #2559 )
...
* Cleaner get_data_window implementation.
* Add tests.
* Separate assertions into distinct tests.
Co-authored-by: Ryan Grout <groutr@users.noreply.github.com>
2022-08-19 09:11:11 -06:00
Alan D. Snow
ee75596d16
Fix broadcasting of coords in rasterio.transform.xy ( #2538 ) ( #2560 )
...
* broadcast arrays to 1d arrays
* update ensure_arr tests for broadcasting coordinates
* make tests/test_transform.py a staticmethod
* add tests for ensure_arr_input that use zs
* change _ensure_arr_input to return numpy arrays, not lists
* transform ValueError into TransformError
Co-authored-by: Eric Hutton <mcflugen@users.noreply.github.com>
2022-08-19 09:10:49 -06:00
Sean Gillies
dc6b868286
Merge tag '1.3.1' into main
2022-08-17 21:59:02 -06:00
Ryan Grout
3001580c75
get_data_window cleanup ( #2510 )
...
* Cleaner get_data_window implementation.
* Add tests.
* Separate assertions into distinct tests.
2022-08-16 10:33:23 -06:00