GetExtent

The GetExtent method returns the coordinates of the bounding rectangle of the terrain database. The bounding rectangle is parallel to the X and Y axes. Globe terrain databases always return 180 to 180 degrees for Left and Right respectively and 90 to 90 degrees for Bottom and Top respectively.

Implemented only in ITerrain4.

 

HRESULT GetExtent(

[out] VARIANT* doubleLeft,

[out] VARIANT* doubleTop,

[out] VARIANT* doubleRight,

[out] VARIANT* doubleBottom)

Parameters:

Return Values:

The return value obtained from the returned HRESULT can be one of the following:

 

Return value

Meaning

S_OK

Success.

E_FAIL

Catastrophic failure.