3700 Commits

Author SHA1 Message Date
Alan D. Snow
9a711f1f06
DEP: Add Python 3.11 metadata (#2786) 2023-03-10 20:50:36 -06:00
Vincent Sarago
2a28036b38
CI: Add python 3.11 (#2612) 2023-03-10 20:48:34 -06:00
Alan D. Snow
f6b7b7636d
DEP: GDAL 3.3+, numpy 1.21+, Python 3.9+ (#2779)
* DEP: GDAL 3.3+, numpy 1.21+, Python 3.9+

* CI: Remove .travis.yml
2023-03-06 17:23:18 -07:00
dependabot[bot]
642110bd36
Bump actions/checkout from 2 to 3 (#2774)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-27 11:43:22 -06:00
Sean Gillies
6bf045cc5e Merge tag '1.3.6' into main 2023-02-13 10:25:52 -07:00
Sean Gillies
490de0f98e Add missing debug argument 2023-02-13 08:52:14 -07:00
Sean Gillies
4c01600b0e This is 1.3.6 1.3.6 2023-02-13 08:37:53 -07:00
Ryan Grout
da7fd4d0f5
Raise exception when CRS differs during merge (#2740) 2023-02-13 08:36:43 -06:00
Sean Gillies
6fd660c344
Solutions for #2747 (#2764) 2023-02-08 17:08:59 -07:00
Sean Gillies
9694114a8c
Dodge empty sequences when computing bounds. (#2761)
Plus a 30-40% speed gain by using zip.

Resolves #2745.
2023-02-08 11:56:58 -07:00
Ryan Grout
574da40bbf PERF: Avoid creating GDALEnv for affine transformations. (#2754)
* Delegate creation of GDALEnv to subclasses that actually require it.

* Create GDALTransformerBase class.

* Fix multiple inheritance issues.
2023-02-08 10:52:58 -07:00
Sean Gillies
74d130234b
Add a new StatisticsError exception class (#2760)
* Add a new StatisticsError exception class

Also make an outer `with Env():` optional when using an opened
dataset as a context manager.

Resolves #2759

* Add PR refs to the change log

* Chain the StatisticsError exception
2023-02-08 10:44:30 -07:00
Ryan Grout
d04bd00f36
PERF: Avoid creating GDALEnv for affine transformations. (#2754)
* Delegate creation of GDALEnv to subclasses that actually require it.

* Create GDALTransformerBase class.

* Fix multiple inheritance issues.
2023-02-08 10:17:21 -07: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
Sean Gillies
860869132e Restore dev version 2023-02-03 16:11:12 -07:00
Sean Gillies
0e402009c8 This is 1.3.5.post1 1.3.5.post1 2023-02-03 08:01:12 -07:00
Amit Kapadia
7e86f1b745
DOC: Document additional info for offset parameter (#2744) 2023-02-02 10:22:57 -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
Sean Gillies
b82125e615
This is 1.3.5 (#2735)
* This is 1.3.5

* Fix release date

* Bump to next dev version
2023-01-25 13:59:28 -07:00
Sean Gillies
2fbe99fab3 This is 1.3.5 1.3.5 2023-01-25 11:33:52 -07:00
Sean Gillies
37f35d6112
Ensure that imshow receives float data when adjust=True (#2733)
* Ensure that imshow receives float data when adjust=True

Resolves #2017

* Update change log
2023-01-24 20:34:43 -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
525720e5b7 Better formatting for plot.py, no other changes 2023-01-24 16:07:12 -07:00
Sean Gillies
b1a853e91f
Align offsets in rio-clip (#2729)
Was already done for height and width. Additionally, we allow
--target-aligned-pixels with --dst-bounds or --src-bounds in
rio-warp.

Resolves #1931
2023-01-24 15:45:45 -07: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
b75cd7302a Add note about dtype argument for Snuggs read
Resolves #1287
2023-01-23 14:33:21 -07:00
Sean Gillies
d4fc803b74 Add an admonition to topics/windowed-rw.html#reading
Resolves #1242
2023-01-23 14:22:05 -07:00
Ryan Grout
e46cc0374b
PERF: Minor performance improvements to dtypes (#2716)
* Standardize numpy import.

* Use np.asarray.

* Use faster scalar version of isinf and isnan.

* Avoid creating array for better performance.
2023-01-20 10:22:20 -07:00
Karthik Venkataramani
652e6154ef
Add defaults to makefile to build docker image (#2701) 2023-01-20 09:30:48 -06:00
Sean Gillies
8d4ea55e6c Fix for #2705 2023-01-18 15:59:38 -07:00
Sean Gillies
e0ec90f7b3 Update change log about test failure with new affine version 2023-01-18 09:57:18 -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
dbf75f1afd Ignore memray files 2023-01-10 17:29:27 -07: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
Idan Miara
103aa29ff2
installation.rst - update notes for Windows installation (#2709) 2023-01-08 06:40:24 -06:00
Idan Miara
ddda43a8f8
installation.rst - Update GDAL minimum version `GDAL >=1.11 -> GDAL >=3.1` as of #2448 (#2708) 2023-01-08 06:29:43 -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
Sean Gillies
cd665737eb
Handle and silence sigpipe errors (#2689)
* Handle and silence sigpipe errors

Resolves #818

* The decorator isn't needed after all.

Python ignores SIGPIPE by default. We only need to be sure we
never unintentionally catch BrokenPipeError.
2022-12-19 09:20:13 -07: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