Raster
In [1]:
Copied!
import mapvu
import mapvu
In [2]:
Copied!
m=mapvu.Map()
m
m=mapvu.Map()
m
Out[2]:
Map(center=[20, 0], controls=(ZoomControl(options=['position', 'zoom_in_text', 'zoom_in_title', 'zoom_out_text…
In [3]:
Copied!
url = "https://raw.githubusercontent.com/cogeotiff/rio-tiler/main/tests/fixtures/cog.tif"
url = "https://raw.githubusercontent.com/cogeotiff/rio-tiler/main/tests/fixtures/cog.tif"
In [4]:
Copied!
m.add_raster(url)
m.add_raster(url)
--------------------------------------------------------------------------- ValueError Traceback (most recent call last) Cell In[4], line 1 ----> 1 m.add_raster(url) File c:\users\dell\downloads\new folder\mapvu\mapvu\mapvu.py:218, in Map.add_raster(self, url, name, fit_bounds, **kwargs) 210 r_tile = httpx.get( 211 f"{titiler_endpoint}/cog/tilejson.json", 212 params= { 213 "url":url 214 }, 215 ).json() 217 if "tiles" not in r_tile: --> 218 raise ValueError(f"TiTiler /cog/tilejson.json error: {r_tile}") 220 tile = r_tile["tiles"][0] 222 self.add_tile_layer(url=tile, name=name, **kwargs) ValueError: TiTiler /cog/tilejson.json error: {'detail': 'Not Found'}
In [5]:
Copied!
url = "https://raw.githubusercontent.com/cogeotiff/rio-tiler/main/tests/fixtures/cog.tif"
m.add_raster(url)
url = "https://raw.githubusercontent.com/cogeotiff/rio-tiler/main/tests/fixtures/cog.tif"
m.add_raster(url)
--------------------------------------------------------------------------- ValueError Traceback (most recent call last) Cell In[5], line 2 1 url = "https://raw.githubusercontent.com/cogeotiff/rio-tiler/main/tests/fixtures/cog.tif" ----> 2 m.add_raster(url) File c:\users\dell\downloads\new folder\mapvu\mapvu\mapvu.py:218, in Map.add_raster(self, url, name, fit_bounds, **kwargs) 210 r_tile = httpx.get( 211 f"{titiler_endpoint}/cog/tilejson.json", 212 params= { 213 "url":url 214 }, 215 ).json() 217 if "tiles" not in r_tile: --> 218 raise ValueError(f"TiTiler /cog/tilejson.json error: {r_tile}") 220 tile = r_tile["tiles"][0] 222 self.add_tile_layer(url=tile, name=name, **kwargs) ValueError: TiTiler /cog/tilejson.json error: {'detail': 'Not Found'}