The support forum is temporarily read-only. For urgent requests, please email contact[at]psyberia.net

[resolved] Help with snow depth aqx

Any question about the app? Ask it here
Post Reply
abarabas

[resolved] Help with snow depth aqx

Post by abarabas »

I'm trying to generate an .aqx file for the snow depth map, but I get [bad code: 400 - Bad Request] showing up on the map instead.

I'm using the URL described here https://www.reddit.com/r/Ultralight/com ... p_overlay/, which someone used for caltopo.

Code: Select all

https://idpgis.ncep.noaa.gov/arcgis/rest/services/NWS_Observations/NOHRSC_Snow_Analysis/MapServer/export?dpi=96&transparent=true&format=png8&layers=show:3&bbox={left},{bottom},{right},{top}&bboxSR=102100&imageSR=102100&size={tilesize},{tilesize}&f=image

Code: Select all

<?xml version="1.0" encoding="utf-8" ?>
<aqx version="11">
 
  <name>Snow Depth AQX</name>
  <description>NOAA SNODAS Depth</description>
 
  <source id="SNOWDEPTH">
    <name>Snow Depth</name>
    <zoom-levels z="1-17">
      <server><![CDATA[https://idpgis.ncep.noaa.gov/arcgis/rest/services/NWS_Observations/NOHRSC_Snow_Analysis/MapServer/export?dpi=96&transparent=true&format=png8&layers=show:3&bbox={left},{bottom},{right},{top}&bboxSR=102100&imageSR=102100&size={tilesize},{tilesize}&f=image]]></server>
    </zoom-levels>
  </source>
 
</aqx>
I also would like to add some Sentinel data if possible, but I'm not sure how to format it. This is the WMS link for my configuration.

Code: Select all

https://services.sentinel-hub.com/ogc/wms/2da0cd13-073a-4867-9791-b4978e64a057
Psyberia-Support
Site Admin
Posts: 6407
Joined: Wed Apr 14, 2010 9:41 pm

Re: Help with snow depth aqx

Post by Psyberia-Support »

Hi,

You can try with this file:

Code: Select all

<?xml version="1.0" encoding="utf-8" ?>
<aqx version="11">
 
  <name>Snow Depth AQX</name>
  <description>NOAA SNODAS Depth</description>
 
	<source id="TRUE-COLOR-S2L2A">
		<name>TRUE COLOR S2L2A</name>
		<preview-location>-92.08,42.40,8</preview-location>
		<zoom-levels z="7,8,9,10,11,12,13,14,15,16,17,18">
			<projection-code>EPSG:3857</projection-code>
			<bbox-crs-code>EPSG:3857</bbox-crs-code>
			<update-delay>1W</update-delay>
			<tiles-size>512</tiles-size>
			<server><![CDATA[https://services.sentinel-hub.com/ogc/wms/2da0cd13-073a-4867-9791-b4978e64a057?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&LAYERS=TRUE-COLOR-S2L2A&BBOX={$bbox}&CRS=EPSG:3857&SRS=EPSG:3857&WIDTH=512&HEIGHT=512&STYLES=default&FORMAT=image%2Fpng]]></server>
		</zoom-levels>
	</source>
	
  <source id="SNOWDEPTH" layer="true">
		<name>Snow Depth (NOHRSC)</name>
		<outline>-131.67478070930298,6.950468434332238 -131.67478070930298,77.85840640807452 -52.486318435271315,77.85840640807452 -52.486318435271315,6.950468434332238</outline>
		<preview-location>-92.08,42.40,8</preview-location>
		<zoom-levels z="0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17">
			<projection-code>EPSG:3857</projection-code>
			<bbox-crs-code>EPSG:3857</bbox-crs-code>
			<update-delay>1W</update-delay>
			<server><![CDATA[https://idpgis.ncep.noaa.gov/arcgis/rest/services/NWS_Observations/NOHRSC_Snow_Analysis/MapServer/export?f=image&bbox={$bbox}&imageSR=102100&bboxSR=102100&layers=show:0,1,2,3,4,5,6,7&size=256,256&transparent=true&format=png24]]></server>
		</zoom-levels>
	</source>
 
</aqx>
Do you like AlpineQuest ? Leave a small comment on Google Play !
abarabas

Re: Help with snow depth aqx

Post by abarabas »

That's perfect, thank you very much for the help!
Post Reply