<div dir="ltr">Hi Michael,<div><br></div><div>Thanks a lot for your reply.</div><div><br></div><div>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. </div><div><br></div><div>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.</div><div><br></div><div>Thanks a lot,</div><div>carl</div><div> </div><div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 3, 2020 at 5:42 PM <<a href="mailto:michael.smith.erdc@gmail.com">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 dir="auto">Carl,<div><br></div><div>Try something like</div><div><br></div><div><div>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></div><div><br></div><div>If you want a different size than 2500x2500 just change that size</div><br><div dir="ltr">Michael Smith</div><div dir="ltr">US Army Corps</div><div dir="ltr"><br></div><div dir="ltr"><br><blockquote type="cite">On Jun 3, 2020, at 8:27 PM, Carl Godkin <<a href="mailto:cgodkin@gmail.com" target="_blank">cgodkin@gmail.com</a>> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><div dir="ltr">Hi,<div><br></div><div>I'm unable to figure out how to retrieve elevation data (grids) from the 3DEP program's endpoints.</div><div><br></div><div>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>  </div><div><br></div><div>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.</div><div><br></div><div>If you have some experience with this (or a related public elevation data source), would you please send an example "gdal_translate" command line?</div><div></div><div><br></div><div>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.</div><div><br></div><div>Thanks in advance for any help!</div><div><br></div><div>carl</div></div>
<span>_______________________________________________</span><br><span>gdal-dev mailing list</span><br><span><a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a></span><br><span><a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a></span></div></blockquote></div></div></blockquote></div>