Sean Gillies 9520b69cd1
Simplify rasterize (#3003)
* Simplify rasterize by restricting default output to float64/int64

Like numpy.array(). This allows us to deprecate several dtype
helper functions.

GDAL 3.5 doesn't support int64, so we will replace with int32.

* Remove another helper.

* Enable fallback to uint32 for GDAL 3.5

Address other tests failing on 3.4

* Remove unneeded tests, parametrize some.

* Remove unused import.

* Add change log entry.

* Spelling correction.
2024-01-09 11:32:47 -07:00
..
2023-06-28 11:55:48 -06:00
2023-05-22 18:05:41 -06:00
2021-10-22 09:04:05 -06: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
2016-06-29 09:50:09 -06:00
2023-05-22 18:05:41 -06:00
2024-01-09 11:32:47 -07:00
2017-09-26 22:16:39 -06:00
2016-06-06 06:50:57 -04:00
2023-10-19 08:37:44 -06:00
2021-10-22 09:04:05 -06:00
2016-06-01 22:47:33 -04:00
2023-06-23 16:02:30 -06:00
2023-06-23 16:02:30 -06:00
2023-05-31 17:31:12 -06:00
2019-12-19 15:37:59 -07:00
2023-05-31 17:31:12 -06:00
2023-11-03 15:05:11 -06:00
2021-10-15 10:13:02 -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
2023-12-30 17:05:21 -07:00
2019-10-01 14:21:00 -06:00
2018-04-18 10:45:08 -06:00
2023-05-22 18:05:41 -06: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/rasterio/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.