* 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>
* 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
* 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>
* 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>
* 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>
* 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>
* 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
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')
* 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
* add checks in order to warn agaisnt incorrect source CRS when using RPCs to reproject
* use .from_string to be consistent with _calculate_default_transform
* raise error instead
* fix test
I'm proposing some intermingled updates to this section:
1. _New gist links for outputs_: the previously-linked mapbox classic style is now deprecated.
2. _Removal of `geojsonio` invocation_: geojson.io does not accept piped `.geojsonl`
3. _Use of the `--collection` flag_: I think it's correct to have geojsonl as the default output for various reasons, but for purposes of displaying the example results I've set the commands to output feature collections, and added a note for clarification.