folium
folium copied to clipboard
changed NASAGIBS Blue Marble to NASAGIBS BlueMarble3413 in examples
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.
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 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)
We 'solved' this for Folium in https://github.com/python-visualization/folium/pull/1918. Thanks for bringing this to our attention Sabin!