文档下载 文档下载导航
设为首页 | 加入收藏
搜索 请输入内容:  
 导航当前位置: 文档下载 > 所有分类 > IT/计算机 > 计算机软件及应用 > ArcGIS问题:获取polygon中的中心点坐标
侵权投诉

ArcGIS问题:获取polygon中的中心点坐标

ArcGIS问题:获取polygon中的中心点坐标

在ArcGIS中获取多边形中心点坐标的方法至今摸索到两周,下面一一介绍:

方法一:获取polygon的中心点坐标,可使用field calculation。

其ArcGIS Help中的英文解释为:

Adding the x,y coordinates of the centroid of a polygon layer to a new field

1. Optionally, start an edit session in ArcMap. Calculating a field is faster outside of an edit session, but you won't be able to undo the calculation.

2. Open the attribute table of the layer of the layer you want to edit.

3. Right-click the field heading for the X field (if there is no X field you can add a new field by clicking the options button and selecting the new field option).

4. Click Calculate Values.

5. Check Advanced.

6. Type the following VBA statement in the first text box.

Dim Output As Double

Dim pArea As IArea

Set pArea = [Shape]

Output = pArea.Centroid.X

7. Type the variable Output in the text box directly under the X field name.

8. Click OK.

You can repeat the same process for updating a field with the Y coordinates for the centroid point of each polygon in the layer.

Tip

? The property X returns a field type of double. For best results, your X field should also be a double field type.

首先打开要提取中心点坐标的多边形图层属性表,在要提取坐标的X Field(如果没有先创建,最好是double型)中的右键单击,选择Field Calculator,再选中Advanced,在Pre-Logic VBA Script Code中输入代码: 获取X坐标:(更多知识讨论:doc.guandang.net)

Dim Output As Double

Dim pArea As IArea

Set pArea = [Shape]

Output = pArea.Centroid.X

在输出框中输入:Output

单击OK,获取多边形X坐标

同理获取Y坐标:

代码为:

Dim Output As Double

Dim pArea As IArea

第1页

TOP相关主题

热门文档

相关文档

  • 获取ARCGIS中polygon的中心点坐标

    获取ARCGIS中polygon的中心点坐标_IT/计算机_专业资料。获取ARCGIS中polygon的...下面是arcgis help里的讲解(这段是别人整的 貌似有点问题 我先贴下 后面我...

  • envi和arcgis结合提取图像上点的坐标信息

    envi和arcgis结合提取图像上点的坐标信息_天文/地理...因此我们必须寻找其 他的办法来解决这个问题。 第二... 方法一:获取 polygon 的中心点坐标,可使用 field ...

  • ArcGIS问题:如何将坐标点或者点文件转换成线、面文件

    ArcGIS 问题:如何将坐标点或者点文件转换成线、面文件工作过程中,如果获得了一...如图: 之后我们相应的把 txt 文件中的 Point 改成 Polyline 或 Polygon,保存...

  • ArcGis由Excel坐标表自动生成点、线、面图层的方法

    ARCGIS 中用数据生成线及面要注意的问题: from text file, 各参数设置参照注意...点的坐标和格式化用的,结果如下: 上图中的 Point 改成 Polyline 或 Polygon,...

  • ArcGIS问题:地理坐标和经纬度坐标显示的切换

    ArcGIS问题:地理坐标和经纬度坐标显示的切换_计算机软件及应用_IT/计算机_专业资料。ArcGIS 问题:地理坐标和经纬度坐标显示的切换经常遇到这个问题 就是在 ArcMap ...

  • ArcGIS转点坐标

    From Text File 工具导入刚刚你生 成的并改 Polyline 或 Polygon 的 txt 文件... ArcGIS问题:如何将坐标... 2页 免费 ARCGIS坐标转换软件 1页 免费 2 ArcGIS...

  • ArcGIS中坐标转换成点线面

    之后我们相应的把 txt 文件中的 Point 改成 Polyline 或 Polygon,保存。然后...ArcGIS 问题: ArcGIS 10 下 Add XY Data 工具的位置 一个网友问我 ArcGIS10...

  • [ArcGIS]-Excel中XY点数据生成点Shape文件方法和如何导...

    ArcGIS Guide:请问怎样将 shp 文件中点的坐标导...直接把得到的点生成坐标到 text 文件里。 注意:...这个也出现问题了。不过方法应该是这样的。如果是...

  • ARCGIS坐标系统问题

    如要投诉违规内容,请到百度文库投诉中心;如要提出功能问题或意见建议,请点击此处进行反馈。 加入阅读会员!获取下载券 ARCGIS坐标系统问题 隐藏>> ARCGIS 坐标系统...

  • ArcGIS问题:拓扑(topology)错误的修改

    ArcGIS问题:拓扑(topology)错误的修改_计算机软件及应用_IT/计算机_专业资料。...对 polygon 错误逐个检查(实例中是对两个图层的 must be covered by feature ...

站点地图 | 文档上传 | 侵权投诉 | 手机版
本站所有资源均来自互联网,本站只负责收集和整理,均不承担任何法律责任,如有侵权等其它行为请联系我们.
文档下载 Copyright 2013 doc.guandang.net All Rights Reserved.  -  email