InsertLayerEx
InsertLayerEx (path, type, PlugName, wktCS) à TBLayer70 |
Loads an imagery or elevation layer into the project with its coordinate information using the specified plug-in to read the layer file.
Parameters
Name |
Type |
Description |
path |
string |
A full path to the layer file to be loaded by TerraBuilder. Note: In JavaScript, double slashes (\\) must be used for path strings, e.g. "C:\\Users\\Administrator\\Documents”. |
type |
string |
A string that determines the layer type: ‘Imagery’ or ‘Elevation’. |
PlugName |
string |
The name of the plug-in used to read the file, e.g., “tifplg.rct“. The available plug-ins are files with RCT extension that exist in the “TB application files directory. If an empty string is passed into this parameter, the first plug-in for the file type is used (optional). |
wktCS |
string |
The Well Known Text representation of the layer's coordinate system (optional). |
Return Value
A TBLayer70 representing the layer inserted.