Feature Layers

A Feature Layer is a complex TerraExplorer object designed to display feature datasets from different sources. An XML standard is used to define connections to various layer source file formats and servers. A minimal information set must be included in an XML string to create a new layer using IInformationTree5::CreateLayer.

 

See: “Feature Layers” chapter in the User Manual for additional information.

The XML string should be in the following format (bold fields are mandatory):

<PlugData>

       <PlugType></PlugType>

<LayerName></LayerName>

<Server></Server>

<user></user>

<password></password>

<TableName></TableName>

<AttributesToLoad></AttributesToLoad >

<Feature></Feature >Must use Feature and/or Annotation

<Annotation></Annotation> Must use Feature and/or Annotation

<SaveItems></SaveItems>

<GroupKey></GroupKey>

<SysKey></SysKey>

<DatumKey></DatumKey>

<UnitKey></UnitKey>

<UseZValue></UseZValue>

<AltitudeUnit></AltitudeUnit>

<Reproject></Reproject>

<StreamedLayer></StreamedLayer>

</PlugData >

 

For example, this XML loads the shape file “C:\sample.shp” as a layer:

<PlugData>

<LayerName>C:\country.shp</LayerName>

<PlugType>shape</PlugType>

</PlugData>

 

Parameters:

 

An existing layer can be manipulated and controlled using the ILayer5 interface. This includes controlling appearance of the feature and annotation information, managing the streaming behavior, and adding and removing individual items.