I need to calculate hillshade of folder using gdaldem hillshade which has 60 files in it. How can i do it using command prompt window.

closed as off-topic by PolyGeo Feb 18 '16 at 8:32

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions seeking help to debug/write/improve code must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Providing a clear problem statement and evidence of a code attempt will help others to help you. See: How to create a Minimal, Complete, and Verifiable example." – PolyGeo
If this question can be reworded to fit the rules in the help center, please edit the question.


first solution is to create a FOR loop in DOS, but this is a bit out of scope.

second solution is to build a vrt (make a virtual mosaic in your case) with all files and run gdaldem on it

gdalbuilvrt mosaic.vrt path_to_your_images/*.tif
gdaldem hillshade mosaic.vrt output_hillshade.tif
  • how can i save hillshaded files with another name. – Ahsan Mukhtar Nov 27 '15 at 10:46
  • the vrt is a mosaic, then you have a single file. – radouxju Nov 27 '15 at 11:36
  • i don't understand. Can you provide me the full details with code plz – Ahsan Mukhtar Nov 27 '15 at 12:58
  • i am beginner to it. – Ahsan Mukhtar Nov 27 '15 at 12:58
  • vrt will virtually stitch the files together in a single large file. You just need to replace the input and output paths in my edited post. – radouxju Nov 27 '15 at 14:17

Not the answer you're looking for? Browse other questions tagged or ask your own question.