<div dir="ltr">Hi,<br><div>Now that I have my WMS and WCS servers working well (thanks, list!!), I have one more thing I would like to figure out how to do.</div><div><br></div><div>I want to do point queries on [Lat,Lon] points for their elevation from the terrain layer I have.</div><div><br></div><div>I have done some searching and come across various ideas such as Raster Query (<a href="https://mapserver.org/input/raster.html#raster-query">https://mapserver.org/input/raster.html#raster-query</a>) and a query template  (<a href="https://gis.stackexchange.com/questions/167239/mapserver-raster-picking-elevation-data">https://gis.stackexchange.com/questions/167239/mapserver-raster-picking-elevation-data</a>) but haven't found enough information for either to implement it.</div><div><br></div><div>I came up with a solution that works fine, but might be considered as going "All Around the Barn"   What works is to add an ASCII output format to my map file that serves terrain like this:</div><div><br></div><div><div style="line-height:19px"><div style="color:rgb(0,0,0);font-size:14px;white-space:pre;font-family:Consolas,"Courier New",monospace">    <span style="color:rgb(121,94,38)">OUTPUTFORMAT</span></div><div style="color:rgb(0,0,0);font-size:14px;white-space:pre;font-family:Consolas,"Courier New",monospace">      <span style="color:rgb(0,0,255)">NAME</span> XYZ</div><div style="color:rgb(0,0,0);font-size:14px;white-space:pre;font-family:Consolas,"Courier New",monospace">      <span style="color:rgb(0,0,255)">DRIVER</span> "GDAL/XYZ"</div><div style="color:rgb(0,0,0);font-size:14px;white-space:pre;font-family:Consolas,"Courier New",monospace">      <span style="color:rgb(0,0,255)">MIMETYPE</span> "text/plain"</div><div style="color:rgb(0,0,0);font-size:14px;white-space:pre;font-family:Consolas,"Courier New",monospace">      <span style="color:rgb(0,0,255)">IMAGEMODE</span> <span style="color:rgb(0,16,128)">FLOAT32</span></div><div style="color:rgb(0,0,0);font-size:14px;white-space:pre;font-family:Consolas,"Courier New",monospace">      <span style="color:rgb(0,0,255)">EXTENSION</span> "txt"</div><div style="color:rgb(0,0,0);font-size:14px;white-space:pre;font-family:Consolas,"Courier New",monospace">    <span style="color:rgb(121,94,38)">END</span></div><div style="color:rgb(0,0,0);font-size:14px;white-space:pre;font-family:Consolas,"Courier New",monospace"><span style="color:rgb(121,94,38)"><br></span></div><div style="color:rgb(0,0,0);font-size:14px;white-space:pre"><span style="color:rgb(121,94,38)"><font face="arial, sans-serif">and then use GetCoverage on a small rectangle whose lower-left corner </font></span></div><div style="color:rgb(0,0,0);font-size:14px;white-space:pre"><span style="color:rgb(121,94,38)"><font face="arial, sans-serif">is the point whose elevation I want:</font></span></div><div style="color:rgb(0,0,0);font-size:14px;white-space:pre"><br></div><div style="color:rgb(0,0,0);font-size:14px;white-space:pre"><span style="color:rgb(33,33,33);font-size:12px;white-space:pre-wrap"><font face="monospace"><a href="http://localhost:8080/wcs?SERVICE=WCS&VERSION=2.0.1&REQUEST=GetCoverage&coverageid=SRTM_3_arc-second_grid&format=XYZ&subset=Lat(42.948,42.958)&subset=Lon(-122.086,-122.076)">http://localhost:8080/wcs?SERVICE=WCS&VERSION=2.0.1&REQUEST=GetCoverage&coverageid=SRTM_3_arc-second_grid&format=XYZ&subset=Lat(42.948,42.958)&subset=Lon(-122.086,-122.076)</a></font></span></div><div style="">

</div><div style="color:rgb(0,0,0);font-size:14px;white-space:pre"><font color="#212121" face="Inter, OpenSans, Helvetica, Arial, sans-serif"><span style="font-size:12px;white-space:pre-wrap"><br></span></font></div><div style="color:rgb(0,0,0);white-space:pre"><font color="#212121" face="arial, sans-serif" style=""><span style="white-space:pre-wrap">and then take the first line of the returned output file.</span></font></div><div style="color:rgb(0,0,0);white-space:pre"><font color="#212121" face="arial, sans-serif" style=""><span style="white-space:pre-wrap"><br></span></font></div><div style=""><font color="#212121" face="arial, sans-serif"><span style="white-space:pre-wrap">What would Mapserver best practice be for a problem like this?</span></font></div><div style=""><font color="#212121" face="arial, sans-serif"><span style="white-space:pre-wrap"><br></span></font></div><div style=""><font color="#212121" face="arial, sans-serif"><span style="white-space:pre-wrap">Thanks very much,</span></font></div><div style=""><font color="#212121" face="arial, sans-serif"><span style="white-space:pre-wrap"><br></span></font></div><div style=""><font color="#212121" face="arial, sans-serif"><span style="white-space:pre-wrap">carl</span></font></div><div style="color:rgb(0,0,0);white-space:pre"><font color="#212121" face="arial, sans-serif" style=""><span style="white-space:pre-wrap"><br></span></font></div><div style="color:rgb(0,0,0);white-space:pre"><font color="#212121" face="arial, sans-serif" style=""><span style="white-space:pre-wrap"><br></span></font></div></div></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div>