随笔分类 -  ArcGis

地理信息系统,加油好好学啊
摘要://已知图层IFeatureLayer pFeatureLayer = this._application.MapControl2D.Map.get_Layer(0) as IFeatureLayer; IFeatureClass pFeatureClass = pFeatureLayer.FeatureClass; if (pFeatureClass.FeatureCount(null) > 0) { for (int i = 0; i < pFeatureClass.FeatureCount(null); i++) { IFeature pFeature = pFeatureC 阅读全文
posted @ 2013-07-30 17:44 ◆紅袖 阅读(803) 评论(0) 推荐(0)
摘要:public void CreateShapefiles() { //指定路径 string strShapeFolder = AppDomain.CurrentDomain.BaseDirectory; //文件名 string strShapeName = "DisasterShow"; string path = strShapeFolder + strShapeName + ".shp"; if (File.Exists(path)) { string strFilePath = System.IO.Path.GetDirectoryName(p 阅读全文
posted @ 2013-07-30 17:41 ◆紅袖 阅读(477) 评论(0) 推荐(0)
摘要:由于server中名称可能相同,所以用数组存放public static Dictionary ListServices_RESTAadmin(string restAdmin, string userName, string password, string folder) { string[] serverlist = new string[1]; Dictionary pServiceType = new Dictionary(); try { string token = GenerateAGSToken_RESTAdmin(restAdmin, userName, password) 阅读全文
posted @ 2013-07-30 16:39 ◆紅袖 阅读(742) 评论(0) 推荐(0)