CreateLayerDefinitionObject
This method creates a vector layer definition object and fills all its attributes according the parameters. 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.
The LayerDefinition element has different subelements depending on the MgFeatureGeometricType.