Vincent Sarago
ba5e90c487
mapbox -> rasterio ( #2321 )
2021-10-22 09:04:05 -06:00
Sean Gillies
3847cc2410
Rewrite of from_bounds and geometry_window ( #2116 )
...
* Rewrite of from_bounds and geometry_window
Resolves #2112
* Remove unused parameters from call to geometry_window
2021-02-15 08:31:24 -07:00
Sean Gillies
264ccaa838
Make feature extraction tests robust with respect to noding ( #2066 )
...
* Make feature extraction tests robust with respect to noding
Resolves #2034
* Install test extras
* Add shapely
* Finish adjusting tests and tweaking build matrix
2020-12-11 15:44:59 -07:00
Ian Schneider
201a8d0143
flatten multipolygon to avoid holes in output ( #2014 )
...
related to 1274, a multipolygon was resulting in the same behavior
2020-10-15 12:49:12 -06:00
Brendan Ward
22043389e4
Add support for bounds of GeometryCollection ( #1915 )
...
* Add support for bounds of GeometryCollection; resolves #1914
* Fix broken test for invalid geometries, and catch more
2020-04-29 12:23:24 -06:00
Sean Gillies
d74afa1b0f
Filter more categories of invalid geoms
...
Resolves #1815
2020-02-14 08:54:41 -07:00
Sean Gillies
83ec91e314
Add missing capfd fixture
2019-09-13 15:29:42 -06:00
Sean Gillies
104b63b33c
Handle shape skipping warnings and update change log
2019-09-13 14:23:28 -06:00
Sean Gillies
9e30d22d6d
Switch sharing kwarg default to False ( #1775 )
...
* Switch sharing kwarg default to False
Resolves #1705
* Replace GDALOpenShared with GDALOpen except in one shim
* Revert two open_dataset to GDALOpen
* Run tests under gdb
* Increment ref count in WarpedVRTBase
* Open a new dataset handle in WarpedVRT
* Remove gdb
* Remove exceptions from open_dataset in _shim1
Makes usage much easier
* Fix in-memory dataset leaks in _reproject
2019-09-13 08:05:14 -06:00
Sean Gillies
073339ce57
Merge branch 'maint-1.0'
2019-08-06 18:42:38 -06:00
Sean Gillies
b806345964
fill value instead of default_value
...
Thanks @brendan-ward!
Resolves #1738
2019-07-30 15:49:03 -06:00
Sean Gillies
df11584101
Use default_value when shape's value is None
...
Resolves #1738
2019-07-30 15:04:02 -06:00
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
Sean Gillies
98126f2abc
Add full support for numpy masked arrays to features.shapes() ( #1523 )
...
Resolves #1517
2018-10-25 14:08:45 -06:00
Sean Gillies
7b8d5e248b
Avoid losing a row or column in geometry_window() ( #1472 )
...
Resolves #1436
2018-09-18 20:53:03 -06:00
Jonas
f7762ae91d
support geometry type LinearRing ( #1432 )
...
* support geometry type LinearRing
* fix bugs in test_is_valid_geom_ring
2018-07-31 17:10:22 -06:00
Sean C. Gillies
43d3f7b4f0
Remove xfail marker, address other feedback
...
Also a little test cleanup
2018-05-15 11:33:35 -06:00
Sean C. Gillies
12f15ff51c
Remove all deprecated features* and update tests
...
*except reading from datasets in "w" mode, which will wait one
more pre-release or two.
2018-04-13 16:43:26 -06:00
Andrew Catellier
2b9eb086ae
add tests for dataset rotation
2018-02-15 16:40:14 -07:00
Brendan Ward
a9e8821b7d
Merge branch 'master' into issue1253
2018-02-07 20:33:26 -05:00
Brendan Ward
3c205cf9ee
Flatten GeometryCollection to individual parts before rasterize
2018-02-07 20:30:52 -05:00
Brendan Ward
870cdd62f7
Add tests for __geo_interface__ for bounds and raster_geometry_mask
2018-02-05 05:35:53 -08:00
Brendan Ward
5f1eaa869b
XFailing test for gdal geometrycollection rasterize bug
2018-02-03 17:59:32 -08:00
Brendan Ward
eca50a816e
Use enum for rasterize merge algorithm
2018-01-10 20:58:46 -08:00
Brendan Ward
fded0b1d44
Converted a few test xfails to skip, dropped or modified a few others
2017-11-30 20:13:16 -08:00
Frédéric Bonifas
d913a39579
change the rasterize option merge_alg_add to merge_alg
2017-11-13 18:00:59 +01:00
Frédéric Bonifas
095f649532
test the merge_alg_add option of rasterize
2017-11-08 14:13:55 +01:00
Brendan Ward
8971e0ffc6
Additional validation and test of rasterize
2017-11-04 13:55:28 -07:00
Brendan Ward
c542992631
raise error on invalid shape for InMemoryRaster, and associated tests
2017-11-04 13:26:25 -07:00
Brendan Ward
79062b42a1
Prevent segfaults in rasterize ( #1176 )
...
* Add better check for GeoJSON inputs to rasterize and associated tests
* Restructured OGRGeomBuilder to avoid segfault
2017-10-19 06:48:45 -07:00
Brendan Ward
c54e22da24
Raise WindowError from geometry_window
2017-09-19 19:34:21 -07:00
Brendan Ward
330574fd90
Refactored mask functionality, updated tests
2017-09-11 20:59:02 -07:00
Kevin Wurster
e5b72e522d
Remove unnecessary 'rasterio.Env()' calls.
2017-04-13 19:35:41 -04:00
Matthew Perry
9fa708269b
enforce that out_shape is 2D
2016-08-15 18:27:36 -04:00
Erik Seglem
44c3d9badf
Replace drivers with Env in docs and examples ( #760 )
...
Replace rasterio.drivers with rasterio.Env.
2016-06-02 19:01:18 -07:00
Erik Seglem
a31e3c8c16
Standardize on import numpy as np.
2016-06-01 22:47:33 -04:00
Sean Gillies
12f8fc7e3f
New, lazier AWS sessions
...
New Env class and tests.
More logging, tests, safer environment
Remove usage (deprecated) of rasterio.drivers()
Also pep8 cleanups throughout the tests and a fix for unchecked
dtypes when opening a dataset in 'w' mode.
Now we can simply import warnings in __init__.py. In the
deprecations tests, we needed to see a single warning only one
time to avoid multiple drivers() warnings.
Add a global env.
Add rasterio.env.setenv()
2016-04-28 15:26:55 -06:00
Brendan Ward
15772d8d33
Refactor of features tests
2015-11-08 20:25:36 -08:00