Example_GeodataProcessing
Description
Full source code is included in the Tinman 3D SDK download. |
Example code snippets regarding processing of geodata.
- See also
Public / Methods
BuildHeightmapCube
Builds a geo-referenced cubemap heightmap dataset.
- IOException
-
If an I/O error has occurred.
- TinmanException
-
If the background operation has failed.
- See also
BuildHeightmapRect
Builds a geo-referenced rectangular heightmap dataset.
- IOException
-
If an I/O error has occurred.
- TinmanException
-
If the background operation has failed.
- See also
BuildPyramidCube
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.
- See also
BuildPyramidRect
Builds a geo-referenced rectangular pixel pyramid dataset.
- IOException
-
If an I/O error has occurred.
- TinmanException
-
If the background operation has failed.
- See also
CreateCubemapTexture
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.
ExportHeightmap
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.
ExportPixelPyramid
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.