基于ArcGIS的矢量数据批量提取坐标的方法
2019-09-10石琳
石琳




摘 要:现阶段,为了满足工程施工需要,往往需要提取地形图纸中多段线的拐点坐标。传统的坐标提取方法主要有两种:一种是在AutoCAD中利用显示图形数据信息命令LIST和指示点命令ID进行坐标提取;另一种是采用AutoCAD编程语言或者专业软件进行坐标提取。但前者效率低,容易出错,而后者对作业人员的编程能力要求较高,不易实现。为了解决上述问题,本文提出了一种基于ArcGIS批量提取坐标的方法,并且通过实例验证了该方法的有效性。结果表明,该方法有效解决了坐标批量提取问题,减少了人为错误,极大地提高了工作效率。
关键词:ArcGIS;坐标提取;矢量数据;AutoCAD
中图分类号:P208 文献标识码:A 文章编号:1003-5168(2019)25-0025-03
A Method of Batch Extraction of Coordinates from
Vector Data Based on ArcGIS
SHI Lin
(Shaanxi Institute of Land Survey, Planning and Design Co., Ltd.,Xi'an Shaanxi 710075)
Abstract: At present, in order to meet the needs of Engineering construction, it is often necessary to extract the inflection point coordinates of multi-segment lines in topographic drawings. There are two traditional methods of coordinate extraction: one is to use LIST command and ID command to display graphical data information to extract coordinates in AutoCAD; the other is to use AutoCAD programming language or professional software to extract coordinates. However, the former is inefficient and error-prone, while the latter requires higher programming ability of operators and is not easy to achieve. In order to solve the above problems, this paper proposed a batch coordinate extraction method based on ArcGIS, and the effectiveness of this method was verified by an example. The results show that the method completely solves the problem of coordinate batch extraction, reduces human errors and greatly improves work efficiency.
Keywords: ArcGIS;coordinate extraction;vector data;AutoCAD
1 研究背景
矢量数据是在直角坐标系中,用X、Y坐标表示地图图形或地理实体的位置的数据。矢量数据一般通过记录坐标的方式尽可能地将地理实体的空间位置表现得准确无误。矢量数据包括点、线、面三个实体,其中点实体可以用一对坐标X、Y来确定位置;线实体可以认为是由连续的直线段组成的曲线,用坐标串的集合[X1,Y1,X2,Y2,…,Xn,Yn]来记录;面实体通常通过记录面状地物的边界来表现,因而有时也被称为多边形数据。本文主要讨论如何批量提取线实体和面实体的折点坐标。
在工程施工中,坐标提取是一项重要的工作,例如,需要提取道路范围线各个拐点坐标,用于线路放样工作;为了计算测区的土方量,需要提取高程点的坐标数据。目前,坐标提取的方法主要有两种:一种是利用AutoCAD的LIST和ID命令进行逐点坐标提取;另一种是利用AutoCAD二次开发语言编程实现坐标的自动提取。……
