Closed prncevince closed 1 year ago
The TiTiler endpoint no longer supports masaicjson. See https://github.com/opengeos/leafmap/issues/180#issuecomment-1012985916.
I believe that the Maxar Open Data examples are from 2023. How did those examples in the references previously work? Did you configure a different endpoint?
Also, you did add support for mosaicjson after #180 was figured out / closed in #206 & #208 right?
I feel like #180 doesn't tell the whole story here.
I just released v0.24.2 that fixes this issue. Please update the package and try again. Try out this web app: https://huggingface.co/spaces/giswqs/maxar-open-data
m = leafmap.Map()
url = 'https://open.gishub.org/maxar-open-data/datasets/Kahramanmaras-turkey-earthquake-23/1050050044DE7E00.json'
m.add_stac_layer(url, name="Mosaic")
m
Thank you for fixing and upgrading! Screenshot below of output using leafmap version 0.24.2
. I did a pip install -U leafmap
. However this broke jupyter lab due to pypi dependency resolution, likely on the pyrsistent package, so a mamba install jsonschema pyrsistent
fixed this.
For what it's worth, redirects from say, the github.io
domain to another domain, do not seem to work, so the commented line in screenshot below still does not work.
Also, it would be nice to be able to use local mosaicjson / STAC spec files.
Also, doing something like serving an http web server over localhost and linking to localhost:8000/1050050044DE7E00.json
does not currently work either.
I already updated the URL last night. See this.
The TiTiler endpoint is required to redner the mosaicjson. I don't think it supports rendering mosaicjons stored locally.
If you have a resolution for rendering local mosaicjson files, let me know. I would be happy to add leafmap support for it.
The updated URLs make sense. I'm referring to the fact that redirects error.
There seems to be scarce resources showing how to use the mosaicjson API endpoint? It's mentioned briefly in the Create Mosaic section of the Working with MosaicJSON notebook of the TiTiler docs:
Below are 2 examples that show use of the TiTiler RESTful API mosaicjson endpoint, one using your example on Maxar Open Data & the other using the example out of the TiTiler docs.
I tried using the ?url=file:///
option as specified in the old cogeo-mosaic-tiler docs where using the old version of the mosaicjson endpoint had documentation for running requests on local mosaicjson files, but this gives a [Errno 2] No such file or directory
error.
Leafmap already uses the TiTiler demo endpoint to render mosaicjson files available throught HTTP. I don't think it supports reading local mosaicjson files.
Environment Information
Description
Trying to add a STAC mosaicjson layer to Leafmap. We get a similar error compared to #448. A couple examples that have been provided in Leafmap documentation do not work and receive the same error output.
Reference examples:
What I Did
You can swap the
url
value below and receive the same error. As well as swap out them.add_mosaic_layer
call & still receive a similarKeyError: 'tiles'
error.