Example_GeodataProcessing

Description

static class Tinman.Demo.Examples.Code.Example_GeodataProcessing

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

Example code snippets regarding processing of geodata.

See also

GeodataPipeline

Public / Methods

Build​Heightmap​Cube


public static method BuildHeightmapCube → (2)

input in : Path

[not-null]
The path of the input dataset, created with BuildHeightmapRect.

output in : Path

[not-null]
The path of the output dataset.

Builds a geo-referenced cubemap heightmap dataset.

IOException

If an I/O error has occurred.

TinmanException

If the background operation has failed.

Build​Heightmap​Rect


public static method BuildHeightmapRect → (2)

input in : Path

[not-null]
The path of the input dataset, created with BuildPyramidRect.

output in : Path

[not-null]
The path of the output dataset.

Builds a geo-referenced rectangular heightmap dataset.

IOException

If an I/O error has occurred.

TinmanException

If the background operation has failed.

Build​Pyramid​Cube


public static method BuildPyramidCube → (2)

input in : Path

[not-null]
The path of the input dataset, created with BuildPyramidRect.

output in : Path

[not-null]
The path of the output dataset.

Builds a geo-referenced cubemap pixel pyramid dataset.

GeorefException

If input in cannot be un-projected to cubemap.

IOException

If an I/O error has occurred.

TinmanException

If the background operation has failed.

Build​Pyramid​Rect


public static method BuildPyramidRect → (1)

output in : Path

[not-null]
The output path of the dataset.

Builds a geo-referenced rectangular pixel pyramid dataset.

IOException

If an I/O error has occurred.

TinmanException

If the background operation has failed.

Create​Cubemap​Texture


public static method CreateCubemapTexture → (3)

panorama in : IImage

[not-null]
The panorama image.

texture in : Path

[not-null]
The base path of the output textures. See TextureHandle.FileCube.

format in : TextureFormat

[not-null]
The texture format to use.

Reads a panorama image in the horizontal coordinate system (i.e. altitude and azimuth angles) and converts it to a set of cubemap face textures.

The top-left corner of the panorama image is at altitude 90° and azimuth -180°.
The bottom-right corner of the panorama image is at altitude -90° and azimuth 180°.

To create the sky background textures of the Demo Application, go to…​
Deep Star Maps 2020
https://svs.gsfc.nasa.gov/4851
…​and download the starmap_2020_8k.exr file, convert it to PNG (or any other supported image format) and pass to this method.

IOException

If an I/O error has occurred.

ValidatingException

If the format of the given image is unsupported.

Export​Heightmap


public static method ExportHeightmap → (3)

source in : IHeightmap

[not-null]
The source heightmap.

region in : IShape

[not-null]
The region of interest.

dataset in : Path

[not-null]
Path to the output HGT dataset.

Exports all data in source in that lies in the given region in of interest.

IOException

If an I/O error has occurred.

TinmanException

If the background operation has failed.

Export​Pixel​Pyramid


public static method ExportPixelPyramid → (3)

source in : IPixelPyramid

[not-null]
The source pixel pyramid.

region in : IShape

[not-null]
The region of interest.

dataset in : Path

[not-null]
Path to the output PYR dataset.

Exports all data in source in that lies in the given region in of interest.

Use IPixelPyramid.Slice on source in before calling this method to limit the data export to specific pyramid levels.

IOException

If an I/O error has occurred.

TinmanException

If the background operation has failed.