3439 Commits

Author SHA1 Message Date
Vincent Sarago
ba5e90c487
mapbox -> rasterio (#2321) 2021-10-22 09:04:05 -06:00
Sean Gillies
f2adb89157 Fix PR number 2021-10-20 14:22:47 -06:00
Sean Gillies
236a6e5c0d Update change log for #2265 2021-10-20 14:21:52 -06:00
Ryan Grout
873fcd6f42
Allow unsafe casting in min/max merge. (#2265) 2021-10-20 14:19:43 -06:00
Sean Gillies
ee49f462f9
PR 2301 and follow up (#2318)
* Add in memory raster that subclasses DatasetBase.

* Remove unused variables.

* Add r+ to modes setting georeferencing.

* Fix dtype argument.

* Use InMemoryRasterArray

* Use InMemoryRasterArray in warp.

* Eliminate unnecessary copy.

* Add missing word.

* Use InMemoryRasterArray in fillnodata

* Add array interface method.

* Resolve fillnodata test failure.

* Remove unnecessary copy.

* Cleaner array handling.

Make sure _array is always an array, but only copy when needed/wanted.

* Rename InMemoryRaster to MemoryDataset.

* Add internal use only comment to MemoryDataset.

* Follow ups on #2301

* Fix parameter type in docstring and whitespace

Co-authored-by: Ryan Grout <ryan@ryangrout.org>
1.3a2
2021-10-19 20:09:04 -06:00
Sean Gillies
fa4b5ae804
PROJJSON (#2317)
* ENH: Add CRS PROJ JSON support

* REF: Add PROJ JSON support to_dict/from_dict

Co-authored-by: snowman2 <alansnow21@gmail.com>
2021-10-19 18:00:04 -06:00
Sean Gillies
1c078d99fe Goodbye const warnings 2021-10-19 08:22:11 -06:00
Sean Gillies
fbfbf6e7ad Switch back to CSLFetchBoolean and fix a WKT variable type 2021-10-19 07:55:34 -06:00
Sean Gillies
88402f21de configure script is no longer maintained in git, must be generated 2021-10-18 16:32:13 -06:00
Sean Gillies
3fec2c78a4 Remove params from round_lengths calls
Resolves #2314
2021-10-18 15:43:40 -06:00
Sean Gillies
5146eaa517 Our test server doesn't work on macos or windows
Perhaps some defficiency in multiprocessing, which is superseded
by concurrent.futures.
2021-10-15 13:08:08 -06:00
Sean Gillies
ee397e2d12 "Mapbox" 2021-10-15 10:53:09 -06:00
Yann-Sebastien Tremblay-Johnston
1b5f96d6e5
fix some tests (#2226)
add additional monkeypatch

skip on windows for now, unclear what intent of test is

removed third slash that is the anchor ('/') on posix but would be 'C' on windows

make ParsedPath.from_uri consistent with as_posix usage in init

fix tests
2021-10-15 10:13:02 -06:00
Sean Gillies
7ef68fe082 Date 1.3a1 2021-10-14 20:11:33 -06:00
Sean Gillies
2efb35856c
Rounding like gdal-merge as suggested by @groutr (#2311)
* Rounding like gdal-merge as suggested by @groutr

* Use only GDAL's rounding convention everywhere in rasterio

* Eliminate old window rounding implementations
1.3a1
2021-10-14 15:06:28 -06:00
Sean Gillies
975dcedb14 Warnings about deprecated windows method parameters 2021-10-13 15:43:09 -06:00
Ryan Grout
9c79da67c6
Refactor window intersection and union (#2164)
* Refactor window intersection.

* Update tests.

Pass Window objects to intersection.

* Refactor union.

* Remove unused import.

* Formatting.
2021-10-13 14:45:30 -06:00
Yann-Sebastien Tremblay-Johnston
344a34041b
Add Transformer classes (#2225)
* initial

* add TransformDirection enum, fix cython compiler issues

* make RPCTransformWarning more generic

* include GDALGCP* in gdal.pxi

* add GCPTransformer

* typo

* move xy and rowcol to TransformerBase

* change existing transform methods to use new *Transformer classes

* normalize transform direction, update docstrings

* update docstrings

* make subsubheadings of Coordinate Transform subheading

* Add new docs transform topic

* add to index

* update docstrings

* update docstring

* Add rasterio.rpc to docs

* update georeferencing.rst

* update transform.srst

* relax isinstance check for RPCTransformer

* catch invalid transform input to get_transformer

* replace None with identity transform so we test the correct ValueError

* update AffineTransformer

* add tests

* rename method to map singleton coordinate to array-like and validate all coordiantes have same dimensions

* update test

* add more tests

* update docstring of GCPTransformer init

* fix copy+paste error

* relax check on xy transformed values due to floating point precision

* remove unused imports

* fix tests and address comments

Co-authored-by: Sean Gillies <sean@mapbox.com>
2021-10-13 14:19:33 -06:00
Sean Gillies
2b527ad7b4 Support the GPKG APPEND_SUBDATASETS creation option
Resolves #2300

Major thanks to @igieon who contributed PR #2302
2021-10-13 12:08:41 -06:00
Sean Gillies
8ed1845b62 Move class to outer scope
Quite optimistic that this resolves #2309
2021-10-12 12:07:18 -06:00
Sean Gillies
e0704ab856 Merge tag '1.2.10' 2021-10-11 08:55:21 -06:00
Sean Gillies
72a7e86be0 This is 1.2.10 1.2.10 2021-10-11 08:53:13 -06:00
Sean Gillies
621a6ba2b6 Require GDAL 3 for retry test 2021-10-06 17:46:56 -06:00
Sean Gillies
99bbabc411 Also tests for a range request retry 2021-10-06 17:10:01 -06:00
Sean Gillies
f47077e936 Update change log link [skip-ci] 2021-10-05 14:42:35 -06:00
Sean Gillies
fb90df40d4
Raise WarpOperationError (new) if ChunkAndWarpMulti/Image fail (#2305)
* Raise WarpOperationError (new) if ChunkAndWarpMulti/Image fail

We've been hiding these errors and allowing chunks of a warp
operation to pass with no data copied to the output.

Note that the error message isn't very detailed. In a lot of
cases it's a generic "TIFF read block error" and doesn't surface
root causes like server errors.

* Temporarily home in on one test

* Make 503 more predictable

The exact request range varies a little bit with GDAL version

* Skip test on pythons < 3.7
2021-10-05 11:34:27 -06:00
Sean Gillies
f563d04132 Merge branch 'master' of github.com:mapbox/rasterio 2021-10-01 14:17:53 -06:00
Sean Gillies
7724adfc43 Merge tag '1.2.9' 2021-10-01 14:17:38 -06:00
Sean Gillies
8943f45392 This is 1.2.9 1.2.9 2021-10-01 11:39:31 -06:00
Sean Gillies
5f2e559478 Compute geometry_window more accurately for rotated rasters
Resolves #2303
2021-10-01 11:16:58 -06:00
Sean Gillies
1961d780d5 Copy masks when appropriate
Resolves #2232
2021-10-01 11:14:03 -06:00
Sean Gillies
5ed03f156c Use a default 70% confidence threshold when calling OSRFindMatches
Resolves #2293
Resolves #2290
2021-09-30 12:11:59 -06:00
Yann-Sebastien Tremblay-Johnston
b92c21f3c0
handle md domain prefixed by "xml" (#2228)
* handle md domain prefixed by "xml"

* add test and add note about xml prefix namespaces
2021-09-30 09:50:52 -06:00
Sean Gillies
d40aec3124 GDAL version decorator for latest test 2021-09-28 12:44:08 -06:00
Sean Gillies
413bacf137 Add support for enum and tuple type creation options
Resolves #2102.
2021-09-28 12:39:15 -06:00
Andrea Giardini
12321271f9
Fix writing file to GCS when using a new prefix (#2299)
Fixes #2297
2021-09-22 12:19:45 -06:00
Sean Gillies
fc32c88d94 Remove id assertions that can't always hold
See https://stackoverflow.com/a/54624956 for discussion of the
memory optimizations that might complicated things. Numpy provides
methods to check for memory sharing but I don't think we benefit
from using them.
2021-09-20 11:24:37 -06:00
Sean Gillies
6185a4e4ad Merge branch 'maint-1.2' 2021-09-09 10:11:04 -06:00
Sean Gillies
0513197bb9 This is 1.2.8 1.2.8 2021-09-09 07:18:29 -06:00
Even Rouault
5b736bb78f _transform(): correctly check error code of OCTTransform()) (fixes #2282) (#2287) 2021-09-08 17:27:57 -06:00
Sean Gillies
97e472830d
Branch after testing for __iter__ and open up to all numeric types (#2285)
Resolves #2283
2021-09-08 15:56:58 -06:00
Even Rouault
2a85825bb0
_transform(): correctly check error code of OCTTransform()) (fixes #2282) (#2287) 2021-09-08 15:56:32 -06:00
Sean Gillies
f6c9be4ffc 6.2.1 is the oldest PROJ we build with 2021-09-07 14:51:25 -06:00
Sean Gillies
97b7766a12 Add builds for GDAL 3.2.3, 3.3.2 + PROJ 8.1.1 2021-09-07 14:12:15 -06:00
Sean Gillies
6292959538 Merge branch 'maint-1.2' 2021-09-07 11:21:43 -06:00
Keith Jenkins
ab6c236c7c
fix link to darker (#2281) 2021-09-07 08:18:10 -06:00
Sean Gillies
3fd6ea6222 This is 1.2.7 1.2.7 2021-09-07 08:08:31 -06:00
Sean Gillies
07d7d2c133 Update change log 2021-09-03 10:47:29 -06:00
Sean Gillies
4773c70059
Switch from OSRAutoIdentifyEPSG to OSRFindMatches (#2279)
* Switch from OSRAutoIdentifyEPSG to OSRFindMatches

Resolves #2273

* Keep older code in _matches for use with GDAL versions < 3

* Save all matches for an authority in order

* Generalize assertion on CRS WKT from gdalinfo
2021-09-03 10:43:07 -06:00
Sean Gillies
fbb05ab51d Fix broken badge and misinfo in the readme 2021-09-01 16:23:32 -06:00