A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

New answers tagged

0

To speed up the process you could use gdallocationinfo with input/output redirection. Export all your lat/lon values to input.csv and read the corresponding cell values from output.csv: os.system(r'gdallocationinfo -valonly -wgs84 "%s" <%s >%s' % ('dhm.tif','input.csv','output.csv')) with open('output.csv','r') as f: result = f.read()


Top 50 recent answers are included