18 Commits

Author SHA1 Message Date
Alan D. Snow
9880c5c40f
DEP: Python 3.10+ & GDAL 3.6+ (#3440) 2025-12-05 08:47:04 -06:00
Sean Gillies
64b6fe03b7
Numpy 2 compatibility (#3061)
* Numpy 2 compatibility

* Update PR ref in change log

* Add missing vsiopener test dependencies

* Change log update
2024-04-08 16:04:02 -06:00
Sean Gillies
5db194fe99
Sidecar support for Python openers (#3032)
* Failing test with a .msk sidecar

* POC of sidecar support for Python openers

Towards resolving #3027

* Register opener for the parent directory/folder of the given URL

Handling the error cases properly gets all our tests passing again.

* Add opener adapter classes and a factory

Still a lot of redundant code here, needs refactoring.

* Remove unused import

* Don't raise exceptions when files aren't found

Just return 1 or NULL

* Add two tests of using fsspec filesystem objs and fix a bug.

* Allow testing with tiledb.VFS

* More tests of fsspec http filesystem and .msk sidecar

* Module clean up

* Add mtime to stats, docstrings to abstract class

* Expand documentation

* Reassign name_list in loop

* Return -1 on stat failure, remove useless except clauses

* Don't set an error when OpenFile doesn't resolve

* Add eof callback
2024-02-29 10:48:18 -07:00
Sean Gillies
163fa83234
Add src_geoloc_array kwarg to reproject and _reproject (#2884)
* Add src_geoloc_array kwarg to reproject and _reproject

Plus an experimental _xygrid method for datasets.

Resolves #2883

* Remove _xygrid method, switch to more direct way from rioxarray

* Skip new tests for GDAL < 3.6

* Add a test of lower resolution arrays and allow tuple input

* Make source geolocation parameters mutally exclusive

* Wire up calculate_default_transform for RPCs and geoloc arrays.

* Skip test_calculate_default_transform_geoloc_array with GDAL < 3.5
2023-12-23 17:24:10 -07: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
Karthik Venkataramani
652e6154ef
Add defaults to makefile to build docker image (#2701) 2023-01-20 09:30:48 -06:00
Sean Gillies
c3c7c69e4e Use python version in tags, renew PYTHON_VERSION after FROM 2022-06-22 09:46:29 -06:00
Sean Gillies
58b8e7095f Add a test to verify transformer COORDINATE_OPERATION option works
See #2354
2022-04-14 15:25:36 -06:00
Sean Gillies
83a7e824d0
Produce slices that don't erronously select from an array (#2434)
* Produce slices that don't erronously select from an array

By subtracting array dimensions from the slice indexes.

Resolves #2378

* Parameterize array shapes in testing Window.toslices()

* REF: bound window slices by 0 if index is negative

* Negative slices indexes are set to 0

Co-authored-by: snowman2 <alansnow21@gmail.com>
2022-04-11 10:54:26 -06:00
Sean Gillies
976c2ac49f
No more epsilon usage in transform.rowcol and window.from_bounds (#2432)
* No more epsilon usage in transform.rowcol and window.from_bounds

Responsibility is on the caller (merge.merge).

Resolves #2374

* Finish up deprecation warnings
2022-04-08 10:47:59 -06:00
Sean Gillies
5a501dad57
Rename rasterio.path to rasterio._path (#2423)
* Rename rasterio.path to rasterio._path

And add a _ to all member names.

Resolves #2365

* Warn about removal of rasterio.path

Part of #2365
2022-04-05 14:05:09 -06:00
Sean Gillies
077685a12f Update API docs. Add missing pages, remove the one for _crs. 2022-04-01 10:20:04 -06:00
Sean Gillies
8bff8a70b4
Merge _crs with crs (#2335)
* Merge _crs into crs

CRS is an extension class now, with improved documentation. The
test__crs.py file is obsolete and has been deleted.

I piggy-backed some API doc changes onto this. We now generate
API docs from scratch every time and have removed the .rst files
from the repo. The crs module now uses the embedsignature Cython
directive, which we should do for other extension modules.

* Include private modules

* Restore API docs

We'll remove them in a different branch.

* Update docs/index.rst

* Handle OverflowError from <int>code

Also repair chunks missed in rebase
2022-03-31 19:19:21 -06:00
Sean Gillies
b0d795b835 Add a dockersdist target 2022-02-04 16:23:57 -07:00
Sean Gillies
682356e40c Fix variable name for GDAL < 3.2
Resolves #2366
2021-12-15 14:19:17 -07:00
Sean Gillies
0b8723b13c
Dockerfile for local development (#2331)
* Dockerfile for local development

Inspired by #1928

* Add a "GDAL" build arg

* Switch to official GDAL images as base

Thank you for the suggestion, Vincent Sarago.

* Use working directory as a mounted volume to enable develop mode
2021-11-09 08:25:39 -07:00
Sean C. Gillies
f627e146d4 Eliminate all valid shortcut from the boundless masked case
Resolves #1449
2018-09-19 08:41:22 -06:00
Matthew Perry
78348e1d01 initial Makefile 2017-08-11 17:08:16 -06:00