CreateLayerDefinitionXml

Land Desktop Map 3D Samples

 
CreateLayerDefinitionXml
 
 
 

This method creates the XML layer definition information for vector layers. It does this by calling CreateLayerDefinitionObject and serializing the returned layer definition object, which CreateLayerDefinitionXml then returns as a string. It takes six arguments: a layer definition name, an MgResourceIdentifier object identifying the feature source supplying the features for the layer, a schema name, a class name, a geometry property name, and a geometric type. The geometric type is a value in the MgFeatureGeometricType enumeration.