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:
doubleLeft – The West-East coordinate of the terrain database upper left corner. If you are working in a Lat-Long format, the Lat-Long values are in decimal Lat-Long.
doubleTop – The North-South coordinate of the terrain database upper left corner. If you are working in a Lat-Long format, the Lat-Long values are in decimal Lat-Long.
doubleRight – The West-East coordinate of the terrain database lower right corner. If you are working in a Lat-Long format, the Lat-Long values are in decimal Lat-Long.
doubleBottom – The North-South coordinate of the terrain database lower right corner. If you are working in a Lat-Long format, the Lat-Long values are in decimal Lat-Long.
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. |