Closed ahuang11 closed 5 months ago
You can also add it to https://qms.nextgis.com, and then use xyzservices.TileProvider.from_qms("service_name")
to load tiles. https://github.com/geopandas/xyzservices/issues/63
@ahuang11 If you can get XYZ URL for NowCoast services, the best option is to follow contributing guide linked by @giswqs and add the metadata to xyzservices-providers.JSON
. That way it is easier to find than having it only remotely on QMS (you need to know it is there).
That said, having it in both is the optimal solution for a wider community.
Before I find a programmatic way to fill out the json with all the services, does this look right? (from https://new.nowcoast.noaa.gov/help/#!section=rest-layer-ids)
I am not sure what {s} stands for in the example, and whether {xmin},{ymin}, etc are accepted (since the example only shows {X},{Y},{Z}.
{
"analysis_meteohydro_sfc_qpe_time": {
"1_hr_quantitative_precipitation_accumulation": {
"url": "https://new.nowcoast.noaa.gov/arcgis/rest/services/nowcoast/analysis_meteohydro_sfc_qpe_time/MapServer/export?transparent=true&format=png8&layers=show:3&bbox={xmin},{ymin},{xmax},{ymax}&bboxSR=3857&imageSR=3857&size=256,256&f=image",
"max_zoom": 19,
"attribution": "(C) nowCOAST™",
"html_attribution": "© <a href=\"https://new.nowcoast.noaa.gov/help/#!section=abstract\">OpenStreetMap</a> contributors",
"name": "NOAA Quantitative Precipitation Estimates (Time Enabled) 1-Hr Quantitative Precipitation Accumulation (inches)"
},
"3_hr_quantitative_precipitation_accumulation": {
"url": "https://new.nowcoast.noaa.gov/arcgis/rest/services/nowcoast/analysis_meteohydro_sfc_qpe_time/MapServer/export?transparent=true&format=png8&layers=show:7&bbox={xmin},{ymin},{xmax},{ymax}&bboxSR=3857&imageSR=3857&size=256,256&f=image",
"max_zoom": 19,
"attribution": "(C) nowCOAST™",
"html_attribution": "© <a href=\"https://new.nowcoast.noaa.gov/help/#!section=abstract\">OpenStreetMap</a> contributors",
"name": "NOAA Quantitative Precipitation Estimates (Time Enabled) 3-Hr Quantitative Precipitation Accumulation (inches)"
},
},
}
@ahuang11 this is a WMS data source, not XYZ, that is why the placeholders are different. We currently don't support those but as said in https://github.com/geopandas/xyzservices/issues/49#issuecomment-891856934 we could, in theory, do that. It would need some thinking though to ensure we don't mix XYZ and WMS (and potentially other types) together in a confusing way.
https://new.nowcoast.noaa.gov/help/#!section=rest-usage
It would unlock a lot, a lot of new tiles (see list @ https://new.nowcoast.noaa.gov/help/#!section=rest-layer-ids)