This document is archived and information here might be outdated. Recommended version. |
Indicates if the layer is a composite layer.
[Visual Basic .NET] Public ReadOnly Property IsComposite As Boolean
[C#] public bool IsComposite {get;}
[C++]
HRESULT get_IsComposite(
Boolean* IsComposite
);
[C++]
Parameters IsComposite [out, retval]
IsComposite is a parameter of type bool*
Composite layers are layers composed of other layers. Composite layers include group layers, IMS layers and MapServer layers. Composite layers may also be nested. Composite (parent) layers and their members (SubLayers or child layers) are numbered according to their TOC order. Composite layers cannot be queried (QueryFeatureCount, QueryFeatureIDs, QueryFeatureData, GetFeatureData, GetFeatureValue, GetSQLSyntaxInfo). If you attempt to query a composite layer you will receive an error message stating that an input parameter is incorrect. Composite layers can be identified. You can use a parent layer ID by itself to Identify features from all member SubLayers. However, you cannot use the parent layer ID by itself in order to query SubLayers using the GetLegendInfo, Find or QueryHyperlinks methods on IMapServer2. You need to include the SubLayers IDs in the input array.