* Add in memory raster that subclasses DatasetBase.
* Remove unused variables.
* Add r+ to modes setting georeferencing.
* Fix dtype argument.
* Use InMemoryRasterArray
* Use InMemoryRasterArray in warp.
* Eliminate unnecessary copy.
* Add missing word.
* Use InMemoryRasterArray in fillnodata
* Add array interface method.
* Resolve fillnodata test failure.
* Remove unnecessary copy.
* Cleaner array handling.
Make sure _array is always an array, but only copy when needed/wanted.
* Rename InMemoryRaster to MemoryDataset.
* Add internal use only comment to MemoryDataset.
* Follow ups on #2301
* Fix parameter type in docstring and whitespace
Co-authored-by: Ryan Grout <ryan@ryangrout.org>
add additional monkeypatch
skip on windows for now, unclear what intent of test is
removed third slash that is the anchor ('/') on posix but would be 'C' on windows
make ParsedPath.from_uri consistent with as_posix usage in init
fix tests
* Rounding like gdal-merge as suggested by @groutr
* Use only GDAL's rounding convention everywhere in rasterio
* Eliminate old window rounding implementations
* initial
* add TransformDirection enum, fix cython compiler issues
* make RPCTransformWarning more generic
* include GDALGCP* in gdal.pxi
* add GCPTransformer
* typo
* move xy and rowcol to TransformerBase
* change existing transform methods to use new *Transformer classes
* normalize transform direction, update docstrings
* update docstrings
* make subsubheadings of Coordinate Transform subheading
* Add new docs transform topic
* add to index
* update docstrings
* update docstring
* Add rasterio.rpc to docs
* update georeferencing.rst
* update transform.srst
* relax isinstance check for RPCTransformer
* catch invalid transform input to get_transformer
* replace None with identity transform so we test the correct ValueError
* update AffineTransformer
* add tests
* rename method to map singleton coordinate to array-like and validate all coordiantes have same dimensions
* update test
* add more tests
* update docstring of GCPTransformer init
* fix copy+paste error
* relax check on xy transformed values due to floating point precision
* remove unused imports
* fix tests and address comments
Co-authored-by: Sean Gillies <sean@mapbox.com>
* Raise WarpOperationError (new) if ChunkAndWarpMulti/Image fail
We've been hiding these errors and allowing chunks of a warp
operation to pass with no data copied to the output.
Note that the error message isn't very detailed. In a lot of
cases it's a generic "TIFF read block error" and doesn't surface
root causes like server errors.
* Temporarily home in on one test
* Make 503 more predictable
The exact request range varies a little bit with GDAL version
* Skip test on pythons < 3.7
See https://stackoverflow.com/a/54624956 for discussion of the
memory optimizations that might complicated things. Numpy provides
methods to check for memory sharing but I don't think we benefit
from using them.
* Switch from OSRAutoIdentifyEPSG to OSRFindMatches
Resolves#2273
* Keep older code in _matches for use with GDAL versions < 3
* Save all matches for an authority in order
* Generalize assertion on CRS WKT from gdalinfo