Points To Watch

AutoCAD Map 3D Geospatial Platform API

 
Points To Watch
 
 
 
  • In the feature source XML, the provider name (for example, OSGeo.SDF.3.3) must match one of the provider names listed in the output of MgFeatureService.GetFeatureProviders().
  • In the layer definition, the ResourceId value must match the path of the feature source. In the example above, this path is used in the layer definition:
    <ResourceId>Library://Data/SDF/Zoning.FeatureSource
    </ResourceId>

    So the corresponding path must be used when the feature source is created. For example:

    MgResourceIdentifier rID_feature_source = 
             new MgResourceIdentifier(
             @"Library://Data/SDF/Zoning.FeatureSource");
  • Create new layers using the static method AcMapLayer.Create().
  • Create new layer groups using the AcMapLayerGroup constructor AcMapLayerGroup(groupName).