365 Commits

Author SHA1 Message Date
Sean Gillies
ccca0cb9be Merge tag '1.3.7' into main 2023-05-22 18:05:41 -06:00
Sean Gillies
c2e9e22b83
Add rio-blocks documentation (#2835)
* Add rio-blocks documentation

Remove notes about additions before 1.0.

Resolves #2570

* Note fix for #2570

* Update change log

* It's rio blocks, no rio shapes
2023-05-18 17:50:06 -06:00
Sean Gillies
6d21d4194b
Update installation.rst
Update based on the fresher instructions in the maint-1.3 branch.
2023-05-10 16:42:32 -06:00
Sean Gillies
9d9a6f3996
Update installation.rst
--no-binary rasterio
2023-05-10 16:38:17 -06:00
Sean Gillies
e056a3ee11
Update installation.rst
Updated installation instructions based on the refreshed fiona 1.9 instructions.
2023-05-10 16:36:48 -06:00
Sean Gillies
ca5b48c5d8
Update installation.rst
Also for OS X
2023-05-10 09:02:34 -06:00
Sean Gillies
b91ae63021
Update installation.rst
Recommend --no-binary rasterio when installing from an sdist.
2023-05-10 09:01:48 -06:00
jbutle55
3c91e032aa
Fix quickstart documentation mixing up column and row position of matrix. Fix for issue #2582 (#2813) 2023-04-26 19:00:31 -06:00
Alan D. Snow
c84d8db010
DOC: Consolidate intallation instructions (#2793) 2023-03-27 19:03:45 -05:00
Alan D. Snow
62fe00a387
DOC: Add tips for conda installation (#2792)
* DOC: Add tips for conda installation
---------

Co-authored-by: Pieter Roggemans <pieter.roggemans@gmail.com>
2023-03-27 19:03:01 -05:00
Alan D. Snow
443e3dd406
DOC: Add note about PROJ_DEBUG in debug error documentation (#2794) 2023-03-18 07:54:54 -05:00
Alan D. Snow
f6b7b7636d
DEP: GDAL 3.3+, numpy 1.21+, Python 3.9+ (#2779)
* DEP: GDAL 3.3+, numpy 1.21+, Python 3.9+

* CI: Remove .travis.yml
2023-03-06 17:23:18 -07:00
Sean Gillies
6bb3e52e19 Merge tag '1.3.5' into main 2023-01-25 14:05:58 -07:00
Sean Gillies
d4fc803b74 Add an admonition to topics/windowed-rw.html#reading
Resolves #1242
2023-01-23 14:22:05 -07:00
Alan D. Snow
51efb0d7a8
LNT: Use flake8 to find undefined variables & unused imports (#2693) 2023-01-10 12:48:09 -06:00
Idan Miara
103aa29ff2
installation.rst - update notes for Windows installation (#2709) 2023-01-08 06:40:24 -06:00
Idan Miara
ddda43a8f8
installation.rst - Update GDAL minimum version `GDAL >=1.11 -> GDAL >=3.1` as of #2448 (#2708) 2023-01-08 06:29:43 -06:00
Mateo
ec3b0cae2d
Fixed (row, col) to (col, row) in Dataset Georeferencing section (#2584) 2022-11-10 08:59:03 -06:00
Matthias Daues
5cf71dc806
Add a comment on dtype = int8 (#2577)
Raster data of dtype = int8 leads to an error message from pprint, which requires the data to be one of the following:
int16, int32, uint8, uint16, float32
I added a comment catching this error, which can be solved by casting the data: data = data.astype('int16')
2022-09-26 18:58:42 -06:00
Alan D. Snow
713a751197
DOC: Use sphinx-click for CLI documentation (#2574) 2022-08-29 12:43:26 -06:00
Alan D. Snow
21a1622086
ENH: Add support for PROJ_DATA environment variable (#2530) (#2557) 2022-08-19 09:11:40 -06:00
Alan D. Snow
125340b74b
DOC: Improve links & add Band to docs (#2537) 2022-08-09 10:32:34 -06:00
Alan D. Snow
7cf19395f7
ENH: Add support for PROJ_DATA environment variable (#2530) 2022-08-02 17:24:30 -04:00
snowman2
38ad052cc2 DOC: Fix header in error handling 2022-07-23 19:46:25 -05:00
Alan D. Snow
c17bc35a80
DOC: Add intersphinx for matplotlib & numpy (#2527) 2022-07-21 16:52:22 -06:00
Alan D. Snow
f1ad179d63
DOC: Added Debugging Internal GDAL instructions (#2520)
* DOC: Added Debugging Internal GDAL instructions

* DOC: Add Example prefix to code samples

* Update docs/topics/errors.rst

Co-authored-by: Sean Gillies <sean.gillies@gmail.com>

Co-authored-by: Sean Gillies <sean.gillies@gmail.com>
2022-07-19 13:58:16 -06:00
Nicolai Mogensen
633609b9d2
Typo in switch.rst Afine -> Affine (#2521)
The instance is an `Affine` class, and not `Afine`
2022-07-13 08:10:12 -05:00
Alan D. Snow
fc87b3b116
DOC: Add intersphinx with GDAL for rasterio.warp.reproject (#2440) 2022-05-10 08:12:24 -06:00
Sean Gillies
077685a12f Update API docs. Add missing pages, remove the one for _crs. 2022-04-01 10:20:04 -06:00
Sean Gillies
8bff8a70b4
Merge _crs with crs (#2335)
* Merge _crs into crs

CRS is an extension class now, with improved documentation. The
test__crs.py file is obsolete and has been deleted.

I piggy-backed some API doc changes onto this. We now generate
API docs from scratch every time and have removed the .rst files
from the repo. The crs module now uses the embedsignature Cython
directive, which we should do for other extension modules.

* Include private modules

* Restore API docs

We'll remove them in a different branch.

* Update docs/index.rst

* Handle OverflowError from <int>code

Also repair chunks missed in rebase
2022-03-31 19:19:21 -06:00
Olivier Cloux
5368c60bd8 spot dead mapbox link 2022-02-04 14:42:03 +01:00
Yann-Sebastien Tremblay-Johnston
0f1b726d1d
warn when reprojecting with RPCs using a source CRS that is not EPSG:4326 (#2363)
* add checks in order to warn agaisnt incorrect source CRS when using RPCs to reproject

* use .from_string to be consistent with _calculate_default_transform

* raise error instead

* fix test
2021-12-22 20:16:02 -07:00
Vincent Sarago
87e5293237
Merge pull request #2274 from RichardScottOZ/patch-1
Update virtual-warping.rst
2021-12-16 00:03:16 +01:00
Sean Gillies
579ca1d10f Link to sgillies forks of original gists 2021-11-16 10:59:45 -07:00
Bill Morris
ad392eb67f
Update rio shapes cli docs (#2337)
I'm proposing some intermingled updates to this section:

1. _New gist links for outputs_: the previously-linked mapbox classic style is now deprecated.
2. _Removal of `geojsonio` invocation_: geojson.io does not accept piped `.geojsonl`
3. _Use of the `--collection` flag_: I think it's correct to have geojsonl as the default output for various reasons, but for purposes of displaying the example results I've set the commands to output feature collections, and added a note for clarification.
2021-11-16 10:47:32 -07:00
Sean Gillies
81d542a69a
Update switch.rst
GDAL_CACHEMAX shorthand notation is not supported by rasterio.
2021-11-15 10:34:19 -07:00
Vincent Sarago
ba5e90c487
mapbox -> rasterio (#2321) 2021-10-22 09:04:05 -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
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
RichardScottOZ
b50f83c06a
Update virtual-warping.rst
coordinates
2021-09-01 10:42:13 +09:30
Adam J. Stewart
adef906d01
Various fixes to documentation (#2256)
* Various fixes to documentation

* Remove in-line shell prompts

* Fix rasterize shapes type

* Convert todo's to comments

* Revert back to todo directive
2021-08-18 10:30:55 -06:00
Idan Miara
14834341f2
docs/topics/switch.rst - update the section abound bands (#2201) 2021-06-09 09:45:48 -06:00
Idan Miara
69305c72b5
update the docs for dropping Python < 3.6 support (#2196) 2021-06-05 15:21:08 -06:00
Sean Gillies
8a32ef0146
Explain "can't find proj.db" for rasterio 1.2.0
Resolves #2103
2021-02-04 10:55:03 -07:00
Kyle Barron
52a2500af9
Docs: Change rasterio.insp to rio insp (#2071)
* Change rasterio.insp to rio insp

* Update docs/topics/tags.rst

Co-authored-by: Sean Gillies <sean.gillies@gmail.com>
2020-12-14 17:21:46 -07:00
Yann-Sebastien Tremblay-Johnston
1837a77261
Update windows install instructions (#2039)
* Update readme

* Note that running tests locally requires installing in editable mode

* Update corresponding section in installation notes

* clarify note about --no-use-pep517
2020-11-16 07:53:58 -07:00
Yann-Sebastien Tremblay-Johnston
d27877c4b3
fix subheadings beind rendered as separate pages, and fix rpc reproject example to actually use kwargs (#2038) 2020-11-14 11:17:05 -07:00
Yann-Sebastien Tremblay-Johnston
11ae663ff4
Warp add rpcs (#2031)
* [warp_add_rpcs] initial update to reproject to support rpcs

* catch kwargs in _calculate_default_transform

* fix allocation of crs to wrong dataset (was src, now dst) in _calculate_default_transform. Specifically where we went from GDALCreateGenImgProjTransformer -> GDALCreateGenImgProjTransformer2

* pass kwargs to calculate_default_transform (to be passed to transformer

* update docstrings

* update documentation

* add debug messages for kwargs used to set Transformer options

* Don't capitalize RPC_DEM transformer option value, as it might be a path

* includes existing changes from https://github.com/mapbox/rasterio/pull/2030, better support for computation of calculate_default_transform with just gcps or rpcs

* adds testse

* Remove an empty line

Mainly to trigger a new build on travis-ci.com

* add new test file (Largely derived from RGB.byte.tif)

* Fix incorrectly encoding RPC metadata as transform options

Was checking for transformer option RPC_DEM in the RPC metadata by mistake

Co-authored-by: Sebastien Tremblay-Johnston <sebastien.tremblayjohnston@mdacorporation.com>
Co-authored-by: Sean Gillies <sean@mapbox.com>
Co-authored-by: Sean Gillies <sean.gillies@gmail.com>
2020-11-13 18:26:58 -07:00
James McBride
0e2d9e275e
Update pip installation instructions (#2027)
The --no-use-wheel option in pip installation has been deprecated in
favor of --no-binary.
2020-11-02 10:14:30 -07:00
Yann-Sebastien Tremblay-Johnston
10809b036b
WIP: Add coordinate transformation with RPCs (#1922)
* This is part of an effort to introduce the concept of rational polynomial coeffecients to be used for coordinate transformations using GDALCreateRPCTransformer.

- Added a new UserDict subclass named RPC to control.py. This structure contains the rationa polynomial coefficients, and can be instatiated from user input or read from dataset. GDAL stores RPCs as metadata which are all string encoded. The RPC object deserializes string values to float or list appropriately, and also provides a serialization method when passing to lower level GDAL methods.
- A new _transform.pyx method called _rpc_transform, similar to _base._transform except using GDALCreateRPCTransformer and GDALRPCTransform.
- A new RPCTransformWarning to errors.py, indicating when a RPC coordinate transformation has failed.
- New includes from gdal.h and gdal_alg.h for RPC related structs and functions
- New rpcs property to DatasetBase and subclassese with appropriate getter and setters (error when read only mode). Corresponding updates to _base.pxd and _io.pxd
- Tests

* trigger new travis build

* This is part of an effort to introduce the concept of rational polynomial coeffecients to be used for coordinate transformations using GDALCreateRPCTransformer.

- Added a new UserDict subclass named RPC to control.py. This structure contains the rationa polynomial coefficients, and can be instatiated from user input or read from dataset. GDAL stores RPCs as metadata which are all string encoded. The RPC object deserializes string values to float or list appropriately, and also provides a serialization method when passing to lower level GDAL methods.
- A new _transform.pyx method called _rpc_transform, similar to _base._transform except using GDALCreateRPCTransformer and GDALRPCTransform.
- A new RPCTransformWarning to errors.py, indicating when a RPC coordinate transformation has failed.
- New includes from gdal.h and gdal_alg.h for RPC related structs and functions
- New rpcs property to DatasetBase and subclassese with appropriate getter and setters (error when read only mode). Corresponding updates to _base.pxd and _io.pxd
- Tests

trigger new travis build

* Move RPC Class to it's own file

* fix typo

* make private

* re-implement RPC with attr

* make err_bias, err_rand attributes optional, default to empty string

* default to None, rather than empty string
2020-11-02 09:26:59 -07:00