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.0
6.1.0
6.0.3
6.0.2
6.0.1
6.0.0
5.0.3
5.0.2
5.0.1
5.0.0
4.1.9
4.1.8
4.1.7
4.1.6
4.1.5
4.1.4
4.1.3
4.1.2
4.1.13
4.1.12
4.1.11
4.1.10
4.1.1
4.1.0
4.0.0a2
4.0.0a1
4.0.0a0
4.0.0
3.1.6
3.1.5
3.1.4
3.1.3
3.1.2
3.1.1
3.1.0
3.0.3
3.0.2
3.0.1
3.0.0a6
3.0.0a5
3.0.0a4
3.0.0a3
3.0.0a2
3.0.0a1
3.0.0a0
3.0.0
2.1.4
2.1.3
2.1.2
2.1.1
2.1.0
2.0b9
2.0b8
2.0b7
2.0b6
2.0b5
2.0b4
2.0b3
2.0b2
2.0b15
2.0b14.post2
2.0b14.post1
2.0b14
2.0b13
2.0b12
2.0b11
2.0b10
2.0b1
2.0a9
2.0a8
2.0a7
2.0a6
2.0a5
2.0a4
2.0a3
2.0a2
2.0a11
2.0a10
2.0a1
2.0.8
2.0.7
2.0.6
2.0.5
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0rc4
2.0.0rc3
2.0.0rc2
2.0.0rc1.post1
2.0.0rc1
2.0.0b19
2.0.0b18
2.0.0b17
2.0.0b16
2.0.0
1.4.0
1.3.1
1.3.0
1.2.9
1.2.8
1.2.7
1.2.5
1.2.4
1.2.3
1.2.2
1.2.11
1.2.10
1.2.1
1.2.0
1.1.4
1.1.3
1.1.1
1.1.0
1.0rc3
1.0rc2
1.0rc1
1.0b3
1.0b2
1.0b1
1.0a8
1.0a7
1.0a6
1.0a5
1.0a4
1.0a3
1.0a2
1.0a1
1.0a0
1.0.1
1.0.0
0.0.3
0.0.2
0.0.1
توضیحات
User friendly Rasterio plugin to read raster datasets.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | rio-tiler-9.0.0b1 |
| نام | rio-tiler |
| نسخه کتابخانه | 9.0.0b1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | Vincent Sarago <vincent@developmentseed.com> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/rio-tiler/ |
| مجوز | BSD 3-Clause License Copyright (c) 2021, cogeotiff All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
# rio-tiler
<p align="center">
<img src="https://user-images.githubusercontent.com/10407788/88133997-77560f00-cbb1-11ea-874c-a8f1d123a9df.jpg" style="max-width: 800px;" alt="rio-tiler"></a>
</p>
<p align="center">
<em>User friendly Rasterio plugin to read raster datasets.</em>
</p>
<p align="center">
<a href="https://github.com/cogeotiff/rio-tiler/actions?query=workflow%3ACI" target="_blank">
<img src="https://github.com/cogeotiff/rio-tiler/workflows/CI/badge.svg" alt="Test">
</a>
<a href="https://codecov.io/gh/cogeotiff/rio-tiler" target="_blank">
<img src="https://codecov.io/gh/cogeotiff/rio-tiler/branch/main/graph/badge.svg" alt="Coverage">
</a>
<a href="https://pypi.org/project/rio-tiler" target="_blank">
<img src="https://img.shields.io/pypi/v/rio-tiler?color=%2334D058&label=pypi%20package" alt="Package version">
</a>
<a href="https://anaconda.org/conda-forge/rio-tiler" target="_blank">
<img src="https://img.shields.io/conda/v/conda-forge/rio-tiler.svg" alt="Conda Forge">
</a>
<a href="https://pypistats.org/packages/rio-tiler" target="_blank">
<img src="https://img.shields.io/pypi/dm/rio-tiler.svg" alt="Downloads">
</a>
<a href="https://github.com/cogeotiff/rio-tiler/blob/main/LICENSE" target="_blank">
<img src="https://img.shields.io/github/license/cogeotiff/rio-tiler.svg" alt="Downloads">
</a>
<a href="https://mybinder.org/v2/gh/cogeotiff/rio-tiler/main?filepath=docs%2Fexamples%2F" target="_blank" alt="Binder">
<img src="https://mybinder.org/badge_logo.svg" alt="Binder">
</a>
</p>
---
**Documentation**: <a href="https://cogeotiff.github.io/rio-tiler/" target="_blank">https://cogeotiff.github.io/rio-tiler/</a>
**Source Code**: <a href="https://github.com/cogeotiff/rio-tiler" target="_blank">https://github.com/cogeotiff/rio-tiler</a>
---
## Description
`rio-tiler` was initially designed to create [slippy map
tiles](https://en.wikipedia.org/wiki/Tiled_web_map) from large raster data
sources and render these tiles dynamically on a web map. Since `rio-tiler` v2.0, we added many more helper methods to read
data and metadata from any raster source supported by Rasterio/GDAL.
This includes local and remote files via HTTP, AWS S3, Google Cloud Storage,
etc.
At the low level, `rio-tiler` is *just* a wrapper around the [rasterio](https://github.com/rasterio/rasterio) and [GDAL](https://github.com/osgeo/gdal) libraries.
## Features
- Read any dataset supported by GDAL/Rasterio
```python
from rio_tiler.io import Reader
with Reader("my.tif") as image:
print(image.dataset) # rasterio opened dataset
img = image.read() # similar to rasterio.open("my.tif").read() but returns a rio_tiler.models.ImageData object
```
- User friendly `tile`, `part`, `feature`, `point` reading methods
```python
from rio_tiler.io import Reader
with Reader("my.tif") as image:
img = image.tile(x, y, z) # read mercator tile z-x-y
img = image.part(bbox) # read the data intersecting a bounding box
img = image.feature(geojson_feature) # read the data intersecting a geojson feature
img = image.point(lon,lat) # get pixel values for a lon/lat coordinates
```
- Enable property assignment (e.g nodata) on data reading
```python
from rio_tiler.io import Reader
with Reader("my.tif") as image:
img = image.tile(x, y, z, nodata=-9999) # read mercator tile z-x-y
```
- [STAC](https://github.com/radiantearth/stac-spec) support
```python
from rio_tiler.io import STACReader
with STACReader("item.json") as stac:
print(stac.assets) # available asset
img = stac.tile( # read tile for asset1 and indexes 1,2,3
x,
y,
z,
assets="asset1",
indexes=(1, 2, 3), # same as asset_indexes={"asset1": (1, 2, 3)},
)
# Merging data from different assets
img = stac.tile( # create an image from assets 1,2,3 using their first band
x,
y,
z,
assets=("asset1", "asset2", "asset3",),
asset_indexes={"asset1": 1, "asset2": 1, "asset3": 1},
)
```
- [Xarray](https://xarray.dev) support **(>=4.0)**
```python
import xarray
from rio_tiler.io import XarrayReader
ds = xarray.open_dataset(
"https://pangeo.blob.core.windows.net/pangeo-public/daymet-rio-tiler/na-wgs84.zarr/",
engine="zarr",
decode_coords="all",
consolidated=True,
)
da = ds["tmax"]
with XarrayReader(da) as dst:
print(dst.info())
img = dst.tile(1, 1, 2)
```
*Note: The XarrayReader needs optional dependencies to be installed `pip install rio-tiler["xarray"]`.*
- Non-Geo Image support **(>=4.0)**
```python
from rio_tiler.io import ImageReader
with ImageReader("image.jpeg") as src:
im = src.tile(0, 0, src.maxzoom) # read top-left `tile`
im = src.part((0, 100, 100, 0)) # read top-left 100x100 pixels
pt = src.point(0, 0) # read pixel value
```
*Note: `ImageReader` is also compatible with proper geo-referenced raster datasets.*
- [Mosaic](https://cogeotiff.github.io/rio-tiler/mosaic/) (merging or stacking)
```python
from rio_tiler.io import Reader
from rio_tiler.mosaic import mosaic_reader
def reader(file, x, y, z, **kwargs):
with Reader(file) as image:
return image.tile(x, y, z, **kwargs)
img, assets = mosaic_reader(["image1.tif", "image2.tif"], reader, x, y, z)
```
- Native support for multiple TileMatrixSet via [morecantile](https://developmentseed.org/morecantile/)
```python
import morecantile
from rio_tiler.io import Reader
# Use EPSG:4326 (WGS84) grid
wgs84_grid = morecantile.tms.get("WorldCRS84Quad")
with Reader("my.tif", tms=wgs84_grid) as src:
img = src.tile(1, 1, 1)
```
## Install
You can install `rio-tiler` using pip
```bash
python -m pip install -U pip
python -m pip install -U rio-tiler
```
or install from source:
```bash
git clone https://github.com/cogeotiff/rio-tiler.git
cd rio-tiler
python -m pip install -U pip
python -m pip install -e .
```
## Plugins
#### [**rio-tiler-pds**][rio-tiler-pds]
[rio-tiler-pds]: https://github.com/cogeotiff/rio-tiler-pds
`rio-tiler` v1 included several helpers for reading popular public datasets (e.g. Sentinel 2, Sentinel 1, Landsat 8, CBERS) from cloud providers. This functionality is now in a [separate plugin][rio-tiler-pds], enabling easier access to more public datasets.
#### [**rio-tiler-mvt**][rio-tiler-mvt]
Create Mapbox Vector Tiles from raster sources
[rio-tiler-mvt]: https://github.com/cogeotiff/rio-tiler-mvt
## Implementations
[**titiler**][titiler]: A lightweight Cloud Optimized GeoTIFF dynamic tile server.
[**cogeo-mosaic**][cogeo-mosaic]: Create mosaics of Cloud Optimized GeoTIFF based on the [mosaicJSON][mosaicjson_spec] specification.
[titiler]: https://github.com/developmentseed/titiler
[cogeo-mosaic]: https://github.com/developmentseed/cogeo-mosaic
[mosaicjson_spec]: https://github.com/developmentseed/mosaicjson-spec
## Contribution & Development
See [CONTRIBUTING.md](https://github.com/cogeotiff/rio-tiler/blob/main/CONTRIBUTING.md)
## Authors
The `rio-tiler` project was begun at Mapbox and was transferred to the `cogeotiff` Github organization in January 2019.
See [AUTHORS.txt](https://github.com/cogeotiff/rio-tiler/blob/main/AUTHORS.txt) for a listing of individual contributors.
## Changes
See [CHANGES.md](https://github.com/cogeotiff/rio-tiler/blob/main/CHANGES.md).
## License
See [LICENSE](https://github.com/cogeotiff/rio-tiler/blob/main/LICENSE)
نیازمندی
| مقدار | نام |
|---|---|
| - | attrs |
| - | cachetools |
| - | color-operations |
| - | httpx |
| - | morecantile<8.0,>=5.0 |
| - | numexpr |
| - | numpy |
| - | pydantic~=2.0 |
| - | pystac<2.0,>=1.9 |
| - | rasterio>=1.4.0 |
| - | typing-extensions |
| xtr | boto3; |
| xtr | rioxarray; |
| xtr | xarray; |
| xtr | obstore; |
| xtr | zarr~=3.0; |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.11 | Python |
نحوه نصب
نصب پکیج whl rio-tiler-9.0.0b1:
pip install rio-tiler-9.0.0b1.whl
نصب پکیج tar.gz rio-tiler-9.0.0b1:
pip install rio-tiler-9.0.0b1.tar.gz