* Fix error in reproject when destination is a tuple.
* Add unit test for reprojecting to specified output bands.
Co-authored-by: Sean Gillies <sean.gillies@gmail.com>
* 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>
* Update CRS of test dataset to be precisely EPSG:32618
Leaving two new GDAL functions in gdal.pxi for future use.
* Update builds to use PROJ 7.2.1 and GDAL 3.2.1
* [warp_add_rpcs] initial update to reproject to support rpcs
* catch kwargs in _calculate_default_transform
* fix allocation of crs to wrong dataset (was src, now dst) in _calculate_default_transform. Specifically where we went from GDALCreateGenImgProjTransformer -> GDALCreateGenImgProjTransformer2
* pass kwargs to calculate_default_transform (to be passed to transformer
* update docstrings
* update documentation
* add debug messages for kwargs used to set Transformer options
* Don't capitalize RPC_DEM transformer option value, as it might be a path
* includes existing changes from https://github.com/mapbox/rasterio/pull/2030, better support for computation of calculate_default_transform with just gcps or rpcs
* adds testse
* Remove an empty line
Mainly to trigger a new build on travis-ci.com
* add new test file (Largely derived from RGB.byte.tif)
* Fix incorrectly encoding RPC metadata as transform options
Was checking for transformer option RPC_DEM in the RPC metadata by mistake
Co-authored-by: Sebastien Tremblay-Johnston <sebastien.tremblayjohnston@mdacorporation.com>
Co-authored-by: Sean Gillies <sean@mapbox.com>
Co-authored-by: Sean Gillies <sean.gillies@gmail.com>
* Refactor to make data search testable
* Test ensure_env with faked sys.prefix and _env file location
* raising=False
* Don't call fixture function, use it as a fixture
* Re-applying PR #1546 to maint-1.0 via patch (#1549)
* Refactor to make data search testable
* Test ensure_env with faked sys.prefix and _env file location
* raising=False
* Don't call fixture function, use it as a fixture
* Add function to get context if needed
* added support for ESRI wkt strings - resolves issue #1537 (#1538)
* updated _handle_crswkt to use CRS.from_wkt; resolved issue #1540 (#1541)
* updated _handle_crswkt to use CRS.from_wkt; resolved issue #1540
* added test for datasetreader opening dataset with ESRI projection wkt string
* Handle GDAL's comments about WKT to PROJ conversion
* Bring Env inside methods if needed
* New test of compound CRS that was crashing 1.0.9
The results of rio-merge are much better!
Added a test of merging 4 pieces of the RGB.byte.tif file and
getting a file with the same checksums as the original.
Remove test data from sdists. Check for it when running tests and
direct users to download location. No automated download... I don't
expect many users to be running the tests from an sdist.
Closes#133.