GeodataPipeline
Description
- Derived from
-
Disposable abstract
Full source code is included in the Tinman 3D SDK download. |
An example pipeline for importing geodata.
This class sets up a simple processing pipeline for importing geodata into a 3D terrain. Processing can be performed up-front in a separate pre-processing step or at runtime to add new data on-the-fly.
Public / Methods
BuildDataset
Processes the given geodata file.
For a geodata file named geodata.tif
, the following ancillary sibling files are generated:
-
geodata.cfg
A config script (see ConfigScript) with a member namedimage
that holds an image descriptor (see IImage) forgeodata.tif
. If the config script file does not exist, a default script will be created. Otherwise, the existing file is read, validated and reformatted. -
geodata.info
The image descriptor (see IImage) that has been used to read the contents of the geodata file. -
geodata.json
Holds metadata which is used to detect changes to the geodata file and the config script, in order to be able to trigger geodata processing only if necessary. -
geodata.error
When geodata processing has failed, this file contains the error message (see TinmanError).
- IOException
-
If an I/O error has occurred.
- ValidatingException
-
If the syntax of
geodata.cfg
is malformed.
- ConfigException
-
If the image descriptor configuration in
geodata.cfg
is invalid.
- GeorefException
-
If the geo-reference of the geodata file is incomplete, malformed or not supported.
- TinmanException
-
If an error has occurred while importing the geodata file into the dataset.
CollectHeightmaps
Collects all heightmap datasets that are present in the content directory and merges them into a single heightmap.
- IOException
-
If an I/O error has occurred.