-
1)is there a special way to export geotiff from qgis? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
You need to covert the image to COG. See banesullivan/localtileserver#27 Once you have the COG, you can host it on GitHub and use leafmap to load COG onto the map. m = leafmap.Map()
url = "https://github.com/giswqs/data/raw/main/raster/cog.tif"
m.add_cog_layer(url, name="COG", bands=[4, 1, 2])
m |
Beta Was this translation helpful? Give feedback.
-
Thansk notebook demo works great on your geotiff file. If there is a format error when validating, is there a specific way to export grom qgis to have the right version? `--------------------------------------------------------------------------- rasterio/_shim.pyx in rasterio._shim.open_dataset() rasterio/_err.pyx in rasterio._err.exc_wrap_pointer() CPLE_OpenFailedError: '/vsicurl/https://github.com/Niko-La/jupyter_equity_2020/blob/main/brampton_geo.tif' not recognized as a supported file format. During handling of the above exception, another exception occurred: RasterioIOError Traceback (most recent call last) 3 frames rasterio/_base.pyx in rasterio._base.DatasetBase.init() RasterioIOError: '/vsicurl/https://github.com/Niko-La/jupyter_equity_2020/blob/main/brampton_geo.tif' not recognized as a supported file format.` |
Beta Was this translation helpful? Give feedback.
You need to covert the image to COG. See banesullivan/localtileserver#27
Once you have the COG, you can host it on GitHub and use leafmap to load COG onto the map.