3031 Commits

Author SHA1 Message Date
Sean Gillies
7a1d295dfb Resolve #1822 2019-11-12 22:12:44 -07:00
Sean Gillies
37681fd367 Sparser build matrix 2019-11-12 18:15:48 -07:00
Sean Gillies
96310a8754
PROJ data search path setting for rasterio (#1823)
* PROJ data search path setting for rasterio

As in the Fiona project

* Import os in shim modules, update version and change log
2019-11-12 17:49:45 -07:00
Giacomo Vianello
d2199527e1 Fix #1650 (#1820) 2019-11-04 14:15:49 -08:00
Sean Gillies
eb2b8c7734 Update version and change log 1.1.0 2019-10-07 08:39:14 -06:00
Sean Gillies
94affc4fe3
Trust in GDAL's reference counting (#1800)
* Trust in GDAL's reference counting

Towards resolving #1799

* Require GDAL 2

* Revert to local dataset handle

* Run tests under gdb

* Implement GDALDatasetH reference counting in stop()

This keeps datasets used in a WarpedVRT from crashing GDAL and
Python when they are closed before the VRT.

* Bump version

* Remove gdb
1.1b3
2019-10-03 13:49:52 -06:00
Sean Gillies
78a81c0397 Adding missing _transform.c to setup script
rasterio 1.1 built from an sdist won't import without this.
1.1b2
2019-10-02 11:15:34 -06:00
Nikolai Janakiev
b47e3f880b Fix GDAL data model link (#1795) 2019-10-02 08:37:57 -06:00
Sean Gillies
5efc7063af Update version, change log, and authors 1.1b1 2019-10-01 15:11:55 -06:00
Sean Gillies
5f4c88a89d
Metadata namespaces (#1794)
* add get_tag_ns method to retrieve the list of metadata domains

* add tests

* Split tests into two functions, note changes
2019-10-01 14:21:00 -06:00
Sean Gillies
e4265077f2 Merge branch 'master' of github.com:mapbox/rasterio 2019-09-30 16:11:34 -06:00
Sean Gillies
edbc8ac4e4 Note fix of #511 2019-09-30 15:25:35 -06:00
Guillaume Lostis
c8dab3c5b7 Automatic overview level computation (#1782)
* Automatic overview level computation

* Change rio overview arg from -1 to auto

* Simplify get_maximum_overview_level
2019-09-30 15:18:00 -06:00
Sean Gillies
371daa2d06 Revert changes accidentally made to path parsing 2019-09-30 14:31:47 -06:00
Sean Gillies
5313d4ce67 Add a test for writing a mask to an invalid window 2019-09-27 12:40:47 -06:00
Sean Gillies
eba69296bc Add resource and performance notes to rasterize() docstring 2019-09-25 15:33:57 -06:00
Sean Gillies
ee9576232f Handle AWS exception in _delete_dataset_if_exists 2019-09-17 11:21:21 -06:00
Sean Gillies
059ad3e01c
Check pkg for GDAL and PROJ data before checking API (#1781)
* Check pkg for GDAL and PROJ data before checking API

Towards resolving #1248

* Fix typo
2019-09-14 08:54:49 -06: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
Guillaume Lostis
535ef2e170 Non-AWS S3 endpoint (#1779)
* Add endpoint_url to AWSSession

* Add tests for AWSSession's endpoint_url
2019-09-13 08:02:49 -06:00
Alan D. Snow
2b5f319c73 add ability to calculate dst_transform if not provided (#1552) 2019-09-12 15:33:15 -06:00
Darren Weber
56705db5d7 [1777] Modify enum34 python_version spec (#1778) 2019-09-12 15:17:10 -06:00
Sean Gillies
b0c1989ff9 Note new merge tool keyword arg 2019-09-10 10:38:27 -06:00
Jonas
987cdf45c3 merge method control (#1500)
* smart merge

* smart merge

* nested docstring for callable

Co-Authored-By: Sean Gillies <sean.gillies@gmail.com>

* clarify docstring for merge parameter
2019-09-10 10:34:00 -06:00
Sean Gillies
0dbcfd91a5 Warning in compat that support for Python 2 is ending
Resolves #1613
2019-09-09 17:45:46 -06:00
Vincent Sarago
f587fb72ba Gcptransform (#1773)
* add GDALGCPsToGeoTransform

* add method to fall back to gcps geo transform when gcps are found

* add GDALGCPsToGeoTransform output in gcps info

* add GCPS class

* add GCPS in rasterio.control and update tests

* add from_gcps method

* return Affine and revert rio info change

* revert unrelated change

* add & for cython

* fix

* add tests

* Update rasterio/transform.py

Co-Authored-By: Sean Gillies <sean.gillies@gmail.com>

* /gcpslist/gcps/
2019-09-09 16:22:23 -06:00
Guillaume Lostis
bed880553f Docs (#1771)
* Remove rasterio.vfs from doc

* Fix broken links in doc

* Fix typos in doc

* Update CLI doc

* Use rst links in doc
2019-09-09 14:15:27 -06:00
Sean Gillies
c8103dc47c Merge tag '1.0.28' 2019-09-09 14:10:51 -06:00
Sean Gillies
27adf089bc Restore int coercion to block size guard
Resolves #1769
1.0.28
2019-09-09 09:53:35 -06:00
Sean Gillies
33230f9c8d Merge tag '1.0.27' 2019-09-05 18:17:07 -06:00
Sean Gillies
c14484dcad Update version and change log 1.0.27 2019-09-05 14:21:59 -06:00
Sean Gillies
38d550b178 Merge branch 'maint-1.0' of github.com:mapbox/rasterio into maint-1.0 2019-09-05 14:16:11 -06:00
Sean Gillies
8e66f864db
Issue1744bis (#1768)
* No more right multplication with instances of Affine

That usage is deprecated.

* Add a `dtype` keyword argument to the WarpedVRT constructor

It functions like gdalwarp's `-wt` and resolves #1744.

* Add an xfail-ing test

* Add another test with WarpedVRT nodata set
2019-09-05 14:15:34 -06:00
Sean Gillies
f829cf0226 No more right multplication with instances of Affine
That usage is deprecated.
2019-09-05 11:45:15 -06:00
Sean Gillies
3216f2d797
Add a test to reproduce issue #1744 (#1767)
* Add a test to reproduce issue #1744

* Add missing data file
2019-09-05 11:28:58 -06:00
Sean Gillies
d20f7fb865 Tear down coordinate transformer
Resolves #1713
2019-09-05 08:08:45 -06:00
Sean Gillies
4b6b920012 Merge branch 'maint-1.0' 2019-09-05 07:47:24 -06:00
Sean Gillies
49e650971c Remove unavoidable warning from write_colormap()
Also eliminate a numpy warning in test_warp.py
2019-09-03 14:14:40 -06:00
Guillaume Lostis
52b66f418b Add collections.Iterable to compat (#1764) 2019-08-30 16:24:21 -06:00
Guillaume Lostis
2b3707b0d7 Add collections.Iterable to compat (#1764) 2019-08-30 16:22:09 -06:00
Sean Gillies
82a5df2bb3 Require GDAL ~= 2.3 for test making an unsigned AWS requests
Resolves #1765
2019-08-30 16:18:53 -06:00
Sean Gillies
46a5c9d1d2 Tiled GeoTIFF bug fixes and improvements
Resolves #520, #1760
2019-08-29 14:51:47 -06:00
Sean Gillies
983b9610ac Merge tag '1.0.26' 2019-08-26 10:59:02 -06:00
Sean Gillies
87ee1d5cfc Bump version to 1.0.26 1.0.26 2019-08-26 09:01:12 -06:00
Sean Gillies
7b8a45a7f8 equal_nan=True in can_cast_dtype
Resolves #1761
2019-08-26 08:56:08 -06:00
Alan D. Snow
c4fb6976c0 return false for comparison with objects incompatible with CRS (#1754)
* return false for comparison with objects incompatible with CRS

* Update CRS test_equals_different_type to use parameterization

Co-Authored-By: Sean Gillies <sean.gillies@gmail.com>
2019-08-22 16:41:54 -06:00
Alan D. Snow
077276089e support CRS.from_user_input with other CRS with to_wkt (#1735) 2019-08-22 16:06:00 -06:00
Sean Gillies
df378ba657 Make src_crs the first default for WarpedVRT destination crs
The crs of the source dataset is the second.

Resolves #1755
2019-08-22 15:54:18 -06:00