Rasterio plugin to visualize Cloud Optimized GeoTIFF in browser.
Freely adapted from the great mapbox/rio-glui
You can install rio-tiler using pip
$ pip install -U pip cython==0.28
$ pip install rio-viz
or from source
$ git clone https://github.com/developmentseed/rio-viz.git
$ cd rio-viz
# python-vtzero will only compile with Cython < 0.29
$ pip install cython==0.28
$ pip install -e .
$ rio viz --help
Usage: rio viz [OPTIONS] SRC_PATHS...
Rasterio Viz cli.
Options:
--style [satellite|basic] Mapbox basemap
--port INTEGER Webserver port (default: 8080)
--mapbox-token TOKEN Pass Mapbox token
--no-check Ignore COG validation
--help Show this message and exit.
Note:
You can provide multiple paths (e.g: bands stored as separate path) to rio-viz:
$ rio viz https://s3.eu-central-1.amazonaws.com/remotepixel-eu-central-1/sentinel-s2-l1c/tiles/18/T/XR/2019/4/21/0/B0{4,3,2}.tif
rio-viz support Mapbox VectorTiles encoding from raster array. This features was added to visualize spare data stored as raster but will also work for dense array. This is highly experimental and might be slow to render in certain browser and/or for big rasters.