Track + elevation analysis connection: Difference between revisions

From Maria GDK Wiki
Jump to navigation Jump to search
(Created page with "With the `ITrackElevationAnalysisConnectionManager` you can attach an Elevation analysis observer to a moving track so that it updates automatically when the track moves. Create with the `MariaTrackElevationAnalysisConnectionFactory` which can be found in the TPG.Maria.Common namespace Example:")
 
No edit summary
 
Line 4: Line 4:


Example:
Example:
<source lang="csharp">
  // Create connection manager from track layer andd elevation analysis layer
  var connectionFactory = new MariaTrackElevationAnalysisConnectionFactory(_elevationAnalysisLayer, _trackLayer);
  _trackElevationAnalysisConnectionManager = connectionFactory.New();
  // Do the actual connection
  _trackElevationAnalysisConnectionManager.Connect(new ItemId(_trackLayer.ActiveTrackList, TrackID), _lineOfSightObserverData.Id);
</source>
[[Category:Tracks]]

Latest revision as of 10:25, 7 July 2023

With the `ITrackElevationAnalysisConnectionManager` you can attach an Elevation analysis observer to a moving track so that it updates automatically when the track moves.

Create with the `MariaTrackElevationAnalysisConnectionFactory` which can be found in the TPG.Maria.Common namespace

Example:

   // Create connection manager from track layer andd elevation analysis layer
   var connectionFactory = new MariaTrackElevationAnalysisConnectionFactory(_elevationAnalysisLayer, _trackLayer);
   _trackElevationAnalysisConnectionManager = connectionFactory.New();

   // Do the actual connection
   _trackElevationAnalysisConnectionManager.Connect(new ItemId(_trackLayer.ActiveTrackList, TrackID), _lineOfSightObserverData.Id);