使用ArcGIS Engine连接ArcIMS feature Service 获得FeatureCLass
用ArcIMS发布的feature Service可作为AO的远程数据源,获得FeatureCLass后可将远程数据下载
C#
--------------
IIMSServiceDescription imsdsc = new IMSServiceNameClass();
imsdsc.URL ="http://dj";
imsdsc.Name = "sf";
imsdsc.ServiceType = acServiceType.acFeatureService;
IWorkspaceFactory wf = new IMSWorkspaceFactoryClass();
IFeatureWorkspace w = wf.Open (imsdsc.ConnectionProperties ,0) as IFeatureWorkspace;
IFeatureClass Fcls = w.OpenFeatureClass ("blockgroups");
C#
--------------
IIMSServiceDescription imsdsc = new IMSServiceNameClass();
imsdsc.URL ="http://dj";
imsdsc.Name = "sf";
imsdsc.ServiceType = acServiceType.acFeatureService;
IWorkspaceFactory wf = new IMSWorkspaceFactoryClass();
IFeatureWorkspace w = wf.Open (imsdsc.ConnectionProperties ,0) as IFeatureWorkspace;
IFeatureClass Fcls = w.OpenFeatureClass ("blockgroups");