<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body 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>https://index.nationalmap.gov/arcgis/rest/services/3DEPElevationIndex/MapServer</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 <cgodkin@gmail.com> 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">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>gdal-dev@lists.osgeo.org</span><br><span>https://lists.osgeo.org/mailman/listinfo/gdal-dev</span></div></blockquote></div></body></html>