Table of Contents

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

int

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

lod int

The level of detail.

Returns

GeometryModel3D

The Model3D.

Load(ISRTMDataCell)

public void Load(ISRTMDataCell cell)

Parameters

cell ISRTMDataCell

The source cell.

Load(string)

public void Load(string source)

Parameters

source string

The source file.