Track + elevation analysis connection

From Maria GDK Wiki
Jump to navigation Jump to search

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);