AGI STK Objects 11 Send comments on this topic.
Add Method (IAgTerrainCollection)
See Also  Example
Location
The file path where the terrain is.
TerrainFileType





Description

Adds a terrain item to the collection.

Syntax

[Visual Basic .NET]
Public Function Add( _
   ByVal Location As ILocationString, _
   ByVal TerrainFileType As AgETerrainFileType _
) As IAgTerrain

[C#]
public IAgTerrain Add(
ILocationString Location,
AgETerrainFileType TerrainFileType
);

[Managed C++]
public: IAgTerrain^ Add(
ILocationString ^ Location,
AgETerrainFileType TerrainFileType
);

[Java]
public IAgTerrain add(
ILocationString Location,
AgETerrainFileType TerrainFileType
);

[Unmanaged C++]
public: HRESULT Add(
ILocationString * Location,
AgETerrainFileType TerrainFileType,
IAgTerrain ** ReturnValue
);

Parameters

Location
The file path where the terrain is.
TerrainFileType
Member Value Description
eUSGSDEM 0 U.S. Geological Survey Digital Elevation Model. Moderate resolution.
eGTOPO30 1 GTOPO30 global digital elevation model with horizontal grid spacing of 30 arc seconds. Use this for STK World terrain.
eNIMANGATerrainDir 2 NGA Digital Terrain Elevation Data (DTED).
eMOLATerrain 3 Mars Orbiter Laser Altimeter (MOLA)terrain data.
eGEODASGridData 5 GEODAS (GEOphysical DAta System), an interactive database management system developed by the National Geophysical Data Center (NGDC) for use in the assimilation, storage and retrieval of geophysical data.
eMUSERasterFile 6 MUSE Raster File: NGA elevation data that has been converted using the MUSE software raster importer. MUSE terrain files contain position information.
eNIMANGADTEDLevel0 7 NIM0 NIMA/NGA DTED Level 0 (.dto)
eNIMANGADTEDLevel1 8 NIM1 NIMA/NGA DTED Level 1 (.dt1)
eNIMANGADTEDLevel2 9 NIM2 NIMA/NGA DTED Level 2 (.dt2)
eNIMANGADTEDLevel3 10 NIM3 NIMA/NGA DTED Level 3 (.dt3)
eNIMANGADTEDLevel4 11 NIM4 NIMA/NGA DTED Level 4 (.dt4)
eNIMANGADTEDLevel5 12 NIM5 NIMA/NGA DTED Level 5 (.dt5)
eArcInfoBinGridFile 13 Arc/Info Binary Grid Files (.adf)
eArcInfoBinGridMSLFile 14 Arc/Info Binary Grid - MSL (.adf)
ePDTTTerrainFile 15 AGI Terrain File (.pdtt)
eAGIWorldTerrain 16 AGI World Terrain File (.hdr)
eTIFFMSLTerrainFile 17 Tagged Image File Format - MSL (.tif)
eTIFFTerrainFile 18 Tagged Image File Format (.tif)
eArcInfoGridDepthMSLFile 19 ArcInfo Grid Depth MSL (.adf)

Example

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

See Also

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1