QGIS – How to Open .hgt Files on QGIS 3.2

hgtqgissrtm

I have downloaded a hgt file from EarthExplorer but when I try to load it on QGIS I get an error "GDAL provider cannot open GDAL dataset".

I was under the impression that hgt files were supported. It this a known issue? Is there any workaround?

Best Answer

Keeping the original filename is essential because the HGT format is a very simple file format (simply a 3601×3601 array of short integers which represent the terrain heights) with no embedded metadata. There is nothing within the file to indicate which part of the Earth’s surface it covers, nor are any separate metadata files provided. The position is encoded into the file’s name. For example, the file N19W157.hgt covers a 1°×1° section of the earth at latitude 19° North and longitude 157° West. It is therefore imperative that these files are not renamed, as the only way to determine the coordinates is by parsing the file name.

Related Question