<div dir="ltr">Hi again,<div><br><div>In case anyone else is interested, I followed one of the links that Michael provided and found that I should be able to use WCS directly:</div><div><br></div><div>gdalinfo "WCS:<a href="https://elevation.nationalmap.gov:443/arcgis/services/3DEPElevation/ImageServer/WCSServer?version=2.0.1&coverage=DEP3Elevation">https://elevation.nationalmap.gov:443/arcgis/services/3DEPElevation/ImageServer/WCSServer?version=2.0.1&coverage=DEP3Elevation</a>"<br></div><div> </div><div>This returns one band of Float32 elevation data. This is exactly what I want! Thanks to both of you for the suggestions,</div></div><div><br></div><div>carl</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 4, 2020 at 7:55 AM Carl Godkin <<a href="mailto:cgodkin@gmail.com">cgodkin@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Michael,<div><br></div><div>That seems perfect. I'll experiment with that. <div><br></div><div>Thank you very much!<div><br></div><div>carl</div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 4, 2020 at 7:45 AM Michael Smith <<a href="mailto:michael.smith.erdc@gmail.com" target="_blank">michael.smith.erdc@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="EN-US"><div><p class="MsoNormal">Looks like they don’t provide the data from that service just the extents. To get the data, they have the product view <a href="https://viewer.nationalmap.gov/basic/#productGroupSearch" target="_blank">https://viewer.nationalmap.gov/basic/#productGroupSearch</a><u></u><u></u></p><p class="MsoNormal"> that links to files for download<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Or you can access them directly via gdal with something like <u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">gdalinfo /vsizip//vsicurl/<a href="https://prd-tnm.s3.amazonaws.com/StagedProducts/Elevation/1/GridFloat/USGS_NED_1_n35w117_GridFloat.zip/usgs_ned_1_n35w117_gridfloat.flt" target="_blank">https://prd-tnm.s3.amazonaws.com/StagedProducts/Elevation/1/GridFloat/USGS_NED_1_n35w117_GridFloat.zip/usgs_ned_1_n35w117_gridfloat.flt</a><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Mike<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">-- <u></u><u></u></p><div><p class="MsoNormal">Michael Smith<u></u><u></u></p><p class="MsoNormal">US Army Corps of Engineers<u></u><u></u></p><p class="MsoNormal">Remote Sensing/GIS Center<u></u><u></u></p></div><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(181,196,223);padding:3pt 0in 0in"><p class="MsoNormal"><b><span style="font-size:12pt;color:black">From: </span></b><span style="font-size:12pt;color:black">Carl Godkin <<a href="mailto:cgodkin@gmail.com" target="_blank">cgodkin@gmail.com</a>><br><b>Date: </b>Thursday, June 4, 2020 at 10:28 AM<br><b>To: </b><<a href="mailto:michael.smith.erdc@gmail.com" target="_blank">michael.smith.erdc@gmail.com</a>><br><b>Cc: </b><<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a>><br><b>Subject: </b>Re: [gdal-dev] Using GDAL WMS with USGS 3DEPElevationIndex<u></u><u></u></span></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Hi Michael,<u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Thanks a lot for your reply.<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">I managed to come up with something sort of like that by using gdal_translate to a WMS service description file and then using that. <u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">But I don't see how to get elevations from there. Have you figured that out? I know how to get imagery, but I'm interested in elevation values.<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Thanks a lot,<u></u><u></u></p></div><div><p class="MsoNormal">carl<u></u><u></u></p></div><div><p class="MsoNormal"> <u></u><u></u></p></div></div><p class="MsoNormal"><u></u> <u></u></p><div><div><p class="MsoNormal">On Wed, Jun 3, 2020 at 5:42 PM <<a href="mailto:michael.smith.erdc@gmail.com" target="_blank">michael.smith.erdc@gmail.com</a>> wrote:<u></u><u></u></p></div><blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-right:0in"><div><p class="MsoNormal">Carl,<u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Try something like<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><div><p class="MsoNormal">gdal_translate -f gtiff "<GDAL_WMS><Service name=\"AGS\"><ServerUrl><a href="https://index.nationalmap.gov/arcgis/rest/services/3DEPElevationIndex/MapServer" target="_blank">https://index.nationalmap.gov/arcgis/rest/services/3DEPElevationIndex/MapServer</a></ServerUrl><BBoxOrder>xyXY</BBoxOrder><SRS>3857</SRS></Service><DataWindow><UpperLeftX>-20037508.34</UpperLeftX><UpperLeftY>20037508.34</UpperLeftY><LowerRightX>20037508.34</LowerRightX><LowerRightY>-20037508.34</LowerRightY><SizeX>2500</SizeX><SizeY>2500</SizeY></DataWindow></GDAL_WMS>" test1.tif -projwin ulx uly lrx lry -projwin_srs <srs of your window> -t_srs <srs you want for the output><u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">If you want a different size than 2500x2500 just change that size<u></u><u></u></p></div><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">Michael Smith<u></u><u></u></p></div><div><p class="MsoNormal">US Army Corps<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><br><br><u></u><u></u></p><blockquote style="margin-top:5pt;margin-bottom:5pt"><p class="MsoNormal" style="margin-bottom:12pt">On Jun 3, 2020, at 8:27 PM, Carl Godkin <<a href="mailto:cgodkin@gmail.com" target="_blank">cgodkin@gmail.com</a>> wrote:<u></u><u></u></p></blockquote></div><blockquote style="margin-top:5pt;margin-bottom:5pt"><div><p class="MsoNormal"><u></u><u></u></p><div><p class="MsoNormal">Hi,<u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">I'm unable to figure out how to retrieve elevation data (grids) from the 3DEP program's endpoints.<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Starting here: <a href="https://index.nationalmap.gov/arcgis/rest/services/3DEPElevationIndex/MapServer" target="_blank">https://index.nationalmap.gov/arcgis/rest/services/3DEPElevationIndex/MapServer</a> <u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">it would seem to be possible but I just cannot get anything back other than solid white images. Most of the help from that page leads off to ArcGIS-land which I don't have or want to use. And Googling for 3DEP leads only to more government sites that aren't helpful.<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">If you have some experience with this (or a related public elevation data source), would you please send an example "gdal_translate" command line?<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">I'd really like to figure out how to download terrain (as perhaps a GeoTIFF with floating point elevations) for an arbitrary CONUS lat/lon range.<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Thanks in advance for any help!<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">carl<u></u><u></u></p></div></div><p class="MsoNormal">_______________________________________________<br>gdal-dev mailing list<br><a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br><a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><u></u><u></u></p></div></blockquote></div></div></blockquote></div></div></div>
</blockquote></div>
</blockquote></div>