Opened 2 years ago
Last modified 3 months ago
#2378 new enhancement
rasterio plug-ins
Reported by: | darkblueb | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | OSGeoLive17.0 |
Component: | OSGeoLive | Keywords: | python, rasterio |
Cc: | osgeolive@… |
Description (last modified by )
ol15 build122
rasterio packaged can make use of optional plug-ins. Popular and useful titles:
[
rio-cogeo
,rio-tiler
,rio-toa
,rio-mucho
].
sample install session
$ pip install --user rio-cogeo Collecting rio-cogeo Downloading rio_cogeo-3.3.0-py3-none-any.whl (19 kB) Requirement already satisfied: numpy~=1.15 in /usr/lib/python3/dist-packages (from rio-cogeo) (1.21.5) Requirement already satisfied: rasterio>=1.1 in /usr/lib/python3/dist-packages (from rio-cogeo) (1.2.10) Requirement already satisfied: click>=7.0 in /usr/lib/python3/dist-packages (from rio-cogeo) (8.0.3) Collecting morecantile<4.0,>=3.1 Downloading morecantile-3.1.2.tar.gz (25 kB) Preparing metadata (setup.py) ... done Requirement already satisfied: pydantic in /usr/lib/python3/dist-packages (from rio-cogeo) (1.8.2) Requirement already satisfied: attrs in /usr/lib/python3/dist-packages (from morecantile<4.0,>=3.1->rio-cogeo) (21.2.0) Requirement already satisfied: pyproj~=3.1 in /usr/lib/python3/dist-packages (from morecantile<4.0,>=3.1->rio-cogeo) (3.3.0) Building wheels for collected packages: morecantile Building wheel for morecantile (setup.py) ... done Created wheel for morecantile: filename=morecantile-3.1.2-py3-none-any.whl size=32098 sha256=bb3518e0d6aaca9e38798fed8086a55e5ca289d5ca784497e7e1eb0eab2cb1ab Stored in directory: /home/dbb/.cache/pip/wheels/ee/4b/41/c76314563c37757c283d8f401f733f67bc13f9bd579a7a32be Successfully built morecantile Installing collected packages: morecantile, rio-cogeo Successfully installed morecantile-3.1.2 rio-cogeo-3.3.0 $ pip install --user rio-mucho Collecting rio-mucho Downloading rio_mucho-1.0.0-py3-none-any.whl (5.8 kB) Requirement already satisfied: numpy in /usr/lib/python3/dist-packages (from rio-mucho) (1.21.5) Requirement already satisfied: rasterio~=1.0 in /usr/lib/python3/dist-packages (from rio-mucho) (1.2.10) Installing collected packages: rio-mucho Successfully installed rio-mucho-1.0.0 dbb@ol15nightly:/home/shared/srcs_ol15$ pip install --user rio-tiler Collecting rio-tiler Downloading rio_tiler-3.1.5-py3-none-any.whl (198 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 198.7/198.7 KB 371.2 kB/s eta 0:00:00 Requirement already satisfied: pydantic in /usr/lib/python3/dist-packages (from rio-tiler) (1.8.2) Requirement already satisfied: numpy in /usr/lib/python3/dist-packages (from rio-tiler) (1.21.5) Collecting rio-color Downloading rio-color-1.0.4.tar.gz (74 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 74.9/74.9 KB 382.6 kB/s eta 0:00:00 Installing build dependencies ... | done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Collecting pystac>=0.5.4 Downloading pystac-1.4.0-py3-none-any.whl (137 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 137.4/137.4 KB 351.1 kB/s eta 0:00:00 Requirement already satisfied: rasterio>=1.1.7 in /usr/lib/python3/dist-packages (from rio-tiler) (1.2.10) Collecting numexpr Downloading numexpr-2.8.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (381 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 381.3/381.3 KB 386.6 kB/s eta 0:00:00 Collecting httpx Downloading httpx-0.23.0-py3-none-any.whl (84 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 84.8/84.8 KB 379.3 kB/s eta 0:00:00 Collecting boto3 Downloading boto3-1.24.31-py3-none-any.whl (132 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 132.5/132.5 KB 393.6 kB/s eta 0:00:00 Requirement already satisfied: cachetools in /usr/lib/python3/dist-packages (from rio-tiler) (5.0.0) Requirement already satisfied: morecantile<4.0,>=3.1 in /home/dbb/.local/lib/python3.10/site-packages (from rio-tiler) (3.1.2) Requirement already satisfied: attrs in /usr/lib/python3/dist-packages (from rio-tiler) (21.2.0) Requirement already satisfied: pyproj~=3.1 in /usr/lib/python3/dist-packages (from morecantile<4.0,>=3.1->rio-tiler) (3.3.0) Requirement already satisfied: python-dateutil>=2.7.0 in /usr/lib/python3/dist-packages (from pystac>=0.5.4->rio-tiler) (2.8.1) Requirement already satisfied: jmespath<2.0.0,>=0.7.1 in /usr/lib/python3/dist-packages (from boto3->rio-tiler) (0.10.0) Collecting botocore<1.28.0,>=1.27.31 Downloading botocore-1.27.31-py3-none-any.whl (9.0 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 9.0/9.0 MB 390.0 kB/s eta 0:00:00 Collecting s3transfer<0.7.0,>=0.6.0 Downloading s3transfer-0.6.0-py3-none-any.whl (79 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 79.6/79.6 KB 367.2 kB/s eta 0:00:00 Collecting sniffio Downloading sniffio-1.2.0-py3-none-any.whl (10 kB) Collecting rfc3986[idna2008]<2,>=1.3 Downloading rfc3986-1.5.0-py2.py3-none-any.whl (31 kB) Requirement already satisfied: certifi in /usr/lib/python3/dist-packages (from httpx->rio-tiler) (2020.6.20) Collecting httpcore<0.16.0,>=0.15.0 Downloading httpcore-0.15.0-py3-none-any.whl (68 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 68.4/68.4 KB 274.7 kB/s eta 0:00:00 Requirement already satisfied: packaging in /usr/lib/python3/dist-packages (from numexpr->rio-tiler) (21.3) Requirement already satisfied: click>=4.0 in /usr/lib/python3/dist-packages (from rio-color->rio-tiler) (8.0.3) Requirement already satisfied: rio-mucho in /home/dbb/.local/lib/python3.10/site-packages (from rio-color->rio-tiler) (1.0.0) Requirement already satisfied: urllib3<1.27,>=1.25.4 in /usr/lib/python3/dist-packages (from botocore<1.28.0,>=1.27.31->boto3->rio-tiler) (1.26.5) Collecting anyio==3.* Downloading anyio-3.6.1-py3-none-any.whl (80 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 80.6/80.6 KB 249.0 kB/s eta 0:00:00 Collecting h11<0.13,>=0.11 Downloading h11-0.12.0-py3-none-any.whl (54 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 54.9/54.9 KB 350.1 kB/s eta 0:00:00 Requirement already satisfied: idna>=2.8 in /usr/lib/python3/dist-packages (from anyio==3.*->httpcore<0.16.0,>=0.15.0->httpx->rio-tiler) (3.3) Building wheels for collected packages: rio-color Building wheel for rio-color (pyproject.toml) ... done Created wheel for rio-color: filename=rio_color-1.0.4-cp310-cp310-linux_x86_64.whl size=177722 sha256=c1d38726d15d20b44e702df3ce1580874ddfcdeccb51afa8af5f8a9959914aca Stored in directory: /home/dbb/.cache/pip/wheels/7b/5a/2d/90316693df333308e07aacf49c954fd7a2dc35e1034f7c6974 Successfully built rio-color Installing collected packages: rfc3986, sniffio, pystac, numexpr, h11, botocore, s3transfer, rio-color, anyio, httpcore, boto3, httpx, rio-tiler Successfully installed anyio-3.6.1 boto3-1.24.31 botocore-1.27.31 h11-0.12.0 httpcore-0.15.0 httpx-0.23.0 numexpr-2.8.3 pystac-1.4.0 rfc3986-1.5.0 rio-color-1.0.4 rio-tiler-3.1.5 s3transfer-0.6.0 sniffio-1.2.0 $ pip install --user rio-toa Collecting rio-toa Downloading rio-toa-0.3.0.tar.gz (9.0 kB) Preparing metadata (setup.py) ... done Requirement already satisfied: click in /usr/lib/python3/dist-packages (from rio-toa) (8.0.3) Requirement already satisfied: rasterio in /usr/lib/python3/dist-packages (from rio-toa) (1.2.10) Requirement already satisfied: rio-mucho in /home/dbb/.local/lib/python3.10/site-packages (from rio-toa) (1.0.0) Requirement already satisfied: numpy in /usr/lib/python3/dist-packages (from rio-mucho->rio-toa) (1.21.5) Building wheels for collected packages: rio-toa Building wheel for rio-toa (setup.py) ... done Created wheel for rio-toa: filename=rio_toa-0.3.0-py3-none-any.whl size=12424 sha256=411229f595450dcd4c9bd67d57b478c27f5034ee3d3a995eddbc75476de4191f Stored in directory: /home/dbb/.cache/pip/wheels/8a/5a/cd/c23390b0be04c4443ea0f74d082e4cc6e3851f0c5c9e2df43b Successfully built rio-toa Installing collected packages: rio-toa Successfully installed rio-toa-0.3.0
Change history (10)
comment:1 by , 2 years ago
Description: | modified (diff) |
---|
comment:2 by , 2 years ago
Description: | modified (diff) |
---|
comment:4 by , 20 months ago
Milestone: | OSGeoLive15.0 → OSGeoLive16.0 |
---|
Ticket retargeted after milestone closed
comment:5 by , 16 months ago
ol16 alpha 3 update:
$pip3 install --user rio-cogeo ... Downloading rio_cogeo-3.5.1-py3-none-any.whl (19 kB) ... Requirement already satisfied: rasterio>=1.3.3 in /usr/lib/python3/dist-packages (from rio-cogeo) (1.3.4) Collecting morecantile<4.0,>=3.1 Downloading morecantile-3.3.0-py3-none-any.whl (33 kB) ... user@osgeolive:~$ pip3 install --upgrade-strategy=only-if-needed --user rio-tiler Collecting rio-tiler Downloading rio_tiler-4.1.10-py3-none-any.whl (207 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 208.0/208.0 KB 269.0 kB/s eta 0:00:00 Collecting color-operations Downloading color_operations-0.1.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (131 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 131.7/131.7 KB 277.5 kB/s eta 0:00:00 Collecting httpx Downloading httpx-0.24.0-py3-none-any.whl (75 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 75.3/75.3 KB 286.4 kB/s eta 0:00:00 Collecting numexpr Downloading numexpr-2.8.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (381 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 381.4/381.4 KB 271.8 kB/s eta 0:00:00 Collecting sniffio Downloading sniffio-1.3.0-py3-none-any.whl (10 kB) Collecting httpcore<0.18.0,>=0.15.0 Downloading httpcore-0.17.0-py3-none-any.whl (70 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 70.6/70.6 KB 287.6 kB/s eta 0:00:00 Requirement already satisfied: idna in /usr/lib/python3/dist-packages (from httpx->rio-tiler) (3.3) Collecting h11<0.15,>=0.13 Downloading h11-0.14.0-py3-none-any.whl (58 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.3/58.3 KB 300.1 kB/s eta 0:00:00 Collecting anyio<5.0,>=3.0 Downloading anyio-3.6.2-py3-none-any.whl (80 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 80.6/80.6 KB 293.8 kB/s eta 0:00:00 Installing collected packages: sniffio, numexpr, h11, color-operations, anyio, httpcore, httpx, rio-tiler Successfully installed anyio-3.6.2 color-operations-0.1.1 h11-0.14.0 httpcore-0.17.0 httpx-0.24.0 numexpr-2.8.4 rio-tiler-4.1.10 sniffio-1.3.0 - user@osgeolive:~$ pip3 install --upgrade-strategy=only-if-needed --user rio-toa Collecting rio-toa Downloading rio-toa-0.3.0.tar.gz (9.0 kB) Preparing metadata (setup.py) ... done Collecting rio-mucho Downloading rio_mucho-1.0.0-py3-none-any.whl (5.8 kB) ... Building wheels for collected packages: rio-toa Building wheel for rio-toa (setup.py) ... done Created wheel for rio-toa: filename=rio_toa-0.3.0-py3-none-any.whl size=12424 sha256=7c0708c0609fd60cf749c61b872059a0c9c74f15d24009c2b443bd0bed7c1d79 Stored in directory: /home/user/.cache/pip/wheels/8a/5a/cd/c23390b0be04c4443ea0f74d082e4cc6e3851f0c5c9e2df43b Successfully built rio-toa Installing collected packages: rio-mucho, rio-toa Successfully installed rio-mucho-1.0.0 rio-toa-0.3.0
comment:6 by , 16 months ago
Cc: | added |
---|
comment:7 by , 14 months ago
ol16 beta1
user@osgeolive:~$ python3 -m pip install --upgrade-strategy=only-if-needed --user rio-cogeo Collecting rio-cogeo Downloading rio_cogeo-4.0.0-py3-none-any.whl (19 kB) Collecting morecantile<5.0,>=4.0 Downloading morecantile-4.2.0-py3-none-any.whl (36 kB) ... Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from rasterio>=1.3.3->rio-cogeo) (59.6.0) Installing collected packages: morecantile, rio-cogeo WARNING: The script morecantile is installed in '/home/user/.local/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. Successfully installed morecantile-4.2.0 rio-cogeo-4.0.0
comment:8 by , 13 months ago
package candidate -- https://github.com/aio-libs/aiobotocore
warning: complicated requirements, currently used by odc-tools
but PaulH tells me they want to get away from it. FYI
comment:9 by , 12 months ago
ol16 RC1
user@osgeolive:~$ pip3 install --user --upgrade-strategy=only-if-needed rio-cogeo Collecting rio-cogeo Downloading rio_cogeo-5.0.0-py3-none-any.whl (19 kB) Requirement already satisfied: numpy~=1.15 in /usr/lib/python3/dist-packages (from rio-cogeo) (1.21.5) Collecting pydantic~=2.0 Downloading pydantic-2.3.0-py3-none-any.whl (374 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 374.5/374.5 KB 243.3 kB/s eta 0:00:00 Requirement already satisfied: rasterio>=1.3.3 in /usr/lib/python3/dist-packages (from rio-cogeo) (1.3.4) Collecting morecantile<6.0,>=5.0 Downloading morecantile-5.0.0-py3-none-any.whl (48 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 48.6/48.6 KB 301.0 kB/s eta 0:00:00 Requirement already satisfied: click>=7.0 in /usr/lib/python3/dist-packages (from rio-cogeo) (8.0.3) Requirement already satisfied: pyproj~=3.1 in /usr/lib/python3/dist-packages (from morecantile<6.0,>=5.0->rio-cogeo) (3.4.0) Requirement already satisfied: attrs in /usr/lib/python3/dist-packages (from morecantile<6.0,>=5.0->rio-cogeo) (21.2.0) Collecting pydantic-core==2.6.3 Downloading pydantic_core-2.6.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.9 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.9/1.9 MB 247.8 kB/s eta 0:00:00 Collecting annotated-types>=0.4.0 Downloading annotated_types-0.5.0-py3-none-any.whl (11 kB) Collecting typing-extensions>=4.6.1 Downloading typing_extensions-4.7.1-py3-none-any.whl (33 kB) Requirement already satisfied: cligj>=0.5 in /usr/lib/python3/dist-packages (from rasterio>=1.3.3->rio-cogeo) (0.7.2) Requirement already satisfied: affine in /usr/lib/python3/dist-packages (from rasterio>=1.3.3->rio-cogeo) (2.3.0) Requirement already satisfied: click-plugins in /usr/lib/python3/dist-packages (from rasterio>=1.3.3->rio-cogeo) (1.1.1) Requirement already satisfied: certifi in /usr/lib/python3/dist-packages (from rasterio>=1.3.3->rio-cogeo) (2020.6.20) Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from rasterio>=1.3.3->rio-cogeo) (59.6.0) Requirement already satisfied: snuggs>=1.4.1 in /usr/lib/python3/dist-packages (from rasterio>=1.3.3->rio-cogeo) (1.4.7) Installing collected packages: typing-extensions, annotated-types, pydantic-core, pydantic, morecantile, rio-cogeo WARNING: The script morecantile is installed in '/home/user/.local/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. Successfully installed annotated-types-0.5.0 morecantile-5.0.0 pydantic-2.3.0 pydantic-core-2.6.3 rio-cogeo-5.0.0 typing-extensions-4.7.1
comment:10 by , 3 months ago
Milestone: | OSGeoLive16.0 → OSGeoLive17.0 |
---|
Ticket retargeted after milestone closed
Note:
See TracTickets
for help on using tickets.
metpy utils