-1

I want to download 17,613 tiles from a shapefile that has links to download each DEM.

What would be the best way to do this?

Attribute table

4
  • 1
    Build a text or CSV file from your data and use uGET to retrieve the data. Reduce file sizes? GDAL shell script or ArcGIS Pro modelbuilder with iterators come to mind. Rebuild your question to contain one question or this will get closed. Commented Mar 6 at 16:01
  • 2
    or point a csv file in wget... like wget.exe --input-file="batch_list.csv" but this is more a file/IT question than a GIS question. Commented Mar 6 at 16:21
  • Thank you. For anyone reading this in the future I right clicked on my layer,, save as,, csv. It would be neat to have a plug-in that can do the downloading thouhgh Commented Mar 6 at 16:26
  • Search stackoverflow Commented Mar 7 at 7:03

1 Answer 1

1

My solution requires a little Python knowledge, so if you're comfortable with coding this problem becomes much easier to solve. There are several ways of achieving the same thing, with different packages, so I will offer stepwise instructions of what you can try rather than specific code, and you can experiment with packages you're comfortable with.

  1. Export the attribute table of the shapefile to a csv or some other text file format you can easily access in Python.

  2. In a Python script, read in the new file you've created, probably with something like Pandas, and extract the column of download links as a list.

  3. Loop over each download link in the list and use one of Python's built-in libraries such as urrlib or requests to download each DEM to a directory in an automated fashion.

  4. In terms of compression, I guess you will have to check and see if the DEMs are already in a compressed format or not. Try downloading just one and use QGIS layer properties to see if it has compression applied. If it doesn't have compression applied, you can use GDAL to apply a compression to each file after it downloads, which will shrink the file size. If it already has compression applied, you might be out of luck on the file size.

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.