[go: up one dir, main page]

CN104537635A - Simplification algorithm for land cover vector data for maintaining topology - Google Patents

Simplification algorithm for land cover vector data for maintaining topology Download PDF

Info

Publication number
CN104537635A
CN104537635A CN201410508703.5A CN201410508703A CN104537635A CN 104537635 A CN104537635 A CN 104537635A CN 201410508703 A CN201410508703 A CN 201410508703A CN 104537635 A CN104537635 A CN 104537635A
Authority
CN
China
Prior art keywords
polygon
vector
simplification
polygons
line segment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410508703.5A
Other languages
Chinese (zh)
Inventor
沈占锋
董文
胡晓东
骆剑承
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Institute of Remote Sensing and Digital Earth of CAS
Original Assignee
Institute of Remote Sensing and Digital Earth of CAS
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Institute of Remote Sensing and Digital Earth of CAS filed Critical Institute of Remote Sensing and Digital Earth of CAS
Priority to CN201410508703.5A priority Critical patent/CN104537635A/en
Publication of CN104537635A publication Critical patent/CN104537635A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10032Satellite or aerial image; Remote sensing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30181Earth observation
    • G06T2207/30188Vegetation; Agriculture

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention provides a simplification algorithm for land cover vector data for maintaining topology. During land cover/utilization application, in the processes of forming land blocks by adopting a remote sensing image segmentation method and judging the attributes of the land blocks, vector polygons are strictly in accordance with the trends of pixels of segmented images; most vector polygons are in right-angular shapes or sawtooth shapes; the data volume is large; simplification is needed; and the topology relationship between every two vector polygons is strictly maintained. According to the algorithm, firstly, contiguous polygons of the vector polygons are traversed, and feature points of the contiguous polygons are recorded; the vector polygons are decomposed into arc segments formed by contiguous feature points; then, an arc segment simplification algorithm is called for simplifying the arc segments; and finally, the corresponding simplified arc segments are recombined into the vector polygons, and the vector polygon simplification process is completed. The simplification algorithm has the advantages that the requirements of vector polygon simplification in the land cover/utilization process can be efficiently met, and meanwhile, the simplification algorithm can be widely applied to other application and requirements of row vector polygon simplification for maintaining the topology relationship.

Description

一种保持拓扑的土地覆被矢量数据的简化算法A SIMPLIFICATION ALGORITHM FOR LAND COVER VECTOR DATA PRESERVING TOPOLOGY

技术领域 technical field

本发明涉及遥感及地理信息系统领域中土地覆被/利用中的矢量地块数据的简化算法,具体地说,在地理信息系统及遥感土地应用中,需要在保持土地拓扑结构的前提下实现地块边界分割结果的简化算法,本发明可适用于数据量较大或较复杂的矢量地块边界数据进行简化,从而在保持地块拓扑关系的前提下实现数据量的简化。 The present invention relates to the simplified algorithm of vector block data in land cover/utilization in the field of remote sensing and geographic information system. Specifically, in the application of geographic information system and remote sensing land, it is necessary to realize the land topological structure under the premise of maintaining the land topology. The simplification algorithm of block boundary segmentation results, the present invention can be applied to simplification of large or complex vector plot boundary data, so as to realize the simplification of data volume under the premise of maintaining the topological relationship of plots.

背景技术 Background technique

在进行土地覆被、土地利用调查时,需要基于遥感影像的解译过程进行实现,高空间分辨率(以下简称高分辨率)的遥感影像能够更清晰准确地分辨出地表的不同地块边界,因而在土地覆被/利用应用中得到越来越广泛地应用。由于高分辨率影像数据量大,一般需要先将遥感影像进行影像分割并形成地块,再在此基础上对构成区域的所有地块进行地块种类的确定(可辅助多期长时间序列影像形成的地物波谱及先验知识),实现各土地地块的类型判断并加工整理成为最终的土地覆被/利用专题数据。在此过程中,由于高分辨率影像对应的地块分割结果特别复杂,保留着大量同影像像元相对应的矢量边界,需要地其进行简化,否则其数据时将严重影响后续的数据处理与分析。这里的矢量数据简化算法需要保持其原始的拓扑结构,因为土地覆被/利用中既要保证每个土地单元均有一定的覆被/利用属性,又不得土地单元间有重叠,因此常规的矢量特征简化算法无法满足这种需求。相关的参考文献包括:刘亚姝,严寒冰,范友贵.多边形简化算法及比较.计算机工程.2009 35(23):227-229;周石琳;汤晓安;陈敏;郝建新;孙茂印.基于多边形顶点法矢量的网格模型简化算法.中国图象图形学报.2002 7(6):601-605;禹铭月,王卫安.多边形形状简化及其质量评价.测绘与空间地理信息.2011 34(6):152-156;Yanwu Li,Xuekang Chen,Lanxi Wang,Lei Guo,Yajuan Li.Molecular flow transmission probabilities of any regular polygon tubes.2013 92:81-84;Robert H.Ericksen.A polygon chaining algorithm to simplify area encoding.Computers,Environment and Urban Systems.1984 9(4):237-245;Tomoki Nakamigawa.A generalization of diagonal flips in a convex polygon.Theoretical Computer Science.2000 235(2):271-282;等。 When conducting land cover and land use surveys, it needs to be realized based on the interpretation process of remote sensing images. Remote sensing images with high spatial resolution (hereinafter referred to as high resolution) can more clearly and accurately distinguish the boundaries of different land parcels on the surface. Therefore, it is more and more widely used in land cover/use applications. Due to the large amount of high-resolution image data, it is generally necessary to segment remote sensing images to form plots, and then determine the types of plots for all plots that constitute the area (can assist multi-period long-term image Spectrum of ground objects and prior knowledge formed), realize the type judgment of each land parcel and process it into the final land cover/use thematic data. In this process, because the result of the block segmentation corresponding to the high-resolution image is particularly complicated, a large number of vector boundaries corresponding to the image pixels are retained, which need to be simplified, otherwise the data will seriously affect the subsequent data processing and processing. analyze. The vector data simplification algorithm here needs to keep its original topological structure, because in the land cover/utilization, it is necessary to ensure that each land unit has a certain cover/utilization attribute, and there must be no overlap between land units, so the conventional vector Feature reduction algorithms cannot meet this demand. Relevant references include: Liu Yashu, Yan Hanbing, Fan Yougui. Polygon Simplification Algorithms and Comparison. Computer Engineering. 2009 35(23): 227-229; Zhou Shilin; Tang Xiaoan; Chen Min; Hao Jianxin; Sun Maoyin. Based on polygon vertex normal vector Mesh model simplification algorithm. Chinese Journal of Image and Graphics. 2002 7(6): 601-605; Yu Mingyue, Wang Wei'an. Polygon shape simplification and its quality evaluation. Surveying and Spatial Geographic Information. 2011 34(6): 152- 156; Yanwu Li, Xuekang Chen, Lanxi Wang, Lei Guo, Yajuan Li. Molecular flow transmission probabilities of any regular polygon tubes. 2013 92: 81-84; Robert H. Ericksen. A polygon chaining algorithm to a simplify. Comparing Environment and Urban Systems.1984 9(4):237-245; Tomoki Nakamigawa.A generalization of diagonal flips in a convex polygon.Theoretical Computer Science.2000 235(2):271-282;

在矢量多边形的简化方面,目前可查到的专利并不多,如:北京四维图新科技股份有限公司的专利“电子地图多边形面要素的形状点的自动简化的方法及装置”(申请号:CN201010223958,公开号:CN102314798B);宁波大学申请的专利“一种图像的多边形模型 的简化方法”(申请号:CN201110279661,公开号:CN102346913A)。但这些专利都没有针对矢量多边形数据的简化策略给出比较详尽的解决方案,相关的论述也较少。 In terms of simplification of vector polygons, there are not many patents that can be found at present, such as: Beijing NavInfo Technology Co., Ltd.'s patent "Method and device for automatic simplification of shape points of polygonal surface elements in electronic maps" (application number: CN201010223958, publication number: CN102314798B); Ningbo University applied for a patent "a method for simplifying polygonal models of images" (application number: CN201110279661, publication number: CN102346913A). However, none of these patents provides a more detailed solution for the simplification strategy of vector polygon data, and there are few related discussions.

发明内容 Contents of the invention

本发明的目的是提供一种保持拓扑的土地覆被矢量数据的简化算法。在土地覆被/利用过程中,基于高分辨率遥感影像分割形成的一系列地块单元,具有非常复杂的边界特性,这些边界往往是按遥感影像像元的走向进行追踪而得出,特别是随着遥感影像空间分辨率的提高,这种现象表现的更为明显,导致分割得出的矢量多边形数据量巨大而对后续的处理带来很大的困难,本发明则主要是针对此问题进行解决。 It is an object of the present invention to provide a simplified algorithm for topologically preserving land cover vector data. In the process of land cover/use, a series of plot units formed based on high-resolution remote sensing image segmentation have very complex boundary characteristics, and these boundaries are often obtained by tracing the direction of remote sensing image pixels, especially With the improvement of the spatial resolution of remote sensing images, this phenomenon is more obvious, resulting in a huge amount of vector polygon data obtained by segmentation and bringing great difficulties to subsequent processing. The present invention is mainly aimed at this problem. solve.

本发明的思路为:在基于高分辨率遥感影像的土地覆被/利用调查等应用中,需要首先采用某种影像分割方法对遥感影像进行分割,方法可选择分水岭分割、多分辨率分割、均值漂移分割等,形成一系列与影像相对应的地块矢量单元(对象)。这些矢量多边形彼此不相交,且其并集等于该影像的总面积。由于这些矢量多边形主要是根据构成地块的遥感影像像元的地物特征属性(如光谱特征、纹理特征、形状特征等),通过计算其地物属性并判断其归属,再将其边界沿影像像元进行追踪而形成的,因此其特点是构成矢量多边形的各边均沿着像元边界,导致形成的矢量多边形特别复杂,如果不进行简化将严重影响后续的矢量数据处理与计算。简化的原则是不能够对分割之后形成的地块有过大的影响,并且要保持各地块基本的拓扑结构,即各地块之间不能够有所相交,也不能形成地块之间的空隙,因此,保持分割地块的拓扑结构是进行矢量简化的前提。 The idea of the present invention is: in applications such as land cover/use investigation based on high-resolution remote sensing images, it is necessary to firstly use a certain image segmentation method to segment remote sensing images, and the method can choose watershed segmentation, multi-resolution segmentation, mean Drift segmentation, etc., to form a series of plot vector units (objects) corresponding to the image. These vector polygons are disjoint and their union equals the total area of the imagery. Since these vector polygons are mainly based on the feature attributes (such as spectral features, texture features, shape features, etc.) It is formed by tracking pixels, so its characteristic is that each side of the vector polygon is along the boundary of the pixel, resulting in a particularly complex vector polygon. If it is not simplified, it will seriously affect the subsequent vector data processing and calculation. The principle of simplification is not to have too much influence on the plots formed after the division, and to maintain the basic topological structure of each plot, that is, there cannot be any intersection between the plots, and no gaps between the plots can be formed. Gaps, therefore, preserve the topology of the segmented plots is a prerequisite for vector simplification.

为了保持不同地块间的拓扑邻接关系,本发明的思路是首先找到任何一个多边形的所有邻接多边形,再通过这些邻接多边形确认该多边形的所有特征点,将多边形分解成为若干个由特征点组成的线段,再分别采用一定的算法地线段进行简化。这里的特征点是保证多边形间拓扑结构的重点的点,是与区域数据边界相交的交点及任意3个邻接多边形的交点。对于线段的简化算法,可以应用顶点删除法、边收缩算法等,具体的实施可应用Douglas Peuker算法、cohen-sutherland算法、Voronoi简化算法、多边形顶点删除法等。 In order to maintain the topological adjacency relationship between different plots, the idea of the present invention is to first find all adjacent polygons of any polygon, then confirm all the feature points of the polygon through these adjacent polygons, and decompose the polygon into a number of feature points. Line segment, and then use a certain algorithm to simplify the line segment. The feature point here is the key point to ensure the topological structure between polygons, and is the intersection point with the boundary of the area data and the intersection point of any three adjacent polygons. For the simplification algorithm of line segments, vertex deletion method, edge contraction algorithm, etc. can be applied. For specific implementation, Douglas Peuker algorithm, cohen-sutherland algorithm, Voronoi simplification algorithm, polygon vertex deletion method, etc. can be applied.

本发明的技术方案提供了一种保持拓扑的土地覆被矢量数据的简化算法,其特征在于包括以下的实施步骤: Technical scheme of the present invention provides a kind of simplified algorithm of the land cover vector data that keeps topology, it is characterized in that comprising following implementation steps:

1),打开待简化矢量数据,构建数据结构,并对构成土地覆被的所有多边形的拓扑结构进行建立,并记录各多边形的邻接多边形; 1), open the vector data to be simplified, construct the data structure, and establish the topological structure of all polygons that make up the land cover, and record the adjacent polygons of each polygon;

2),在步骤1中记录各多边形邻接多边形的基础上,通过每个多边形的邻接多边形的邻接关系计算各多边形的特征点,并建立多边形与特征点的对应关系; 2), on the basis of recording the adjacent polygons of each polygon in step 1, the feature points of each polygon are calculated by the adjacency relationship of the adjacent polygons of each polygon, and the corresponding relationship between polygons and feature points is established;

3),针对每个多边形的原始点集顺序对步骤2中计算的特征点进行重新整理与排序,形成与原始顺序相一致的特征点集; 3), for the original point set order of each polygon, the feature points calculated in step 2 are rearranged and sorted to form a feature point set consistent with the original order;

4),采用步骤3形成的顺序特征点将多边形拆分成为若干条线段,并记录多边形与线段的对应关系,各线段保留多边形的原始点集; 4), using the sequential feature points formed in step 3 to split the polygon into several line segments, and record the corresponding relationship between the polygon and the line segments, and each line segment retains the original point set of the polygon;

5),采用某种线段简化算法对步骤4中的所有线段进行简化; 5), using a certain line segment simplification algorithm to simplify all line segments in step 4;

6),按步骤4中记录的多边形与线段的关系将步骤5简化之后的结果线段按原来的顺序重新进行组织,形成简化后的多边形。 6) According to the relationship between the polygon and the line segment recorded in step 4, the resulting line segment after the simplification in step 5 is reorganized in the original order to form a simplified polygon.

上述实施步骤的特征在于: The above-mentioned implementation steps are characterized in that:

步骤1)中需要首先构造数据结构,用于存储并记录土地覆被/利用多边形的所有邻接多边形,其实现方式可以借用OGR的函数SetSpatialFilterRect()实现。 In step 1), it is necessary to first construct a data structure for storing and recording all adjacent polygons of the land cover/utilization polygon, which can be implemented by borrowing the function SetSpatialFilterRect() of OGR.

步骤2)是在步骤1的基础上,遍历多边形的邻接多边形,计算各多边形的邻接多边形之间的共同边,再根据多边形的邻接关系得出该多边形的特征点。 Step 2) is to traverse the adjacent polygons of the polygon on the basis of step 1, calculate the common side between the adjacent polygons of each polygon, and then obtain the feature points of the polygon according to the adjacent relationship of the polygons.

步骤3)是遍历所有的多边形,按相应的点的顺序地步骤2的多边形特征点进行排序,用以确定构成多边形的多个特征点。 Step 3) is traversing all the polygons, sorting the polygon feature points in step 2 according to the order of corresponding points, so as to determine a plurality of feature points constituting the polygon.

步骤4)是基于步骤3的特征点将相应矢量多边形分解成为若干个有向线段,这些有向线段是构成矢量多边形的基本单元。 Step 4) is to decompose the corresponding vector polygon into several directed line segments based on the feature points in step 3, and these directed line segments are the basic units constituting the vector polygon.

步骤5)是采用本文的矢量线段简化算法对步骤4形成的线段进行简化,这里需要构建一个数据结构,用以记录简化前的线段及其在简化后的结果,对于后续需要简化的线段,需要首先在这个数据结构中遍历看是否已经对该矢量线段进行过简化,如果已经进行过简化则直接从数据结构中取出即可。 Step 5) is to use the vector line segment simplification algorithm in this paper to simplify the line segment formed in step 4. Here, a data structure needs to be constructed to record the line segment before simplification and the result after simplification. For the subsequent line segment that needs to be simplified, need First, traverse through this data structure to see if the vector line segment has been simplified. If it has been simplified, it can be directly taken out from the data structure.

步骤6)是按步骤4中记录的线段顺序将步骤5的线段简化结果重新进行组装,形成相应的矢量多边形简化后的结果。 Step 6) is to reassemble the line segment simplification result of step 5 according to the sequence of line segments recorded in step 4 to form the corresponding vector polygon simplification result.

本发明与现有技术相比具有如下特点:本发明通过查询区域矢量多边形的特征点,再将这些特征点所构造的线段分别进行简化来达到矢量多边形简化的目的,这样能够很好的保持矢量多边形的拓扑结构,很好地适应了土地覆被/利用等应用中需要严格操持区域矢量多边形的拓扑结构的要求。同时,应用比较成熟的线段简化算法并构建较优的数据结构,也能够在效率上比现有技术有所改进与提高。 Compared with the prior art, the present invention has the following characteristics: the present invention achieves the purpose of vector polygon simplification by querying the feature points of the area vector polygon, and then simplifying the line segments constructed by these feature points respectively, so that the vector polygon can be kept well The polygonal topological structure is well adapted to the requirements of strictly manipulating the topological structure of area vector polygons in applications such as land cover/utilization. At the same time, applying a more mature line segment simplification algorithm and constructing a better data structure can also improve and increase the efficiency compared with the existing technology.

附图说明 Description of drawings

图1是保持拓扑的矢量多边形简化方法流程示意图 Figure 1 is a schematic flow chart of the topology-preserving vector polygon simplification method

图2是高分辨率影像分割后形成的土地覆被矢量多边形示意图 Figure 2 is a schematic diagram of land cover vector polygons formed after high-resolution image segmentation

图3是基于ArcGIS实现图2矢量多边形的简化效果图 Figure 3 is a simplified rendering of the vector polygon in Figure 2 based on ArcGIS

图4是对矢量多边形的特征点的效果示意图 Figure 4 is a schematic diagram of the effect on the feature points of the vector polygon

图5是基于图4中保留特征点的前提下实现简化的结果 Figure 5 is the result of simplification based on the premise of retaining the feature points in Figure 4

图6是基于Douglas peucker算法原理的线段简化算法示意图 Figure 6 is a schematic diagram of the line segment simplification algorithm based on the principle of the Douglas peucker algorithm

图7是待简化的土地覆被/利用示意图 Figure 7 is a schematic diagram of land cover/use to be simplified

图8是采用参数500进行图6矢量多边形简化的效果示意图 Figure 8 is a schematic diagram of the effect of simplifying the vector polygon in Figure 6 with a parameter of 500

图9是采用参数5000进行图6矢量多边形简化的效果示意图 Figure 9 is a schematic diagram of the effect of simplifying the vector polygon in Figure 6 with a parameter of 5000

图10是采用参数50000进行图6矢量多边形简化的效果示意图 Figure 10 is a schematic diagram of the effect of simplifying the vector polygon in Figure 6 with a parameter of 50000

具体实施方式 Detailed ways

图1示意了本发明的主要实现思路。在进行土地覆被/利用的矢量多边形的简化过程中,保持各矢量多边形的拓扑结构是最重要的,同时也是现有技术方案是最缺少的,本发明的解决思路是首先找到这些矢量多边形的特征点,使得在进行矢量简化的过程中保证这些特征点的稳定性,从而保证了矢量多边形间的拓扑性。在查找矢量多边形的特征点过程中,本发明的特征点的定义如下:矢量多边形中与边界相交的点,以及任意3个矢量多边形的交点。为了找到矢量多边形的特征点,本发明的流程如下:首先遍历各多边形的邻接多边形,计算并记录各多边形的特征点,并按照矢量多边形的点顺序对相应的特征点进行调整,并基于这些特征点将矢量多边形分解为多条线段,再采用本发明的线段简化算法对相应的线段进行简化,简化后再重新对相应的线段进行组装形成简化后的矢量多边形,完成简化过程。 Fig. 1 illustrates the main realization idea of the present invention. In the simplification process of the vector polygons of land cover/utilization, it is the most important to keep the topological structure of each vector polygon, and it is also the most lacking in the prior art scheme. The solution idea of the present invention is to first find these vector polygons The feature points ensure the stability of these feature points in the process of vector simplification, thus ensuring the topology among vector polygons. In the process of finding the feature point of the vector polygon, the definition of the feature point of the present invention is as follows: the point intersecting the boundary in the vector polygon, and the intersection point of any three vector polygons. In order to find the feature points of the vector polygon, the flow process of the present invention is as follows: first traverse the adjacent polygons of each polygon, calculate and record the feature points of each polygon, and adjust the corresponding feature points according to the point order of the vector polygon, and based on these features Decompose the vector polygon into multiple line segments, then use the line segment simplification algorithm of the present invention to simplify the corresponding line segments, and then reassemble the corresponding line segments to form simplified vector polygons to complete the simplification process.

具体的实现过程为:首先重载OGRPoint,增加其判断相等及不相等的函数,类似如下: The specific implementation process is as follows: first, overload OGRPoint, and add its functions for judging equality and inequality, similar to the following:

同时,定义简化线段的数据结构,使得该数据结构能够记录简化前的点串及简化后的点串,类似如下: At the same time, define the data structure of the simplified line segment, so that the data structure can record the point string before simplification and the point string after simplification, similar to the following:

最后,还需要给定判断2个点串是否相同的函数,这里需要返回2个点串的点数个数对比、正相等、反相等的判断,类似如下过程: Finally, a function for judging whether the two point strings are the same needs to be given. Here, it is necessary to return the comparison of the number of points of the two point strings, the judgment of positive equality and inverse equality, similar to the following process:

定义好上述数据结构及基本函数之后,就可以按本发明的实现过程进行矢量多边形的简化了。图2示意了一个基于高分辨率遥感影像分割后的结果,图3则是针对图2采用ArcGIS实现的矢量多边形的简化结果。从图3可以看出,简化之后的各矢量多边形存在一些“空隙”,即各矢量多边形之间的拓扑结构被破坏,使得土地覆被/利用中的一些地方出现的属性重复或属性缺失,这是不正确的,因此必须严格保持矢量多边形的拓扑关系。 After the above data structures and basic functions are defined, vector polygons can be simplified according to the implementation process of the present invention. Fig. 2 shows a segmentation result based on high-resolution remote sensing images, and Fig. 3 is the simplified result of the vector polygon realized by using ArcGIS in Fig. 2. It can be seen from Fig. 3 that there are some "gaps" in each vector polygon after simplification, that is, the topological structure between each vector polygon is destroyed, which makes the attribute duplication or missing in some places in the land cover/utilization, which is is incorrect, so the topological relationship of vector polygons must be strictly preserved.

图4示意了针对待简化矢量多边形的特征点查找方法示意图。其中点A、B、C、D、E、 F、G等绿色的点为与边界相交的点,记为I型特征点;点a、b、c、d、......等则为任意邻接的三个矢量多边形的交点,记为II型特征点。因此这些特征点的遍历策略如下: Fig. 4 illustrates a schematic diagram of a feature point search method for a vector polygon to be simplified. Among them, the green points such as A, B, C, D, E, F, G are the points intersecting with the boundary, which are recorded as I-type feature points; points a, b, c, d,...etc. is the intersection point of any adjacent three vector polygons, and is recorded as a type II feature point. Therefore, the traversal strategy of these feature points is as follows:

首先,需要遍历并找到所有多边形的邻接多边形,用以找到上述的点a,b,c......,方法如下(伪代码): First, it is necessary to traverse and find the adjacent polygons of all polygons to find the above points a, b, c..., the method is as follows (pseudo code):

经过这个步骤,能够遍历出任意一个矢量多边形的邻接多边形,并存储在pFeatureIPFID数据结构中。 After this step, the adjacent polygons of any vector polygon can be traversed and stored in the pFeatureIPFID data structure.

其次,遍历多边形并得出II型特征点,方法类似如下: Secondly, traverse the polygon and get type II feature points, the method is similar to the following:

经过这一步骤,能够遍历出构造矢量多边形的所有特征点,如图4所示,矢量多边形①由3个I型特征点(点A、B、E)及1个II型特征点(点a),矢量多边形②由2个I型特征点(点B、C)及3个II型特征(点a、b、c)。 After this step, all the feature points of the constructed vector polygon can be traversed, as shown in Figure 4, the vector polygon ① consists of three I-type feature points (points A, B, E) and one II-type feature point (point a ), the vector polygon ② consists of 2 type I feature points (points B, C) and 3 type II features (points a, b, c).

第三,需要按照矢量多边形中点的顺序将上面的特征点pFeatureMainPoints的顺序调整正确,方法类似如下: Third, the order of the above feature points pFeatureMainPoints needs to be adjusted correctly according to the order of the midpoints of the vector polygon. The method is similar to the following:

第四,将第三步中已经调整好顺序的点逐一形成线段,这些线段按顺序则构成了该矢量多边形的各组成边,再调用线段简化算法对相应的线段进行简化,方法如下: Fourth, the points that have been adjusted in the order in the third step are formed into line segments one by one, and these line segments constitute the sides of the vector polygon in sequence, and then call the line segment simplification algorithm to simplify the corresponding line segments, the method is as follows:

最后,再生成成果形成生成对应的文件,将结果加入新生成的成果文件。图5示意了图4进行简化后的结果,比较图4、图5可知,I型特征点如点A、B、……,以及II型特征点如点a、b、c、……等均没有被简化掉,即保持矢量多边形拓扑关系的“关键点”。同时,由于定义了数据结构pSimplifyResult,因此邻接2个特征点之间的线段并没有被简化2次,也并 没有因为多次简化而得到不同结果而产生类似图3的空隙。 Finally, the regenerated results are formed to generate corresponding files, and the results are added to the newly generated result files. Fig. 5 shows the simplified results of Fig. 4. Comparing Fig. 4 and Fig. 5, it can be seen that type I feature points such as points A, B, ..., and type II feature points such as points a, b, c, ... etc. The "key points" that are not simplified, that is, the topological relationships of vector polygons are preserved. At the same time, due to the definition of the data structure pSimplifyResult, the line segment between two adjacent feature points has not been simplified twice, and there is no gap similar to Figure 3 due to multiple simplifications resulting in different results.

其中,对于线段简化算法,目前已经发展了多种矢量线段的简化算法,这里可以采用应用较多的Douglas Peucker算法,其实现步骤如下(参考图6): Among them, for the line segment simplification algorithm, a variety of vector line segment simplification algorithms have been developed. Here, the widely used Douglas Peucker algorithm can be used. The implementation steps are as follows (see Figure 6):

a.首先确定最短阈值ε; a. First determine the shortest threshold ε;

b.先连接第一和最后顶点并形成线段(图中),再计算其他点至这条线段的距离,如果某个点距该线段的距离大于阈值ε,则将该点加入需要的点之列,同时该线段分解成为对应的2条线段,如图6中的点C,距离CH>ε,因此将C点加入最终成果之列,将分解为 b. First connect the first and last vertices and form a line segment (in the figure ), and then calculate the distance from other points to this line segment. If the distance between a certain point and this line segment is greater than the threshold ε, then add this point to the list of required points, and at the same time, this line segment is decomposed into two corresponding line segments, as shown in the figure For point C in 6, the distance CH>ε, so point C is added to the list of final results, and the Decomposed into and

c.重复b步骤,逐步判断分解后的线段并将需要的点序列加入,将不需要的点进行删除,直到所有点距离对应的线段距离均小于阈值ε。 c. Repeat step b, gradually judge the decomposed line segment and add the required point sequence, and delete the unnecessary point until the distance between all points and the corresponding line segment is less than the threshold ε.

同样,针对图7所示的土地覆被/利用地块数据(矢量多边形),相应的矢量多边形保持着良好的拓扑关系,图8是采用参数500进行图7矢量多边形简化的效果示意图、图9是采用参数5000进行图7矢量多边形简化的效果示意图、图10是采用参数50000进行图7矢量多边形简化的效果示意图。从图8~图10来看,在不同参数的简化结果中都保持了图4所示的特征点,即拓扑关系;同时,由于参数的不同,图8的简化程度适当,图9则简化程度更大一些,图10则更为简化,在矢量多边形数据量减少的同时与原有矢量多边形的相似程度则差异更大。 Similarly, for the land cover/utilization plot data (vector polygon) shown in Figure 7, the corresponding vector polygon maintains a good topological relationship, and Figure 8 is a schematic diagram of the effect of using parameter 500 to simplify the vector polygon in Figure 7, and Figure 9 It is a schematic diagram of the effect of simplification of the vector polygon in Figure 7 with a parameter of 5000, and Figure 10 is a schematic diagram of the effect of simplification of the vector polygon of Figure 7 with a parameter of 50000. From Figure 8 to Figure 10, the feature points shown in Figure 4 are maintained in the simplified results of different parameters, that is, the topological relationship; at the same time, due to the different parameters, the degree of simplification in Figure 8 is appropriate, and the degree of simplification in Figure 9 is It is larger, and Figure 10 is more simplified, and the similarity between the original vector polygon and the original vector polygon is even greater while the amount of vector polygon data is reduced.

本发明的实例在PC平台上实现,经实验证明,本发明能够在保持土地覆被/利用的空间拓扑关系的前提下,较好地实现矢量多边形简化的要求。本发明中所提及方法可广泛应用于其他需要保持拓扑关系的矢量多边形数据的简化等应用中。 The example of the present invention is realized on the PC platform, and experiments prove that the present invention can better realize the requirement of vector polygon simplification under the premise of maintaining the spatial topological relationship of land cover/utilization. The method mentioned in the present invention can be widely used in other applications such as simplification of vector polygonal data that need to maintain topology.

Claims (3)

1. keep a shortcut calculation for the windy and sandy soil vector data of topology, it is characterized in that comprising following step:
Step 1, opens and treats Predigest vector data, builds data structure, and sets up all polygonal topological structure forming windy and sandy soil, and records each polygonal adjacent polygon;
Step 2, records each polygon in step 1 and adjoins on polygonal basis, calculates each polygonal unique point, and set up the corresponding relation of polygon and unique point by each polygonal adjacent polygonal syntople;
Step 3, carries out rearranging for the unique point of each polygonal original point set order to calculating in step 2 and sorts, forming the feature point set consistent with original order;
Step 4, polygon splits by the ordinal characteristics point adopting step 3 to be formed becomes some line segments, and records the corresponding relation of polygon and line segment, and each line segment retains polygonal original point set;
Step 5, adopts certain line segment shortcut calculation to simplify all line segments in step 4;
Step 6, re-starts tissue by the result line segment after step 5 simplifies by the relation of polygon and the line segment of record in step 4 by original order, forms the polygon after simplification.
2. polygon splits by the ordinal characteristics point according to step 4 in claim 1 becomes some line segments, it is characterized in that: based on adjacent unique point, vector polygon is split into line segment, again these line segments are simplified, effectively can keep the topological adjacency relation between each vector polygon.
3. the line segment shortcut calculation according to step 5 in claim 1, it is characterized in that: select different line segment shortcut calculations according to actual conditions demand, as Douglas Peuker algorithm, cohen-sutherland algorithm, Voronoi shortcut calculation, polygon vertex elimination method etc.
CN201410508703.5A 2014-09-29 2014-09-29 Simplification algorithm for land cover vector data for maintaining topology Pending CN104537635A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410508703.5A CN104537635A (en) 2014-09-29 2014-09-29 Simplification algorithm for land cover vector data for maintaining topology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410508703.5A CN104537635A (en) 2014-09-29 2014-09-29 Simplification algorithm for land cover vector data for maintaining topology

Publications (1)

Publication Number Publication Date
CN104537635A true CN104537635A (en) 2015-04-22

Family

ID=52853154

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410508703.5A Pending CN104537635A (en) 2014-09-29 2014-09-29 Simplification algorithm for land cover vector data for maintaining topology

Country Status (1)

Country Link
CN (1) CN104537635A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105488346A (en) * 2015-12-01 2016-04-13 中国科学院地理科学与资源研究所 Spatial prediction analogy method of large-scale land cover change
CN107193877A (en) * 2017-04-24 2017-09-22 中国科学院遥感与数字地球研究所 Land cover classification system and method
CN108205565A (en) * 2016-12-19 2018-06-26 北京四维图新科技股份有限公司 Electronic map element vacuates method, apparatus and terminal
CN110666165A (en) * 2019-06-21 2020-01-10 贵州翰凯斯智能技术有限公司 Frame structure optimization method based on 3D printing
CN111507991A (en) * 2020-04-20 2020-08-07 西安邮电大学 Method and device for segmenting remote sensing image of characteristic region

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1908985A (en) * 2006-08-22 2007-02-07 中国科学院计算技术研究所 Lattice simplified restrain method of three-dimensional human model
CN101877147A (en) * 2010-06-29 2010-11-03 浙江大学 Simplification Algorithm for 3D Triangular Mesh Model
CN101887451A (en) * 2010-06-21 2010-11-17 哈尔滨工程大学 Simplification method of electronic chart vector graphics
US8488845B1 (en) * 2006-05-02 2013-07-16 Geoeye Solutions Inc. Semi-automatic extraction of linear features from image data
CN103309938A (en) * 2013-04-24 2013-09-18 中国科学院遥感与数字地球研究所 A High Performance Method for Realizing the Maximum Inner Circle of a Polygon
CN103838829A (en) * 2014-02-18 2014-06-04 中国林业科学研究院资源信息研究所 Raster vectorization system based on hierarchical boundary-topology search model
CN103871086A (en) * 2014-02-18 2014-06-18 中国林业科学研究院资源信息研究所 FPGA (Field Programmable Gata Array) construction-based layered raster-to-vector processing method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8488845B1 (en) * 2006-05-02 2013-07-16 Geoeye Solutions Inc. Semi-automatic extraction of linear features from image data
CN1908985A (en) * 2006-08-22 2007-02-07 中国科学院计算技术研究所 Lattice simplified restrain method of three-dimensional human model
CN101887451A (en) * 2010-06-21 2010-11-17 哈尔滨工程大学 Simplification method of electronic chart vector graphics
CN101877147A (en) * 2010-06-29 2010-11-03 浙江大学 Simplification Algorithm for 3D Triangular Mesh Model
CN103309938A (en) * 2013-04-24 2013-09-18 中国科学院遥感与数字地球研究所 A High Performance Method for Realizing the Maximum Inner Circle of a Polygon
CN103838829A (en) * 2014-02-18 2014-06-04 中国林业科学研究院资源信息研究所 Raster vectorization system based on hierarchical boundary-topology search model
CN103871086A (en) * 2014-02-18 2014-06-18 中国林业科学研究院资源信息研究所 FPGA (Field Programmable Gata Array) construction-based layered raster-to-vector processing method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
周石琳等: "基于多边形顶点法矢量的网格模型简化算法", 《中国图象图形学报》 *
汤晓安等: "地景模型的简化与快速绘制方法研究", 《武汉大学学报》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105488346A (en) * 2015-12-01 2016-04-13 中国科学院地理科学与资源研究所 Spatial prediction analogy method of large-scale land cover change
CN108205565A (en) * 2016-12-19 2018-06-26 北京四维图新科技股份有限公司 Electronic map element vacuates method, apparatus and terminal
CN107193877A (en) * 2017-04-24 2017-09-22 中国科学院遥感与数字地球研究所 Land cover classification system and method
CN110666165A (en) * 2019-06-21 2020-01-10 贵州翰凯斯智能技术有限公司 Frame structure optimization method based on 3D printing
CN110666165B (en) * 2019-06-21 2022-03-22 贵州翰凯斯智能技术有限公司 Frame structure optimization method based on 3D printing
CN111507991A (en) * 2020-04-20 2020-08-07 西安邮电大学 Method and device for segmenting remote sensing image of characteristic region
CN111507991B (en) * 2020-04-20 2023-03-21 西安邮电大学 Method and device for segmenting remote sensing image of characteristic region

Similar Documents

Publication Publication Date Title
CN111475596B (en) Sub-segment similarity matching method based on multi-level track coding tree
CN110232329B (en) Point cloud classification method and device based on deep learning, storage medium and equipment
CN105551028B (en) A kind of method and system of the geographical spatial data dynamic renewal based on remote sensing image
Wang et al. Feature‐preserving surface reconstruction from unoriented, noisy point data
CN114332366B (en) Digital urban single house point cloud elevation 3D feature extraction method
CN104537635A (en) Simplification algorithm for land cover vector data for maintaining topology
Chen et al. A scale-adaptive DEM for multi-scale terrain analysis
CN110176018A (en) A kind of figure spot merging method keeping structuring atural object contour feature
CN107845139A (en) A kind of processing method of long and narrow figure spot divisural line
CN102930561A (en) Delaunay-triangulation-based grid map vectorizing method
CN105118090A (en) Adaptive point-cloud filtering method for complex terrain structure
CN108594816A (en) A kind of method and system for realizing positioning and composition by improving ORB-SLAM algorithms
CN111340723A (en) A terrain-adaptive thin-plate spline interpolation filtering method for airborne LiDAR point cloud regularization
Li et al. Water extraction in high resolution remote sensing image based on hierarchical spectrum and shape features
CN104317886B (en) Searching and selecting method of adjacent conditional data points during grid node interpolation under fault constraints
CN110543885A (en) A method for interactively extracting roads from high-resolution remote sensing images and generating road networks
KR20150093391A (en) Method for rendering terrain
CN105574887A (en) Quick high-resolution remote sensing image segmentation method
CN101630366A (en) Method for extracting dynamic inundated area of large numbers of block topographic data, device and system thereof
CN108829711A (en) A kind of image search method based on multi-feature fusion
CN110580388B (en) Channel network extraction method based on crowd-sourced trajectory data
CN105741225A (en) Reversible watermark method of multi-dimensional prediction error extension
CN107564078B (en) Automatic vectorization method for grid partition map with interference pixels
She et al. An appearance‐preserving simplification method for complex 3D building models
CN110599478A (en) Image area copying and pasting tampering detection method

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150422

WD01 Invention patent application deemed withdrawn after publication