Elevation data: Difference between revisions
(Created page with "Elevation data and other single channel data can be used for various analysis and visualization purposes throughout the Maria system. This page shows an overview of the elevat...") |
No edit summary |
||
Line 5: | Line 5: | ||
== IElevationData == | == IElevationData == | ||
This interface contains methods for querying elevation data from a set of data layers. The data layers are usually managed by the '''ElevationDataManager''', but you can also specify | This interface contains methods for querying elevation data from a set of data layers. | ||
=== Data layers === | |||
An elevation data set consists of one or more elevation data map entries stored on a Maria raster data service. The set of available map entries can be queried from the catalog service and any MapEntry with ''MapContentType = ElevationData'' can be used. | |||
The elevation data layers are usually managed by the '''ElevationDataManager''', but you can also specify | |||
them explicitly through a MapTemplate with the SetTemplate method | them explicitly through a MapTemplate with the SetTemplate method | ||
<source lang="c#"> | <source lang="c#"> | ||
void SetTemplate(MapTemplate template); | /// <summary> | ||
/// Setup elevation data layers from the given template. | |||
/// This method will clear the current elevation data set. | |||
/// </summary> | |||
void SetTemplate(MapTemplate template); | |||
/// <summary> | |||
/// Get the currently active elevation data template. | |||
/// </summary> | |||
/// <returns></returns> | |||
MapTemplate GetTemplate(); | |||
</source> | </source> | ||
The format of this elevation data template is described [[Elevation_layers_in_templates#Elevation_data_layers|here]] | The format of this elevation data template is described [[Elevation_layers_in_templates#Elevation_data_layers|here]] | ||
=== Elevation queries === | |||
The main purpose of the IElevationData interface is to calculate elevation values in a certain geographical point or area. The following methods are supported for this: | |||
=== Note on async methods === | |||
The '''IElevationData''' interface currently contains a set of methods with Async in their names which return '''Task''' objects. We don't really recommend using these, and they may be obsoleted in a future version. Instead, wrap any time consuming elevation methods in your own async caller method to have better control over these operations. | |||
[[Category:Elevation data]] | [[Category:Elevation data]] |
Revision as of 10:15, 22 December 2021
Elevation data and other single channel data can be used for various analysis and visualization purposes throughout the Maria system. This page shows an overview of the elevation data programming API's
The two main interfaces for elevation data are IElevationData (implemented by the NativeElevationData class) and IElevationDataManager (implemented by ElevationDataManager).
IElevationData
This interface contains methods for querying elevation data from a set of data layers.
Data layers
An elevation data set consists of one or more elevation data map entries stored on a Maria raster data service. The set of available map entries can be queried from the catalog service and any MapEntry with MapContentType = ElevationData can be used.
The elevation data layers are usually managed by the ElevationDataManager, but you can also specify them explicitly through a MapTemplate with the SetTemplate method
/// <summary>
/// Setup elevation data layers from the given template.
/// This method will clear the current elevation data set.
/// </summary>
void SetTemplate(MapTemplate template);
/// <summary>
/// Get the currently active elevation data template.
/// </summary>
/// <returns></returns>
MapTemplate GetTemplate();
The format of this elevation data template is described here
Elevation queries
The main purpose of the IElevationData interface is to calculate elevation values in a certain geographical point or area. The following methods are supported for this:
Note on async methods
The IElevationData interface currently contains a set of methods with Async in their names which return Task objects. We don't really recommend using these, and they may be obsoleted in a future version. Instead, wrap any time consuming elevation methods in your own async caller method to have better control over these operations.