Yann-Sebastien Tremblay-Johnston 11ae663ff4
Warp add rpcs (#2031)
* [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>
2020-11-13 18:26:58 -07:00
..
2020-11-13 18:26:58 -07:00
2016-04-28 15:26:55 -06:00
2019-12-19 15:37:59 -07:00
2018-09-14 10:40:24 -06:00
2020-09-29 17:20:12 -06:00
2019-12-19 15:37:59 -07:00
2020-01-08 10:16:30 -07:00
2016-06-29 09:50:09 -06:00
2018-11-28 13:54:52 -07:00
2017-04-13 19:28:20 -04:00
2017-09-26 22:16:39 -06:00
2016-06-06 06:50:57 -04:00
2018-04-14 08:43:39 -06:00
2020-11-13 18:26:58 -07:00
2016-06-01 22:47:33 -04:00
2020-07-23 10:47:56 -06:00
2017-12-19 09:43:00 +01:00
2019-12-19 15:37:59 -07:00
2019-12-19 15:37:59 -07:00
2019-12-19 15:37:59 -07:00
2020-02-13 13:55:15 -07:00
2019-12-19 15:37:59 -07:00
2020-09-29 17:20:12 -06:00
2019-12-19 15:37:59 -07:00
2019-12-19 15:37:59 -07:00
2019-12-19 15:37:59 -07:00
2019-11-12 22:12:44 -07:00
2019-10-01 14:21:00 -06:00
2018-04-18 10:45:08 -06:00
2019-09-09 16:22:23 -06:00
2016-04-28 15:26:55 -06:00
2020-11-13 18:26:58 -07:00
2020-11-13 18:26:58 -07:00

=====
Tests
=====

From the root of the project, run

.. code-block::

  $ python -m pytest

The tests that require Amazon S3 access will be skipped if you have no credentials. You can test using a
key like so:

.. code-block::

  $ AWS_ACCESS_KEY_ID=ID AWS_SECRET_ACCESS_KEY=KEY python -m pytest

The key used for Travis is generated using the Amazon CloudFormation template at
https://github.com/mapbox/rasterio/blob/master/cloudformation/travis.template. If you had to fork
Rasterio and run your own tests, you could `use this template <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-console-create-stack.html>`__ to create your own IAM user and get a new key from your stack's "Outputs" field.