createElevationLayer Method

Creates a geo-referenced elevation raster that replaces the elevation data of the terrain database.

createElevationLayer(elevationFileName, upperLeftX, upperLeftY, lowerRightX, lowerRightY, [initParam], [plugName], [name]);

 

Parameter

Description

elevationFileName

A URL of the elevation file to import to the terrain

upperLeftX

The West-East coordinate of the image upper left corner

upperLeftY

The North-South coordinate of the image upper left corner

lowerRightX

The West-East coordinate of the image lower right corner

lowerRightY

The North-South coordinate of the image lower right corner

initParam

Optional

Reserved. Always pass null for this parameter

plugName

Optional

The name of the plug-in used to read the file

name

Optional

The node name

Return Value

An SGNode object. If the method fails, the return value is null. SGWorld.lastError will contain the failure reason.

Remarks

To modify other properties of the elevation layer, access the node innerObj. See SGNode.innerObj property and ITerrainRasterLayer5 interface for more details.