folium icon indicating copy to clipboard operation
folium copied to clipboard

changed NASAGIBS Blue Marble to NASAGIBS BlueMarble3413 in examples

Open S-Panta opened this issue 1 year ago • 2 comments

NASAGIBS Blue Marble was removed from xyzservices provider list as the endpoint doesn't work. (https://github.com/geopandas/xyzservices/pull/158) I suggest the example in Folium to be replaced with either "BlueMarble3413 or "BlueMarble3031. However, at the moment, the URL that's in their json file of these two tiles isn't working and throws 400 error.
Or, maybe this example can be thrown out as it would be very confusing.

S-Panta avatar Feb 17 '24 12:02 S-Panta

Those will not work as they are in different CRS (EPSG 3413 and 3031 respectively). Folium supports only tiles in 3857. If you are able to figure out how to make the original BlueMarble work, happy to add it back to xyzservices but as long as it returns error 500 it'll stay out.

martinfleis avatar Feb 17 '24 19:02 martinfleis

@martinfleis https://gibs-c.earthdata.nasa.gov/wmts/epsg3857/best/wmts.cgi?Service=WMTS&Request=GetCapabilities (WMTS endpoint used by https://worldview.earthdata.nasa.gov) has a list of active WMTS services. The closest one for Blue Marble is probably this:

https://gitc.earthdata.nasa.gov/wmts/epsg3857/best/BlueMarble_NextGeneration/default/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.jpeg

For future reference, list of supported formats/projections at https://www.earthdata.nasa.gov/eosdis/science-system-description/eosdis-components/gibs

Update:

The official endpoint is https://gibs.earthdata.nasa.gov/wmts/epsg3857/best/1.0.0/WMTSCapabilities.xml as described at https://nasa-gibs.github.io/gibs-api-docs/map-library-usage/#basic-usage

Test urls:

https://gibs-a.earthdata.nasa.gov/wmts/epsg3857/best/wmts.cgi?TIME=2024-02-29T03:22:00Z&layer=BlueMarble_NextGeneration&style=default&tilematrixset=GoogleMapsCompatible_Level8&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fjpeg&TileMatrix=0&TileCol=0&TileRow=0 (KVP version is working)

https://gitc.earthdata.nasa.gov/wmts/epsg3857/best/BlueMarble_NextGeneration/default/GoogleMapsCompatible_Level8/0/0/0.jpeg (REST version - not working)

https://gitc.earthdata.nasa.gov/wmts/epsg4326/best/BlueMarble_NextGeneration/default/500m/0/0/0.jpeg (REST version for EPSG:4326 - working)

prusswan avatar Feb 29 '24 04:02 prusswan

We 'solved' this for Folium in https://github.com/python-visualization/folium/pull/1918. Thanks for bringing this to our attention Sabin!

Conengmo avatar May 06 '24 14:05 Conengmo