本文主要是介绍打开arcims的数据,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
需要用arcims的administrator建立一个featureservice服务,服务名为countryIIMSServiceDescription imsdsc = new IMSServiceNameClass();
imsdsc.URL = "http://su"; //su 机器名
imsdsc.Name = "country"; //服务名
imsdsc.ServiceType = acServiceType.acFeatureService; //featureservice服务 IWorkspaceFactory wf = new IMSWorkspaceFactoryClass();
IFeatureWorkspace w = wf.Open(imsdsc.ConnectionProperties, 0) as IFeatureWorkspace;
IFeatureClass Fcls = w.OpenFeatureClass("counties");
FeatureLayer featureLayer = new FeatureLayer();
featureLayer.FeatureClass = Fcls;
axMapControl1.AddLayer(featureLayer);
axMapControl1.Refresh();
这篇关于打开arcims的数据的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!