ljw2009 发表于 2010-1-6 14:48:00

请问高手怎样提取地形图中无高程属性的地形点高程?

<p>如果电子地形图上的高程点没有高程属性,即只有X\Y值,没有Z值,也就是Z值是在图面上用文本表示的,那怎样将地形点提出X\Y\Z值呢?请问高手 ,谢谢</p>

wmz 发表于 2010-1-19 10:07:00

发个图来看看,或许有办法!

hhuyyh 发表于 2010-1-23 17:01:00

期待解决

水清平 发表于 2010-7-21 17:00:00

<p>我也想知道这个&nbsp; 不知道有人可以解决吗&nbsp; </p>
<p>&nbsp;</p>

gzxl 发表于 2010-7-22 00:07:00

<strong><font size="2">获取CAD中图元的坐标软件(提供源代码C#)</font></strong>&nbsp;&nbsp;

水清平 发表于 2010-7-22 11:30:00

gzxl发表于2010-7-22 0:07:00static/image/common/back.gif获取CAD中图元的坐标软件(提供源代码C#)&nbsp;&nbsp;


<p>不懂 。。。。。。。。</p>

李龙山 发表于 2010-7-24 15:43:00

xy值直接提取,z值选取数值附加到xy后面

xiewawa 发表于 2010-7-25 09:25:00

期待解决!

gzxl 发表于 2010-9-8 12:57:00

<p><font face="Verdana">&nbsp; <font face="Verdana">提取无属性小数点的高程点</font></font></p>
<p><font face="Verdana"></font>&nbsp;</p>
<p><font face="Verdana">Set acadApp = GetObject(, "AutoCAD.Application")<br/>&nbsp;&nbsp;&nbsp; If Err Then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Err.Clear<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set acadApp = CreateObject("AutoCAD.Application")<br/>&nbsp;&nbsp;&nbsp; If Err Then End<br/>&nbsp;&nbsp;&nbsp; End If<br/>&nbsp;&nbsp;&nbsp; acadApp.Visible = True<br/>&nbsp;&nbsp;&nbsp; Dim acadDoc As AcadDocument<br/>&nbsp;&nbsp;&nbsp; acadApp.WindowState = acMax<br/>&nbsp;&nbsp;&nbsp; Set acadDoc = acadApp.ActiveDocument<br/>&nbsp;&nbsp;&nbsp; Set Excel = GetObject(, "Excel.Application")<br/>&nbsp;&nbsp;&nbsp; Set xlSheet = Excel.ActiveWorkbook.Sheets("sheet1")<br/>&nbsp; <br/>&nbsp; Dim sjx&nbsp; As AcadSelectionSet<br/>&nbsp;&nbsp;&nbsp;&nbsp; Set sjx = acadDoc.SelectionSets.Add("ss10")<br/>&nbsp;&nbsp;&nbsp;&nbsp; sjx.SelectOnScreen<br/>&nbsp; h = sjx.Count<br/>&nbsp; h = 0<br/>&nbsp; For i = 0 To h - 1&nbsp; '删除所有的选择集<br/>&nbsp;&nbsp;&nbsp;&nbsp; Set ssetObj = acadDoc.SelectionSets.Item(0)<br/>&nbsp;&nbsp;&nbsp;&nbsp; ssetObj.Delete<br/>&nbsp; Next i<br/>&nbsp; <br/>&nbsp; Dim FilterType(1) As Integer<br/>&nbsp; Dim FilterData(1) As Variant<br/>&nbsp; FilterType(0) = 0<br/>&nbsp; FilterData(0) = "text"&nbsp; '是圆<br/>&nbsp; FilterType(1) = 8<br/>&nbsp; FilterData(1) = "shuju"&nbsp; '图层是0<br/>&nbsp; Dim mode As Integer<br/>&nbsp; mode = acSelectionSetAll<br/>&nbsp; sjx.Select mode, , , FilterType, FilterData<br/>&nbsp; <br/>&nbsp; k = 1<br/>&nbsp; Dim entry As AcadEntity<br/>&nbsp; Dim point As Variant<br/>&nbsp; Dim hjx As String<br/>&nbsp; <br/>&nbsp; For Each entry In sjx<br/>&nbsp;&nbsp;&nbsp;&nbsp; If entry.ObjectName = "AcDbText" Or entry.ObjectName = "AcDbMText" Then<br/>&nbsp;&nbsp;&nbsp;&nbsp; point = entry.InsertionPoint<br/>&nbsp;&nbsp;&nbsp;&nbsp; hjx = entry.TextString<br/>&nbsp;&nbsp;&nbsp;&nbsp; <br/>&nbsp;&nbsp;&nbsp;&nbsp; xlSheet.Cells(k, 1) = Format(point(0), "##0.000")<br/>&nbsp;&nbsp;&nbsp;&nbsp; xlSheet.Cells(k, 2) = Format(point(1), "##0.000")<br/>&nbsp;&nbsp;&nbsp;&nbsp; xlSheet.Cells(k, 3) = Format(hjx, "##0.0")<br/>&nbsp;&nbsp;&nbsp;&nbsp; k = k + 1<br/>&nbsp;&nbsp;&nbsp;&nbsp; End If<br/>&nbsp; Next entry</font></p>

njcknfy 发表于 2010-9-15 13:35:00

<p>先计算高程注记的矩形框,求矩形框的中心点,查找离矩形框中心点最近的高程点匹配,此方法可以匹配出大部分的高程点的Z值,其余的就只能手工匹配了</p>
页: [1] 2 3 4
查看完整版本: 请问高手怎样提取地形图中无高程属性的地形点高程?