390 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
Adam J. Stewart
addfeda0a8
Docs: remove blank rio options docs (#3348)
* Docs: remove rio options documentation

* Add rio options docs

* Simpler documentation structure

* Try to add header

* Change maxdepth

* Change maxdepth

* Change maxdepth

* Back to original PR
2025-09-06 20:55:13 -05:00
Adam J. Stewart
0e78687d17
Docs: remove documentation of hidden modules (#3350) 2025-06-05 06:48:51 -05:00
Adam J. Stewart
7764245339
Docs: remove docs for rasterio._loading (#3344) 2025-05-20 07:11:48 -05:00
Adam J. Stewart
9f04798634
Docs: fix .. note:: directive (#3347) 2025-05-20 07:06:16 -05:00
Adam J. Stewart
1534d07450
Docs: update conf.py with modern Sphinx syntax (#3343) 2025-05-19 17:28:57 -06:00
tveness
09acc0cab4
Update example with correct pixel ordering (#3337) 2025-05-09 14:50:03 -06:00
Sean Gillies
35f6fbe344
Update switch.rst (#3318)
Expand on warnings against importing gdal and rasterio together.
2025-03-03 11:20:19 -07:00
Christian Clauss
7a741ee370
Fix typos discovered by codespell (#3264)
* Fix typos discovered by codespell

* crasher

Co-authored-by: Sean Gillies <sean.gillies@gmail.com>

---------

Co-authored-by: Sean Gillies <sean.gillies@gmail.com>
2024-11-28 20:09:20 -07:00
Andrea Giudiceandrea
c20ed3b354
Docs: avoid to import rasterio if you use the rio interactive inspector (#3177) 2024-09-29 18:19:55 -06:00
Alan D. Snow
fd4163d4b5
DEP: GDAL 3.5+, numpy 1.24+ (#3166)
* DEP: Python 3.10+, GDAL 3.5+, numpy 1.24+

* Apply suggestions from code review

* DEP: GDAL 3.5+, numpy 1.24+

* Fix

* remove python 3.13 from conda matrix

---------

Co-authored-by: Sean Gillies <sean.gillies@gmail.com>
2024-09-09 21:59:11 -06:00
Sebastien Tremblay-Johnston
c2acc82ed2
docs: 📝 clarify usage of rpc_height in RPCTransformer usage example (#3158)
* docs: 📝 clarify usage of rpc_height in RPCTransformer usage example

Detail using a constant height offset via `rpc_height` keyword argument in instantiation of transformer.

* Apply suggestions from code review

Co-authored-by: Batuhan Kavlak <batuhan.kavlak@up42.com>

---------

Co-authored-by: Sean Gillies <sean.gillies@gmail.com>
Co-authored-by: Batuhan Kavlak <batuhan.kavlak@up42.com>
2024-09-06 11:27:52 -06:00
Sean Gillies
03464e721b
Document use of rasterio.band() shortcut (#3147) 2024-08-26 12:21:11 -06:00
Sean Gillies
7629d39f32
Add an admonition about fork to the concurrency doc (#3127)
Resolves #2979
2024-08-05 13:57:29 -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
35a5906f57
Add a rio create command. (#3023)
* Add a rio create command.

Resolves #3021.

* Eliminate deprecated pytest.warns usage

* Add CLI doc for rio create

* Fix punctuation.

* Add bounds option for geotransform, remove duplicate nodata option.

* Warn about duplicate georeferencing
2024-02-08 16:13:30 -07:00
Sean Gillies
a3d883788f
Support writing to Python files (#2907)
* Support writing to Python files

This depends on PR #2898.

Resolves #2906.

* Update change log

* Fix PR reference

* Use CPLError to convey opener failure out of the callback

* Call CPLError with 4 arguments

* Register opener for filename and mode

Also make sure that deregistration happens on cleanup

* Remove with from test

* Update opener documentation

---------

Co-authored-by: Sean Gillies <seangillies@Seans-MacBook-Air.local>
2023-12-22 10:37:17 -07:00
Sean Gillies
6335cd7f53
Document zip, zip+https, etc 2023-12-14 09:57:42 -07:00
Sean Gillies
33a8c9436f
Update faq.rst
Add a FAQ section about "not a supported file format."
2023-10-20 12:34:07 -06:00
Sean Gillies
1c003d1986 Merge tag '1.3.9' 2023-10-19 08:37:44 -06:00
Yann-Sebastien Tremblay-Johnston
6db8f54d00 update docs usage (#2947) 2023-10-17 14:35:10 -06:00
Yann-Sebastien Tremblay-Johnston
033b6bbf42
update docs usage (#2947) 2023-10-17 14:26:32 -06:00
Sean Gillies
01d778ad96
Release 1.3.8.post1 (#2923)
* Update version and change log

* RTD version 2

* Require Cython < 3

* Remove extra _matches function

* Skip a few tests if shapely cannot be imported.

Add "python_version < '3.12'" to test's shapely requirement. There
are no shapely wheels for 3.12 yet.

* Relax numpy requirement for installation

* Add a backend section

* With build isolation

* Require setuptools >= 67.8

* Update change log, this is 1.3.8.post1

* Bump to next dev version

* Add sphinx-rtd-theme dependency

---------

Co-authored-by: Sean Gillies <seangillies@Seans-MacBook-Air.local>
2023-10-10 10:02:12 -06:00
Sean Gillies
b9716ce3c9
Python file opener VSI plugin (#2898)
* Rough draft of a new VSI plugin

Resolves #2888 maybe

* Getting closer

* Working implementation!

The missing piece was keeping a reference to opened files.

* Add more tests

* Add more documentation about opener

* Improvements based on feedback from @rouault

* Update docstrings

* Update the VSI topic in docs

* Don't accept fsspec OpenFile instances as opener

Instead, we'll make a way for rasterio.open to accept them as the
"fp" positional argument

* Store contexts of vsipyopener file objects

Eliminates the fsspec OpenFile special case

* Strip file mode for the zipfile case

* Update rasterio/_vsiopener.pyx

Co-authored-by: Alan D. Snow <alansnow21@gmail.com>

---------

Co-authored-by: Sean Gillies <seangillies@Seans-MacBook-Air.local>
Co-authored-by: Alan D. Snow <alansnow21@gmail.com>
2023-08-31 11:46:00 -06:00
Sean Gillies
5168279695
Migrate to RTD v2 (#2904)
* Migrate to RTD v2

* Copy config file from shapely

* Add cython and numpy to conda env

---------

Co-authored-by: Sean Gillies <seangillies@Seans-MacBook-Air.local>
2023-08-28 09:58:41 -06:00
Sean Gillies
ccca0cb9be Merge tag '1.3.7' into main 2023-05-22 18:05:41 -06:00
Sean Gillies
c2e9e22b83
Add rio-blocks documentation (#2835)
* Add rio-blocks documentation

Remove notes about additions before 1.0.

Resolves #2570

* Note fix for #2570

* Update change log

* It's rio blocks, no rio shapes
2023-05-18 17:50:06 -06:00
Sean Gillies
6d21d4194b
Update installation.rst
Update based on the fresher instructions in the maint-1.3 branch.
2023-05-10 16:42:32 -06:00
Sean Gillies
9d9a6f3996
Update installation.rst
--no-binary rasterio
2023-05-10 16:38:17 -06:00
Sean Gillies
e056a3ee11
Update installation.rst
Updated installation instructions based on the refreshed fiona 1.9 instructions.
2023-05-10 16:36:48 -06:00
Sean Gillies
ca5b48c5d8
Update installation.rst
Also for OS X
2023-05-10 09:02:34 -06:00
Sean Gillies
b91ae63021
Update installation.rst
Recommend --no-binary rasterio when installing from an sdist.
2023-05-10 09:01:48 -06:00
jbutle55
3c91e032aa
Fix quickstart documentation mixing up column and row position of matrix. Fix for issue #2582 (#2813) 2023-04-26 19:00:31 -06:00
Alan D. Snow
c84d8db010
DOC: Consolidate intallation instructions (#2793) 2023-03-27 19:03:45 -05:00
Alan D. Snow
62fe00a387
DOC: Add tips for conda installation (#2792)
* DOC: Add tips for conda installation
---------

Co-authored-by: Pieter Roggemans <pieter.roggemans@gmail.com>
2023-03-27 19:03:01 -05:00
Alan D. Snow
443e3dd406
DOC: Add note about PROJ_DEBUG in debug error documentation (#2794) 2023-03-18 07:54:54 -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
Sean Gillies
6bb3e52e19 Merge tag '1.3.5' into main 2023-01-25 14:05:58 -07:00
Sean Gillies
d4fc803b74 Add an admonition to topics/windowed-rw.html#reading
Resolves #1242
2023-01-23 14:22:05 -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
Mateo
ec3b0cae2d
Fixed (row, col) to (col, row) in Dataset Georeferencing section (#2584) 2022-11-10 08:59:03 -06:00
Matthias Daues
5cf71dc806
Add a comment on dtype = int8 (#2577)
Raster data of dtype = int8 leads to an error message from pprint, which requires the data to be one of the following:
int16, int32, uint8, uint16, float32
I added a comment catching this error, which can be solved by casting the data: data = data.astype('int16')
2022-09-26 18:58:42 -06:00
Alan D. Snow
713a751197
DOC: Use sphinx-click for CLI documentation (#2574) 2022-08-29 12:43:26 -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
125340b74b
DOC: Improve links & add Band to docs (#2537) 2022-08-09 10:32:34 -06:00
Alan D. Snow
7cf19395f7
ENH: Add support for PROJ_DATA environment variable (#2530) 2022-08-02 17:24:30 -04:00
snowman2
38ad052cc2 DOC: Fix header in error handling 2022-07-23 19:46:25 -05:00
Alan D. Snow
c17bc35a80
DOC: Add intersphinx for matplotlib & numpy (#2527) 2022-07-21 16:52:22 -06:00