2
Points T o 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: MgResourc eIdentifie r rID_featu re_source = new MgResourc eIdentifier( @"Library://Data/SDF/Zoning.FeatureSource"); Create new layers using the static method AcMapLayer.Create() . Create new layer groups using the AcMapLayerGroup  constructor AcMapLayerGroup(groupName) . Point s T o W atch | 15

Developper Manual GIS Geospatial

Embed Size (px)

DESCRIPTION

Developper Manual GIS Geospatial

Citation preview

Page 1: Developper Manual GIS Geospatial

7/17/2019 Developper Manual GIS Geospatial

http://slidepdf.com/reader/full/developper-manual-gis-geospatial 1/2

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) .

Points To Watch | 15

Page 2: Developper Manual GIS Geospatial

7/17/2019 Developper Manual GIS Geospatial

http://slidepdf.com/reader/full/developper-manual-gis-geospatial 2/2

16