使用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");

posted on 2007-10-19 09:06  GIS云中飞鹏  阅读(3893)  评论(0编辑  收藏  举报

导航