Brendan Ward 3d8836d9b1 Warn on rasterizing invalid / empty geometries instead of failing (#1680)
* Raise warnings rather than exceptions for invalid / empty shapes in rasterize

* Add test for geo interface for is_geom_valid and fix for travis builds

--no-use-pep517 flag for pip install of local environment is needed to get pip install working

* Make warning for invalid / empty geometry in rasterization more clear
2019-05-03 11:18:09 -06:00
..
2018-11-16 15:16:44 -07:00
2018-12-14 16:27:58 -07:00
2016-04-28 15:26:55 -06:00
2016-04-28 15:26:55 -06:00
2018-09-14 10:40:24 -06:00
2019-03-29 17:14:02 -06:00
2018-06-05 17:16:11 -04:00
2019-03-19 17:58:43 -06: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
2019-03-22 15:59:55 -06:00
2018-12-03 12:55:06 -07:00
2016-06-01 22:47:33 -04:00
2018-05-24 14:57:27 -06:00
2017-12-19 09:43:00 +01:00
2017-09-20 10:26:38 -06:00
2017-05-02 14:08:36 +02:00
2016-07-27 14:51:36 -06:00
2018-04-18 10:45:08 -06:00
2016-04-28 15:26:55 -06:00
2018-09-13 10:31:56 -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/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.