摘要: 1.在winform窗口添加一个富文本框(richTextBox),将mulitline属性设置为True,记下富文本框的Name : 如richTextBox1; 2.在类中定义一个全局变量用来存储状态或者错误信息:public string logAttribute = null; public 阅读全文
posted @ 2020-06-06 15:23 owppp 阅读(581) 评论(0) 推荐(0)
摘要: C#实现【选择文件夹的保存路径】 private static string OpenFolderAndSelectFile() { string FolderPath = null; FolderBrowserDialog FbDialog = new FolderBrowserDialog(); 阅读全文
posted @ 2020-06-05 16:02 owppp 阅读(1695) 评论(0) 推荐(0)
摘要: if (!(esriFeatureClass.FeatureCount(null) < 1))(不为空) { } else { } esriFeatureClass为当前要素类 阅读全文
posted @ 2020-06-04 17:16 owppp 阅读(351) 评论(0) 推荐(0)
摘要: 输出属性表内容时,由于点线面会分别生成SHAPE,OBJECTID ;SHAPE,OBJECTID,SHAPE_Length; SHAPE,OBJECTID,SHAPE_Length,SHAPE_Area这几个字段,需要将他们分别找出来去掉这几个字段和字段里的内容, 所以可以先做判断,看属性表里是否 阅读全文
posted @ 2020-06-03 11:08 owppp 阅读(326) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2020-05-21 10:33 owppp 阅读(1) 评论(0) 推荐(0)
摘要: Geodatabase 作为ArcGIS 的原生数据格式,体现了很多第三代地理数据模型 的优势。Personal Geodatabase 基于Microsoft Access 一体化存储空间数据和属性数据。Enterprise Geodatabase 通过大型关系数据库+ArcSDE 实现,ArcS 阅读全文
posted @ 2020-05-20 13:25 owppp 阅读(244) 评论(0) 推荐(0)
摘要: 【解决办法】:将IPolygon转为IArea,使用IArea.LabelPoint 获取标注位置的点,该点肯定位于面内,而IArea.Centroid方法则是获取面的重心,但不一定位于面内。 IPolygon polygon = feature.Shape as IPolygon; IArea a 阅读全文
posted @ 2020-05-14 17:42 owppp 阅读(456) 评论(0) 推荐(0)
摘要: //提取面百节点坐标度函数问,返回一个答坐标字符回串 private string getShpXY(IPolygon polygon) { IPointCollection pc = polygon as IPointCollection; string strXY=""; string x; s 阅读全文
posted @ 2020-05-14 17:41 owppp 阅读(361) 评论(0) 推荐(0)
摘要: //打开要素集 IFeatureWorkspace pFeatureWorkspace = pWs as IFeatureWorkspace; IFeatureClass esriFeatureClass = null; //工作空间里面的所有要素 //遍历要素集Dataset下的featurecl 阅读全文
posted @ 2020-05-13 17:25 owppp 阅读(468) 评论(0) 推荐(0)