[gdal-dev] Using GDAL WMS with USGS 3DEPElevationIndex

michael.smith.erdc at gmail.com michael.smith.erdc at gmail.com
Wed Jun 3 17:42:05 PDT 2020


Try something like

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>

If you want a different size than 2500x2500 just change that size

Michael Smith
US Army Corps

> On Jun 3, 2020, at 8:27 PM, Carl Godkin <cgodkin at gmail.com> wrote:
> Hi,
> I'm unable to figure out how to retrieve elevation data (grids) from the 3DEP program's endpoints.
> Starting here:  https://index.nationalmap.gov/arcgis/rest/services/3DEPElevationIndex/MapServer  
> 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.
> If you have some experience with this (or a related public elevation data source), would you please send an example "gdal_translate" command line?
> 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.
> Thanks in advance for any help!
> carl
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20200603/5f0264dd/attachment.html>

More information about the gdal-dev mailing list