11 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
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
Alan D. Snow
1f521b9162
CI: Use ghcr.io/osgeo/gdal docker image (#2803) 2023-04-03 20:33:00 -05: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
Alan D. Snow
797e94fba1
ENH: Allow specifying PYTHON_VERSION in Dockerfile (#2342) 2022-06-21 19:38:36 -05: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
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
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