HGT

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
(Links)
(Probably Geospatial should be the primary category.)
Line 1: Line 1:
 
{{FormatInfo
 
{{FormatInfo
 
|formattype=electronic
 
|formattype=electronic
|subcat=Graphics
+
|subcat=Geospatial
 
|extensions={{ext|hgt}}
 
|extensions={{ext|hgt}}
 
}}
 
}}
 
+
'''HGT''' (Height) files contain elevation data for regions of the Earth's surface described by the name of the file. Each file describes a tile with a height of one degree of latitude and a width of one degree of longitude. The name of each file refers to the latitude and longitude at the lower left corner of the tile.
Height files contain elevation data for regions of the Earth's surface described by the name of the file. Each file describes a tile with a height of one degree of latitude and a width of one degree of longitude. The name of each file refers to the latitude and longitude at the lower left corner of the tile.
+
  
 
== Format ==
 
== Format ==
Line 25: Line 24:
 
* [http://dds.cr.usgs.gov/srtm/version2_1/Documentation/ SRTM Topography]
 
* [http://dds.cr.usgs.gov/srtm/version2_1/Documentation/ SRTM Topography]
 
* [http://dds.cr.usgs.gov/srtm/version2_1/Documentation/Continent_def.gif Continent definitions] showing the regions covered by the data.
 
* [http://dds.cr.usgs.gov/srtm/version2_1/Documentation/Continent_def.gif Continent definitions] showing the regions covered by the data.
 +
 +
[[Category:Graphics]]

Revision as of 18:54, 26 April 2014

File Format
Name HGT
Ontology
Extension(s) .hgt

HGT (Height) files contain elevation data for regions of the Earth's surface described by the name of the file. Each file describes a tile with a height of one degree of latitude and a width of one degree of longitude. The name of each file refers to the latitude and longitude at the lower left corner of the tile.

Contents

Format

Each file consists of a sequence of 16-bit signed values stored in big-endian byte order, arranged in row major order, meaning that the samples for each row are stored consecutively. The total number of values depends on the dimensions of the dataset held by each file. For 1 arc-second resolution data, each file will contain 3601 * 3601 values; for 3 arc-second resolution data, each file will contain 1201 * 1201 values.

Each value corresponds to the elevation measured in meters referenced to the WGS84 geoid.

The order of rows runs from north to south and the order of values in each row runs from west to east. This means that the first value in the last row in each file corresponds to the position specified by the name of the file. Each tile described by the data overlaps adjacent tiles to the north and south by a single row in each direction, and to the west and east by a single column in each direction. In other words, the first row of values in a file is the same as the last row of values in the file that describes the tile immediately to the north of it. Similarly, the last column of values will be the same as the first column of values in the file that describes the tile immediately to the east of it.

Identifiers

The filename extension .hgt is used.

Software

Sample files

Links

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox