- remove
AsyncBaseReader
support - add Jupyter Notebook compatible
Client
import time
import httpx
from folium import Map, TileLayer
from rio_viz.app import Client
# Create rio-viz Client (using server-thread to launch backgroud 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)
- update
titiler
andstarlette-cramjam
requirements
- Fix viewers. Statistics wasn't being displayed for raster with band names (instead of indexes number).
- fix issue for MultiBaseReader (
assets
) viewer - update titiler.core requirement to
>=0.5,<0.7
- add
/
as path for the viewer
- fix frontend click/point interaction for dataset crossing the antimeridian line
- better handle data with bbox crossing the antimeridian limit
- include js and css code within the package to enable full offline mode
- switch to pyproject.toml
- add
color-formula
in viz
- update titiler requirement and fix viewer bugs
- update to new titiler/rio-tiler/rio-cogeo version
- remove Mapbox maps and switch to
stamen
basemap - remove python3.6 support
- use titiler custom JSONResponse to encode nan/inf/-inf values in response
- do not rescale data if there is a colormap
-
add
titiler.core
as dependencies to reduce code duplication. -
update code and templates to follow
titiler.core
specs. -
add
/crop.{format}
POST endpoint to get image from polygon shaped GeoJSON (developmentseed#36) -
rename
/part
to/crop
to match TiTiler (developmentseed#36) -
refactor dependencies to remove bidx in info/metadata/stats (developmentseed#37)
-
refactor UI (developmentseed#38)
-
add simple MosaicReader (developmentseed#32)
$ rio viz "tests/fixtures/mosaic_cog{1,2}.tif" --reader rio_viz.io.MosaicReader
- update rio-tiler-mvt
- use cache middleware to add
cache-control
headers.
- add dynamic dependency injection to better support multiple reader types (developmentseed#28)
- add better UI for MultiBaseReader (e.g STAC)
- renamed
indexes
query parameter tobidx
- update bands/assets/indexes query parameter style to follow the common specification
# before
/tiles/9/150/189?indexes=1,2,3
# now
/tiles/9/150/189?bidx=1&bidx=2&bidx=3
- renamed
rio_viz.ressources
torio_viz.resources
(developmentseed/titiler#210) - update and reduce requirements
- fix wrong tilesize setting in UI
- update pre-commit configuration
- update requirements.
- add Mapbox
dark
basemap as default.
- add missing
__init__
in rio_viz.io submodule (developmentseed#24)
- Fix error when
rio-tiler-mvt
is not installed (developmentseed#21)
- update for rio-tiler 2.0.0rc3
- add
--server-only
options and add preview/part API. - add more output types.
Refactor
- remove template factory
- better FastAPI app definition (to be able to use it outside rio-viz)
- remove
simple
template - use dataclasses
- adapt for rio-tiler >= 2.0.0rc1
- full async API
- add
external
reader support