CreateMeshLayerFromSGS
Loads from SkylineGlobe Server an IMeshLayer80 representing a unified, stream optimized 3D Mesh Layer (3DML) database.
JavaScript |
|
CreateMeshLayerFromSGS( ServerPath, layerName, ParentGroupID) |
C# |
|
IMeshLayer80 CreateMeshLayerFromSGS( string ServerPath, string layerName, string ParentGroupID = "") |
C++ |
|
HRESULT CreateMeshLayerFromSGS( [in] BSTR ServerPath, [in] BSTR layerName, [in] BSTR ParentGroupID, [out, retval] IMeshLayer80** pIMeshLayer) |
Parameters
ServerPath
A URL to the SkylineGlobe Server. The SGS URL should be in the following format: http://SGServerAddress/SG/[Site]/streamer.ashx
E.g., http://www.skylineglobe.com/SG/default/streamer.ashx
layerName
A string representing the name of the layer as it appears in the SGS Layers list, e.g., Boston.123321
ParentGroupID
The Project Tree group in which the layer is created. If it is set to an empty string, the object is created under the root. You can obtain the GroupID by one of the following methods:
· Create the group using IProjectTree80.CreateGroup.
· Find the group, if you know the name, using IProjectTree80.FindItem.
· Traverse the Tree using IProjectTree80 methods such as GetNextItem, until you come to the desired GroupID.
Return Value
pIMeshLayer
An IMeshLayer80 representing the newly created layer.
Exceptions
See: HRESULT Return Values for a list of possible values returned by the HRESULT.