Description
Opt whether to set altitude automatically by
using terrain data.
Property type
Read-write property
Syntax
[Visual Basic .NET] |
Public Property UseTerrain() As Boolean
|
[C#] |
public bool UseTerrain {get; set;}
|
[Managed C++] |
public: __property bool get_UseTerrain();
public: __property void set_UseTerrain(
bool
);
|
[Unmanaged C++] |
public: HRESULT get_UseTerrain(
VARIANT_BOOL * pRetVal
);
public: HRESULT put_UseTerrain(
VARIANT_BOOL NewUseTerrain
);
|
[Java] |
public bool getUseTerrain();public void setUseTerrain(
bool
);
|
Example
Move a place while
use terrain option is set true
[C#] |
Copy Code
|
place.UseTerrain = true;
place.Position.AssignGeodetic(29.98, -90.25, 9);
place.Position.AssignGeocentric(32.12, -110.93, 787);
place.Position.AssignSpherical(40.65, -73.78, 7);
|
|
Move a place while
use terrain option is set true
[Visual Basic .NET] |
Copy Code
|
place.UseTerrain = True
place.Position.AssignGeodetic(29.98, -90.25, 9)
place.Position.AssignGeocentric(32.12, -110.93, 787)
place.Position.AssignSpherical(40.65, -73.78, 7)
|
|
See Also