rio-glui
Explore CloudOptimized geotiff on your browser using Mapbox GL JS.
Install
You can install rio-glui using pip
$ pip install -U pip
$ pip install rio-glui
or install from source:
$ git clone https://github.com/mapbox/rio-glui.git
$ cd rio-glui
$ pip install -e .
Usage
Usage: rio glui [OPTIONS] PATH
Rasterio glui cli.
Options:
-b, --bidx BIDX Raster band index
--scale INTEGER Min Max Min and Max data bounds to rescale data from.
--colormap [cfastie|schwarzwald] Rio-tiler compatible colormap name ('cfastie' or 'schwarzwald')
--tiles-format [png|jpg|webp] Tile image format (default: png)
--tiles-dimensions INTEGER Dimension of images being served (default: 512)
--nodata INTEGER Force mask creation from a given nodata value
--gl-tile-size INTEGER mapbox-gl tileSize (default is the same as `tiles-dimensions`)
--port INTEGER Webserver port (default: 8080)
--playground Launch playground app
--mapbox-token TOKEN Pass Mapbox token
--help Show this message and exit.
Explore COG hosted on aws
$ rio glui https://oin-hotosm.s3.amazonaws.com/5ac626e091b5310010e0d482/0/5ac626e091b5310010e0d483.tif
Playground
The –playground option opens a playground template where you an interact with the data to apply rio-color formula.
Creating CloudOptimized Geotiff
To create rio-glui friendly files (CloudOptimized Geotiff) you can use another rasterio plugin: rio-cogeo (https://github.com/cogeotiff/rio-cogeo.git).
Extras
This plugin also enable raster visualisation in Jupyter Notebook using [mapboxgl-jupyter](https://github.com/mapbox/mapboxgl-jupyter)
Contribution & Devellopement
Issues and pull requests are more than welcome.
Dev install & Pull-Request
$ git clone https://github.com/mapbox/rio-glui.git
$ cd rio-glui
$ pip install -e .[dev]
Python3.6 only
This repo is set to use pre-commit to run flake8, pydocstring and black (“uncompromising Python code formatter”) when commiting new code.
$ pre-commit install
$ git add .
$ git commit -m'my change'
black....................................................................Passed
Flake8...................................................................Passed
Verifying PEP257 Compliance..............................................Passed
$ git push origin
Metadata
Release files for rio-glui 1.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rio_glui-1.0.6-py3-none-any.whl | Python 3 | none | any | Details for rio_glui-1.0.6-py3-none-any.whl |
Release files / rio_glui-1.0.6-py3-none-any.whl
| Download URL | rio_glui-1.0.6-py3-none-any.whl |
|---|---|
| Size | 50.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dd4f3b08e567ec084654886234ad88602a042e462e42d7dfd9b271e43c4310ed
|
|
BLAKE2b-256 checksum How to use checksums |
69e8fd10b64a5929a0707f1f4da6fc94bd71b6a07464f615a760e56f969e88ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.12.4 setuptools/40.7.3 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.4
|
Security for rio-glui 1.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.