Example_Heightmap

Description

static class Tinman.Demo.Examples.Example_Heightmap

Full source code is included in the Tinman 3D SDK download.

Examples on how to use the IHeightmap interface.

Public / Methods

Project


[OwnerReturn]
public static method Project → (3)

heightmap in : IHeightmap

[not-null]
The input heightmap.

center in : LatLon

The geographic coordinates of the center of the output heightmap.

imagePath opt : Path = null

Path to use for writing the grayscale elevation image or null to skip this.

returns → IHeightmap

The output heightmap.

Projects the given input heightmap to a geo-referenced rectangular output heightmap.

IOException

If an I/O error has occurred.

Read_​Lat​Lon_1


public static method Read_LatLon_1 → (3)

latLon in : LatLon

The input latitude and longitude.

pathElevation in : Path

[not-null]
Path to the elevation dataset.

pathGravity opt : Path = null

Path to the gravity model dataset or null.

Reads height values from an elevation dataset, using latitude and longitude as input.

IOException

If an I/O error has occurred.

Read_​Lat​Lon_2


public static method Read_LatLon_2 → (2)

latLon in : LatLon

The geographic coordinates.

elevation in : IHeightmap

[not-null]
The elevation model.

Reads elevation from the given elevation model.

GeorefException

If the geo-reference parameters are incomplete or invalid.

IOException

If an I/O error has occurred.

Read_​Lat​Lon_3


public static method Read_LatLon_3 → (2)

latLon in : LatLon

The geographic coordinates.

elevation in : IHeightmap

[not-null]
The elevation model.

Reads elevation from the given elevation model.

IOException

If an I/O error has occurred.

GeorefException

If the geo-reference parameters are incomplete or invalid.