STK ObjectsSend comments on this topic.
Add Method (IAgTerrainCollection)
See Also
location
The file path where the terrain is.
TerrainFileType
Windows





Windows & Linux

Description

Adds a terrain item to the collection.

Syntax

[Visual Basic .NET]
Public Function Add( _
    ByVal location As String, _
    ByVal TerrainFileType As AgETerrainFileType _
) As IAgTerrain
[Managed C++]
public: IAgTerrain^ Add(
    String __gc ^ location,
    AgETerrainFileType TerrainFileType
);
[Unmanaged C++]
public: HRESULT Add(
    BSTR location,
    AgETerrainFileType TerrainFileType,
    IAgTerrain ** ppRetVal
);
[Python - STK API ]
def Add(self, location:str, TerrainFileType:"AgETerrainFileType") -> "IAgTerrain":

Parameters

location
The file path where the terrain is.
TerrainFileType

See Also

Example

Add Terrain for Analysis
[MATLAB]
% IAgStkObjectRoot root: STK Object Model Root
terrain = root.CurrentScenario.Terrain.Item('Earth').TerrainCollection.Add('C:\Program Files\AGI\STK 12\Data\Resources\stktraining\samples\SRTM_Skopje.pdtt', 'ePDTTTerrainFile');
terrain.UseTerrain = true;


        
© 2024 Analytical Graphics, Inc. All Rights Reserved.