Class HgtTerrainModel
- Namespace
- HelixToolkit.Wpf
- Assembly
- HelixToolkit.Wpf.dll
Represents a SRTM terrain model.
public class HgtTerrainModel : ITerrainModel
- Inheritance
-
HgtTerrainModel
- Implements
- Inherited Members
Remarks
Supports the following terrain file types .hgt .hgt.zip
Read .hgt files from disk, keeps the model data and creates the Model3D. The .hgt.zip format is a gzip compressed version of the .hgt format.
The source of the reading logic for this class is taken from the following git repository: https://github.com/itinero/srtm
Properties
Lod
Gets the lod.
public int Lod { get; }
Property Value
Offset
Gets or sets the offset.
public Point3D Offset { get; set; }
Property Value
- Point3D
The offset.
Texture
Gets or sets the texture.
public TerrainTexture? Texture { get; set; }
Property Value
- TerrainTexture
The texture.
Methods
CreateModel(int)
Creates the 3D model of the terrain.
public GeometryModel3D? CreateModel(int lod)
Parameters
lodintThe level of detail.
Returns
- GeometryModel3D
The Model3D.
Load(ISRTMDataCell)
https://www.usgs.gov/publications/shuttle-radar-topography-mission-srtm This method is intended to load SRTM cell.
public void Load(ISRTMDataCell cell)
Parameters
cellISRTMDataCellThe source cell.
Load(string)
public void Load(string source)
Parameters
sourcestringThe source file.