Rio-viz

Latest version: v0.12.2

Safety actively analyzes 688365 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 5

0.10.1

* update titiler requirement

0.10.0

* remove `AsyncBaseReader` support
* add Jupyter Notebook compatible `Client`

python
import time

import httpx
from folium import Map, TileLayer

from rio_viz.app import Client

Create rio-viz Client (using server-thread to launch background task)
client = Client("https://data.geo.admin.ch/ch.swisstopo.swissalti3d/swissalti3d_2019_2573-1085/swissalti3d_2019_2573-1085_0.5_2056_5728.tif")

Gives some time for the server to setup
time.sleep(1)

r = httpx.get(
f"{client.endpoint}/tilejson.json",
params = {
"rescale": "1600,2000", from the info endpoint
"colormap_name": "terrain",
}
).json()

bounds = r["bounds"]
m = Map(
location=((bounds[1] + bounds[3]) / 2,(bounds[0] + bounds[2]) / 2),
zoom_start=r["minzoom"]
)

aod_layer = TileLayer(
tiles=r["tiles"][0],
opacity=1,
attr="Yo!!"
)
aod_layer.add_to(m)
m


* update `rio-tiler-mvt` requirement (**>=0.1,<0.2**)

* add support for python 3.10 and 3.11
* remove python 3.7 support
* update titiler requirement to `0.10`
* revert using static files for javascript libraries
* add simple `/map` viewer

0.9.6

* update `titiler` and `starlette-cramjam` requirements

0.9.5

* Fix viewers. Statistics wasn't being displayed for raster with band names (instead of indexes number).

0.9.4

* fix issue for MultiBaseReader (`assets`) viewer
* update titiler.core requirement to `>=0.5,<0.7`
* add `/` as path for the viewer

0.9.3

* fix frontend click/point interaction for dataset crossing the antimeridian line

Page 2 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.