CN111260758B - Method and system for constructing hierarchical relationship of planar administrative region - Google Patents
Method and system for constructing hierarchical relationship of planar administrative region Download PDFInfo
- Publication number
- CN111260758B CN111260758B CN201911419504.6A CN201911419504A CN111260758B CN 111260758 B CN111260758 B CN 111260758B CN 201911419504 A CN201911419504 A CN 201911419504A CN 111260758 B CN111260758 B CN 111260758B
- Authority
- CN
- China
- Prior art keywords
- coverage
- area
- relationship
- planar
- administrative
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 32
- 238000010276 construction Methods 0.000 claims description 18
- 238000004364 calculation method Methods 0.000 claims description 10
- 238000004590 computer program Methods 0.000 claims description 6
- 230000008520 organization Effects 0.000 claims description 5
- 238000007781 pre-processing Methods 0.000 claims description 5
- 238000001914 filtration Methods 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 7
- 238000007726 management method Methods 0.000 description 7
- 230000002452 interceptive effect Effects 0.000 description 3
- 230000015572 biosynthetic process Effects 0.000 description 2
- 238000005538 encapsulation Methods 0.000 description 2
- 241000143437 Aciculosporium take Species 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 239000002131 composite material Substances 0.000 description 1
- 238000013499 data model Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/60—Editing figures and text; Combining figures or text
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/29—Geographical information databases
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Remote Sensing (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- Processing Or Creating Images (AREA)
Abstract
本发明涉及一种面状行政区域层次关系的构建方法及系统,属于地理信息系统空间数据处理技术领域。本发明通过定义覆盖误差区域和计算覆盖误差区域面积进行空间关系算子重构,利用重构后空间关系算子来实现对两个面状行政区域的是否存在覆盖层次关系的判断,重构后的空间关系算子采用覆盖误差比描述空间关系,根据覆盖误差比大小实现对覆盖关系的判断,避免了在两个面状区域间由于误差引起较小交叠而被判为交叠关系,提高了覆盖关系判断的准确性。
The invention relates to a method and system for constructing hierarchical relations of planar administrative regions, and belongs to the technical field of geographic information system spatial data processing. The present invention reconstructs the spatial relationship operator by defining the coverage error area and calculating the area of the coverage error area, and uses the reconstructed spatial relationship operator to realize the judgment of whether there is a coverage hierarchy relationship between two planar administrative areas. After reconstruction The spatial relationship operator uses the coverage error ratio to describe the spatial relationship, and realizes the judgment of the coverage relationship according to the coverage error ratio, which avoids the overlapping relationship between two planar regions due to the small overlap caused by the error, and improves The accuracy of the coverage relationship judgment is improved.
Description
技术领域technical field
本发明涉及一种面状行政区域层次关系的构建方法及系统,属于地理信息系统空间数据处理技术领域。The invention relates to a method and system for constructing hierarchical relations of planar administrative regions, and belongs to the technical field of geographic information system spatial data processing.
背景技术Background technique
行政区域是国家为了进行分级管理而实行的区域划分政策,我国主要划分为省级行政区、县级行政区、乡级行政区三个行政级别。在地理信息系统中,对不同级别的行政区域空间数据的组织管理主要是采用分层管理的方式,将不同级别的行政区域的空间数据组织在不同的图层中,这种方式便于空间数据的组织管理,但是却割裂了不同级别的行政区域间的层次关系,即仅仅实现了空间数据的横向管理,却忽视了纵向管理。Administrative region is a regional division policy implemented by the country for hierarchical management. my country is mainly divided into three administrative levels: provincial administrative regions, county administrative regions, and township administrative regions. In the geographic information system, the organization and management of spatial data of different levels of administrative regions mainly adopts the method of layered management, and the spatial data of different levels of administrative regions are organized in different layers, which is convenient for the management of spatial data. Organizational management, but it splits the hierarchical relationship between different levels of administrative regions, that is, it only realizes the horizontal management of spatial data, but ignores the vertical management.
构建不同级别间的行政区域面状空间数据的方式主要有两种,一种是交互方式构建,即通过图形交互方式确定不同层级间面状要素的空间关系;另一种是自动构建,即通过空间关系算子计算并构建出面状要素间的层级关系。对于较少数据量、较少层级关系的空间数据而言,可以采用交互方式构建,但对于较大数据量、较多层级关系的空间数据而言,交互方式构建不仅工作量大而且容易出错,因而往往采用自动构建方式。自动构建方式的关键在于空间关系算子,目前,对于空间数据拓扑关系的计算模型,最有代表性的是9-交模型,如图1所示,能够计算“面-面空间关系”的主要是相离(disjoint)、相接(meet)、交叠(overlap)、相等(equal)、包含(contain)、在内部(inside)、覆盖(cover)和被覆盖(covered by),能够用于面状行政区域层次关系计算的主要是包含、覆盖等。对于图2-1和图2-2中的情况1和情况2而言,现有空间关系算子可以做出准确的计算和判断,但是对于情况3(如图2-3所示)而言,往往会被空间关系算子计判断为交叠,而导致无法构建层次关系,但实际上A区域和B区域交叠的部分面积很小,往往是由于在采集行政区域边界时造成的误差,而且这种情况在不同来源的行政区域数据中十分常见。There are two main ways to construct the planar spatial data of administrative regions between different levels. One is interactive construction, that is, the spatial relationship of planar elements between different levels is determined through graphical interaction; the other is automatic construction, that is, through The spatial relationship operator calculates and constructs the hierarchical relationship between area elements. For spatial data with less data volume and fewer hierarchical relationships, interactive construction can be used, but for spatial data with larger data volumes and more hierarchical relationships, interactive construction is not only a heavy workload but also error-prone. Therefore, automatic construction is often used. The key to the automatic construction method lies in the spatial relationship operator. At present, the most representative calculation model for the topological relationship of spatial data is the 9-intersection model, as shown in Figure 1, which can calculate the main are disjoint, meet, overlap, equal, contain, inside, cover and covered by, and can be used for The calculation of the hierarchical relationship of area administrative regions mainly includes inclusion and coverage. For
发明内容Contents of the invention
本发明的目的是提供一种面状行政区域层次关系的构建方法及系统,以解决目前层次关系构建过程中覆盖关系判断易出错的问题。The purpose of the present invention is to provide a method and system for constructing the hierarchical relationship of planar administrative regions, so as to solve the problem that the judgment of coverage relationship is prone to error in the current hierarchical relationship construction process.
本发明为解决上述技术问题而提供一种面状行政区域层次关系的构建方法,该构建方法包括以下步骤:In order to solve the above-mentioned technical problems, the present invention provides a method for constructing the hierarchical relationship of planar administrative regions, which comprises the following steps:
1)获取面状行政区域要素的空间几何数据;1) Obtain the spatial geometry data of the planar administrative region elements;
2)利用两个面状行政区域要素所在多边形之间的关系确定覆盖误差区域,根据覆盖误差区域和覆盖误差区域面积构建空间关系算子,零空间关系算子等于覆盖误差比,覆盖误差比指的是覆盖误差区域面积和被覆盖要素落入覆盖要素的覆盖面积之间的比值;2) Determine the coverage error area by using the relationship between the polygons where the two planar administrative area elements are located, and construct a spatial relationship operator based on the coverage error area and the area of the coverage error area. The zero spatial relationship operator is equal to the coverage error ratio, and the coverage error ratio refers to is the ratio between the area of the coverage error area and the coverage area of the covered element falling into the covered element;
3)根据覆盖误差比判断两个面状行政区域要素之间是否构成覆盖层次关系,若构成,则对覆盖层次关系进行数据组织,实现面状行政区域层次关系的构建。3) According to the coverage error ratio, it is judged whether there is a coverage hierarchical relationship between the elements of the two planar administrative regions. If so, the data organization of the coverage hierarchical relationship is carried out to realize the construction of the hierarchical relationship of the planar administrative region.
本发明还提供了一种面状行政区域层次关系的构建系统,该构建系统包括存储器和处理器,以及存储在所述存储器上并在所述处理器上运行的计算机程序,所述处理器与所述存储器相耦合,所述处理器执行所述计算机程序时实现如本发明的的面状行政区域层次关系的构建方法。The present invention also provides a system for constructing hierarchical relations of planar administrative regions, the construction system includes a memory and a processor, and a computer program stored in the memory and run on the processor, the processor and The memory is coupled, and when the processor executes the computer program, the method for constructing the hierarchical relationship of the area-like administrative regions according to the present invention is realized.
本发明通过定义覆盖误差区域和计算覆盖误差区域面积进行空间关系算子重构,利用重构后空间关系算子来实现对两个面状行政区域的是否存在覆盖层次关系的判断,重构后的空间关系算子采用覆盖误差比描述空间关系,根据覆盖误差比大小实现对覆盖关系的判断,避免了在两个面状区域间由于误差引起较小交叠而被判为交叠关系,提高了覆盖关系判断的准确性。The present invention reconstructs the spatial relationship operator by defining the coverage error area and calculating the area of the coverage error area, and uses the reconstructed spatial relationship operator to realize whether there is a coverage hierarchy relationship between two planar administrative areas. After reconstruction The spatial relationship operator uses the coverage error ratio to describe the spatial relationship, and realizes the judgment of the coverage relationship according to the coverage error ratio, which avoids the small overlap caused by the error between two planar regions and is judged as an overlapping relationship, and improves The accuracy of the coverage relationship judgment is improved.
进一步地,本发明给出了覆盖误差区域的确定过程,所述步骤2)中覆盖误差区域的确定过程如下:Further, the present invention provides the determination process of the coverage error area, and the determination process of the coverage error area in the step 2) is as follows:
A.确定两个面状行政区域所在多边形每条边之间的交点,得到两个面状行政区域的交点集合{p1,p2,...,pn};A. Determine the intersection point between each side of the polygon where the two planar administrative regions are located, and obtain the set of intersection points {p 1 ,p 2 ,...,p n } of the two planar administrative regions;
B.依次从所述交点集合中选取两个交点pi和pi-1,分别确定被覆盖多边形边界上被所选取的两个交点截断的点集合Pi以及覆盖多边形边界上被所选取的两个交点截断的点集合Pi′;B. Select two intersection points p i and p i-1 from the intersection point set in turn, respectively determine the point set P i truncated by the two selected intersection points on the boundary of the covered polygon and the point set P i selected on the boundary of the covered polygon Point set P i ′ of two intersection points truncated;
C.将步骤B中得到的各点集合按照设定顺序组成多边形,覆盖误差区域为组成的多边形集合。C. Form the set of points obtained in step B into a polygon according to the set order, and cover the error area as the formed polygon set.
进一步地,本发明给出了覆盖多边形的确定过程,覆盖多边形的确定过程如下:Further, the present invention provides the determination process of the coverage polygon, and the determination process of the coverage polygon is as follows:
a.从交点集合{p1,p2,...,pn}中取出首末交点p1和pn,确定被首末交点p1和pn截断的被覆盖多边形落在覆盖多边形内部的点集合Pinside;a. Take out the first and last intersection points p 1 and p n from the set of intersection points {p 1 ,p 2 ,...,p n }, and make sure that the covered polygon truncated by the first and last intersection points p 1 and p n falls inside the covering polygon The point set P inside ;
b.从点集合Pi中选取i为奇数的点,从点集合Pi′中选取i为偶数时的点,将所取出的点按照设定顺序构成边界点集合Pboundary;b. Select the point where i is an odd number from the point set P i , select the point when i is an even number from the point set P i ', and form the boundary point set P boundary with the points taken out according to the set order;
c.将点集合Pinside和Pboundary中的点按照一定顺序组成多边形,该多边形即为覆盖多边形。c. The points in the point sets P inside and P boundary are formed into a polygon in a certain order, and the polygon is the covering polygon.
进一步地,为方便数据存储、组织,所述步骤3)采用树状结构对覆盖层次关系进行数据组织。Further, in order to facilitate data storage and organization, the step 3) uses a tree structure to organize data covering hierarchical relationships.
进一步地,为提高层次关系的构造的准确性和效率,该方法还包括对获取面状行政区域要素的空间几何数据进行预处理的步骤,所述的预处理包括同名要素合并和/或零散多边形过滤。Further, in order to improve the accuracy and efficiency of the construction of the hierarchical relationship, the method also includes the step of preprocessing the spatial geometry data of the obtained planar administrative area elements, and the preprocessing includes merging elements with the same name and/or scattered polygons filter.
进一步地,为方便计算覆盖误差区域的面积,所述的覆盖误差区域的面积采用多边形面积计算公式得到,采用的计算公式为:Further, in order to facilitate the calculation of the area of the coverage error area, the area of the coverage error area is obtained by using the polygonal area calculation formula, and the calculation formula used is:
其中Serror为覆盖误差区域的面积,(xi,yi)为构成覆盖误差区域多边形的第i个顶点坐标。Where S error is the area of the coverage error area, and (xi , y i ) is the i-th vertex coordinate of the polygon that constitutes the coverage error area.
进一步地,为实现对空间关系的全方面判别,该方法还包括对空间包含关系的判断,若一个要素的空间几何数据完全包含另一个要素的空间几何数据,则判定二者构成包含的层次关系。Furthermore, in order to realize the all-round discrimination of the spatial relationship, the method also includes the judgment of the spatial inclusion relationship. If the spatial geometric data of one element completely contains the spatial geometric data of another element, then it is determined that the two constitute the hierarchical relationship of inclusion. .
附图说明Description of drawings
图1是现有的9种面-面拓扑关系示意图;Figure 1 is a schematic diagram of the existing 9 surface-to-surface topological relationships;
图2-1是面-面拓扑关系中情况1的关系示意图;Figure 2-1 is a schematic diagram of the relationship of
图2-2是面-面拓扑关系中情况2的关系示意图;Figure 2-2 is a schematic diagram of the relationship of case 2 in the surface-to-surface topology relationship;
图2-3是面-面拓扑关系中情况3(覆盖)的关系示意图;Figure 2-3 is a schematic diagram of the relationship of case 3 (coverage) in the surface-surface topology relationship;
图3是本发明面状行政区域层次关系的构建方法的流程图;Fig. 3 is a flow chart of the construction method of the hierarchical relationship of the area administrative regions of the present invention;
图4是本发明中空间关系算子重构示意图;Fig. 4 is a schematic diagram of spatial relation operator reconstruction in the present invention;
图5是本发明实施例覆盖误差区域示意图;FIG. 5 is a schematic diagram of a coverage error area according to an embodiment of the present invention;
图6是本发明实施例两个多边形构成的覆盖误差区域示意图。Fig. 6 is a schematic diagram of a coverage error area composed of two polygons according to an embodiment of the present invention.
具体实施方式Detailed ways
下面结合附图对本发明的具体实施方式作进一步地说明。The specific embodiments of the present invention will be further described below in conjunction with the accompanying drawings.
方法实施例method embodiment
本发明针对目前面状行政区域层次关系构建过程中存在覆盖关系易被判定为交叠关系的问题,提出了一种面状行政区域层次关系的构建方法,该构建方法通过定义覆盖误差区域和计算覆盖误差区域面积进行空间关系算子重构,利用重构后空间关系算子来实现对两个面状行政区域的是否存在覆盖层次关系的判断。实现流程如图3所示,具体实施过程如下。Aiming at the problem that the coverage relationship is easily judged to be an overlapping relationship in the current construction process of the hierarchical relationship of the area-shaped administrative area, the present invention proposes a method for constructing the hierarchical relationship of the area-shaped administrative area. The construction method defines the coverage error area and calculates The coverage error area is reconstructed by the spatial relationship operator, and the reconstructed spatial relationship operator is used to judge whether there is a coverage hierarchy relationship between the two planar administrative areas. The implementation process is shown in Figure 3, and the specific implementation process is as follows.
1.获取面状行政区域要素的空间几何数据。1. Obtain the spatial geometry data of the planar administrative area elements.
本发明针对的面状行政区域要素的空间几何数据指的是面状行政区域的坐标数据,可以是各种电子地图数据。在GIS矢量数据模型中,要素是对几何图形和属性信息的封装,行政区域要素的几何图形是多边形(既然说的是区域那就是多边形,如果是行政中心那就是点)。在得到上述数据后,还需要对数据进行预处理,数据预处理主要是对不满足要求的数据进行过滤,以便于后续处理和降低干扰数据对计算和判断结果的影响。首先是同名要素合并,即将要素中同名的要素合并为一个要素;其次是零散多边形过滤,面状行政区域要素的空间几何数据往往是复合几何体(即多面,MultiPolygon),但零散的小多边形并不利于数据的处理,因此需要将这些干扰数据过滤掉,即每一个要素仅保留其面积最大的部分,而删除其余零散多边形。The spatial geometry data of the planar administrative area elements in the present invention refers to the coordinate data of the planar administrative area, which may be various electronic map data. In the GIS vector data model, elements are the encapsulation of geometric figures and attribute information, and the geometric figures of administrative area elements are polygons (since it is a region, it is a polygon, and if it is an administrative center, it is a point). After obtaining the above data, it is necessary to preprocess the data. Data preprocessing is mainly to filter the data that does not meet the requirements, so as to facilitate subsequent processing and reduce the impact of interference data on the calculation and judgment results. The first is the merging of elements with the same name, that is, merging the elements with the same name into one element; the second is the filtering of scattered polygons. The spatial geometric data of the area-like administrative area elements is often a composite geometry (that is, multi-faceted, MultiPolygon), but the scattered small polygons are not. It is beneficial to data processing, so it is necessary to filter out these interference data, that is, each element only retains the part with the largest area, and deletes the rest of the scattered polygons.
2.重构空间关系算子。2. Reconstruct the spatial relation operator.
现有的空间关系算子无法满足面状空间数据间层次关系的判断,因此需要对空间关系算子进行重构,这也是本发明的核心部分。空间关系算子重构的基本方案如图4所示,首先是对现有原始元算子进行扩展和改进,形成改进后的元算子,通过组合和重排,再形成重构算子,进而实现层次关系的构建。原始元算子指的是现有的基础计算算子如长度、角度、面积、关系(包含、相交、分离等)、线段求交点、点到线段的距离等,这些算子是本发明算法的基础,但是这些算子都比较基础,因此需要在其基础上进行扩展(或封装),使之能够满足更高的要求,如构建覆盖多边形、计算覆盖误差面积等,最终的重构算子则是对本发明的最高层次的封装,它的输入是需要进行层次关系判断的两两多边形,输出则是是否构成层次关系。Existing spatial relationship operators cannot satisfy the judgment of the hierarchical relationship between planar spatial data, so it is necessary to reconstruct the spatial relationship operator, which is also the core part of the present invention. The basic scheme of spatial relationship operator reconstruction is shown in Figure 4. First, the existing original meta-operator is expanded and improved to form an improved meta-operator, and then the reconstruction operator is formed through combination and rearrangement. Then realize the construction of hierarchical relationship. The original element operator refers to the existing basic computing operators such as length, angle, area, relationship (including, intersecting, separating, etc.), line segment intersecting point, point to line segment distance, etc. These operators are the core of the algorithm of the present invention However, these operators are relatively basic, so they need to be extended (or encapsulated) on the basis to make them meet higher requirements, such as building coverage polygons, calculating coverage error areas, etc., and the final reconstruction operator is It is the highest-level encapsulation of the present invention. Its input is pairwise polygons that need to be judged on the hierarchical relationship, and its output is whether to form a hierarchical relationship.
覆盖误差区域的形成原因主要就是两份数据(在进行数据生产时,上级行政区和下级行政区往往是两个不同的图层)在不同的采集过程中造成的覆盖,因为人工采集的两个图层的数据不可能完全吻合,所以形成这种误差区域是必然的事情。定义覆盖误差区域如图5所示,如果两个要素的边界部分相似,则相似部分的边界线间构成的多边形区域则称为覆盖误差区域;如图6所示,行政区域A为被覆盖多边形,行政区域B为覆盖多边形,浅色区域为覆盖误差区域,深色区域为被覆盖多边形落入覆盖多边形的区域。The reason for the formation of the coverage error area is mainly the coverage caused by two sets of data (in data production, the upper-level administrative region and the lower-level administrative region are often two different layers) in different collection processes, because the two manually collected layers It is impossible to completely match the data, so the formation of this error area is inevitable. Defining the coverage error area is shown in Figure 5. If the boundary parts of two elements are similar, the polygonal area formed between the boundary lines of the similar parts is called the coverage error area; as shown in Figure 6, the administrative area A is the covered polygon , the administrative area B is the coverage polygon, the light area is the coverage error area, and the dark area is the area where the covered polygon falls into the coverage polygon.
在构建覆盖误差区域时,由于没有直接获取两个区域相交结果的空间算子,因此需要对现有算子进行扩展和改造。首先计算两个多边形每条边之间的交点,构成交点集合{p1,p2,...,pn}。依次取两个交点pi和pi-1,分别计算被覆盖多边形边界上被pi和pi-1截断的点的集合Pi,以及覆盖多边形边界上被pi和pi-1截断的点的集合Pi′,将点集合Pi和Pi′按照顺时针(或逆时针)顺序组成多边形,将所有的零散多边形组织成集合即获得了覆盖误差区域多边形集合。When constructing the coverage error area, since there is no spatial operator that directly obtains the intersection result of two areas, the existing operator needs to be expanded and transformed. First calculate the intersection point between each side of the two polygons to form a set of intersection points {p 1 ,p 2 ,...,p n }. Take two intersection points p i and p i-1 in turn, respectively calculate the set P i of the points truncated by p i and p i-1 on the boundary of the covered polygon, and the set of points truncated by p i and p i-1 on the boundary of the covered polygon The set of points P i ′, the point sets P i and P i ′ are composed of polygons in a clockwise (or counterclockwise) order, and all the scattered polygons are organized into a set to obtain a polygon set covering the error area.
对于落入覆盖要素中的覆盖多边形而言,取首末交点p1和pn,计算被该节点对截断的被覆盖多边形落在覆盖多边形内部的点集合Pinside,取出上一步中所有i为奇数时的点的集合Pi′,以及所有i为偶数时的点集合Pi,将所有的点集合,按照收尾相接的顺序构成边界点集合Pboundary(收尾相接处的相同节点仅保留一个),最后将Pinside和Pboundary中的节点按照顺时针(或逆时针)的顺序组织成多边形,即构成了覆盖多边形。For the covering polygon falling into the covering element, take the first and last intersection points p 1 and p n , calculate the point set P inside of the covered polygon truncated by this node pair and fall inside the covering polygon, and take out all i in the previous step as The set of points P i ′ when it is odd, and the set of points P i when all i are even numbers, all point sets form the boundary point set P boundary in the order of ending connection (only the same nodes at the ending connection are reserved a), and finally organize the nodes in P inside and P boundary into polygons in a clockwise (or counterclockwise) order, which constitutes a covering polygon.
记覆盖误差区域的面积为Serror,可以通过多边形面积计算公式来计算误差区域的面积,即:Record the area of the coverage error area as S error , and the area of the error area can be calculated by the polygon area calculation formula, namely:
其中(xi,yi)为构成覆盖误差区域多边形的第i个顶点坐标。Where ( xi , y ) is the i-th vertex coordinate of the polygon covering the error area.
同样,被覆盖要素落入罗覆盖要素的区域面积也可以按照上式计算。计算覆盖误差区域面积和被覆盖要素落入覆盖要素的覆盖面积之间的比值,将该比值定义为覆盖误差比ρ,该覆盖误差比ρ即为重构后的空间关系算子。Similarly, the area where the covered element falls into the covered element can also be calculated according to the above formula. Calculate the ratio between the area of the coverage error area and the coverage area of the covered element falling into the coverage element, and define the ratio as the coverage error ratio ρ, which is the reconstructed spatial relationship operator.
ρ=Serror/Scover ρ=S error /S cover
3.空间层次关系判断。3. Judgment of spatial hierarchical relationship.
根据重构的关系算子判断两个面状行政区域间是否符合覆盖关系,具体而言,通过判断覆盖误差比的大小来判定,给定一个阈值ε,若两个面状行政区域间的覆盖误差比ρ大于阈值ε,则说明这两个面状行政区域之间为覆盖关系。According to the reconstructed relationship operator, it is judged whether the coverage relationship between two area-shaped administrative regions is consistent. Specifically, it is judged by judging the size of the coverage error ratio. Given a threshold ε, if the coverage between the two area-like administrative regions If the error ratio ρ is greater than the threshold ε, it indicates that there is a coverage relationship between the two planar administrative regions.
本发明除了能够准确判定覆盖关系外,还能够进行包含关系的判断,该种关系的判断采用的是现有面面包含关系的判断方式,主要是判断两个面状行政区域间是否存在一个包含另一个的情况。In addition to accurately determining the coverage relationship, the present invention can also determine the inclusion relationship. The judgment of this kind of relationship adopts the existing judgment method of the surface inclusion relationship, mainly to determine whether there is an inclusion relationship between two planar administrative regions. Another situation.
当对多于两个的面状行政区域空间数据图层间构建层次关系时,需要确定构建次序,本发明中采用人工指定的方式,将级别较高的图层排在前面,级别较低的图层则排在后面,在进行层次关系构建时,按照排列的顺序,依次构建两两图层间要素的层次关系,但要保证排列靠前的图层要素包含(或覆盖)排列靠后的图层要素,而不能出现排列靠后的图层要素包含(或覆盖)排列靠前的图层要素。When constructing a hierarchical relationship between more than two planar administrative region spatial data layers, it is necessary to determine the construction order. In the present invention, the artificial designation method is adopted to arrange the layer with a higher level in front, and the layer with a lower level. Layers are arranged at the back. When constructing the hierarchical relationship, the hierarchical relationship between the elements of the two layers is constructed in sequence according to the order of arrangement, but it must be ensured that the layer elements arranged in the front include (or cover) the elements arranged in the back. Layer features, and the lower layer features cannot contain (or cover) the earlier layer features.
4.进行空间层次关系组织。4. Carry out spatial hierarchical relationship organization.
由于行政区域间是严格的树状结构,所以本发明采用树状结构模型对空间层次关系进行组织。为了能够与空间数据解耦,本发明将行政区域要素映射为节点(Node),通过getParentNode接口获取上级节点,通过getChildNodes接口获得当前节点的所有下级节点,通过getReferenceFeature接口获取当前节点所关联的行政区域要素。这样每一颗树的根节点就是整个层次关系的入口,多个这样的根节点组织在一起就构成了森林,只要将每棵树的根节点管理起来即可。本发明采用节点集合NodeCollection对根节点进行组织,通过getRootNode接口获得某一个根节点,通过getRootNodes接口获得所有的根节点。Since the administrative regions have a strict tree structure, the present invention adopts a tree structure model to organize the spatial hierarchical relationship. In order to be able to decouple from spatial data, the present invention maps administrative area elements to nodes (Nodes), obtains superior nodes through the getParentNode interface, obtains all subordinate nodes of the current node through the getChildNodes interface, and obtains the administrative area associated with the current node through the getReferenceFeature interface element. In this way, the root node of each tree is the entrance of the entire hierarchical relationship, and multiple such root nodes are organized together to form a forest, as long as the root nodes of each tree are managed. The invention adopts the node collection NodeCollection to organize the root nodes, obtains a certain root node through the getRootNode interface, and obtains all the root nodes through the getRootNodes interface.
系统实施例System embodiment
本发明的面状行政区域层次关系的构建系统包括存储器和处理器,以及存储在存储器上并在处理器上运行的计算机程序,处理器与存储器相耦合,处理器执行计算机程序时实现本发明的的面状行政区域层次关系的构建方法。该方法的具体实现过程已在方法的实施例中进行了详细说明,这里不再赘述。The system for constructing the hierarchical relations of area administrative regions of the present invention includes a memory and a processor, and a computer program stored in the memory and run on the processor, the processor is coupled with the memory, and the processor implements the present invention when executing the computer program The construction method of the hierarchical relationship of the planar administrative regions. The specific implementation process of the method has been described in detail in the embodiments of the method, and will not be repeated here.
本发明通过定义覆盖误差区域和计算覆盖误差区域面积进行空间关系算子重构,利用重构后空间关系算子来实现对两个面状行政区域的是否存在覆盖层次关系的判断,重构后的空间关系算子采用覆盖误差比描述空间关系,根据覆盖误差比大小实现对覆盖关系的判断,避免了在两个面状区域间由于误差引起较小交叠而被判为交叠关系,提高了覆盖关系判断的准确性。The present invention reconstructs the spatial relationship operator by defining the coverage error area and calculating the area of the coverage error area, and uses the reconstructed spatial relationship operator to realize whether there is a coverage hierarchy relationship between two planar administrative areas. After reconstruction The spatial relationship operator uses the coverage error ratio to describe the spatial relationship, and realizes the judgment of the coverage relationship according to the coverage error ratio, which avoids the small overlap caused by the error between two planar regions and is judged as an overlapping relationship, and improves The accuracy of the coverage relationship judgment is improved.
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911419504.6A CN111260758B (en) | 2019-12-31 | 2019-12-31 | Method and system for constructing hierarchical relationship of planar administrative region |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911419504.6A CN111260758B (en) | 2019-12-31 | 2019-12-31 | Method and system for constructing hierarchical relationship of planar administrative region |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111260758A CN111260758A (en) | 2020-06-09 |
CN111260758B true CN111260758B (en) | 2023-03-14 |
Family
ID=70948529
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911419504.6A Active CN111260758B (en) | 2019-12-31 | 2019-12-31 | Method and system for constructing hierarchical relationship of planar administrative region |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111260758B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115457590B (en) * | 2022-09-02 | 2023-05-23 | 自然资源部地图技术审查中心 | Method and device for automatically identifying surface type problem map |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7617077B2 (en) * | 2003-09-29 | 2009-11-10 | Autodesk, Inc. | Method and apparatus for automatically discovering hierarchical relationships in planar topologies |
US20120320087A1 (en) * | 2011-06-14 | 2012-12-20 | Georgia Tech Research Corporation | System and Methods for Parallelizing Polygon Overlay Computation in Multiprocessing Environment |
CN102270236A (en) * | 2011-08-04 | 2011-12-07 | 中国科学院计算技术研究所 | Rasterized geographic information system (GIS)-based spatial relationship judging method and system |
CN104679765B (en) * | 2013-11-28 | 2019-07-23 | 高德软件有限公司 | Regional scope determines method and device |
CN104112007B (en) * | 2014-07-16 | 2017-07-25 | 深圳大学 | A Data Storage, Organization and Retrieval Method for Image Hierarchical Segmentation Results |
CN107330030B (en) * | 2017-06-23 | 2019-10-15 | 南京师范大学 | A hierarchical network construction method for massive road network data compression storage |
CN108108432B (en) * | 2017-12-19 | 2021-12-21 | 武汉大学 | Metaphor map construction generation method considering semantic data hierarchical features |
CN110502567B (en) * | 2019-07-26 | 2021-03-16 | 北京工业大学 | Theme-oriented urban rail transit station hierarchy POI extraction method |
-
2019
- 2019-12-31 CN CN201911419504.6A patent/CN111260758B/en active Active
Non-Patent Citations (2)
Title |
---|
刘艳 ; 董慧 ; .空间查询算子的栅格算法与实现.2011,(06),全文. * |
杜世宏 ; 秦其明 ; 王桥 ; .复杂宽边界区域拓扑关系计算模型.2007,(07),全文. * |
Also Published As
Publication number | Publication date |
---|---|
CN111260758A (en) | 2020-06-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107330030B (en) | A hierarchical network construction method for massive road network data compression storage | |
CN101807308B (en) | Three-dimensional model segmenting device and method | |
CN110033519B (en) | Three-dimensional modeling method, device, system and storage medium based on implicit function | |
CN108171780A (en) | A kind of method that indoor true three-dimension map is built based on laser radar | |
CN107016725A (en) | A kind of vegetation three-dimensional live modeling method for taking LiDAR point cloud data distribution difference into account | |
CN106097311A (en) | The building three-dimensional rebuilding method of airborne laser radar data | |
CN102194133B (en) | Data-clustering-based adaptive image SIFT (Scale Invariant Feature Transform) feature matching method | |
CN105825550A (en) | Consistency considered section modeling method of complex 3D building model | |
Richter et al. | Object class segmentation of massive 3D point clouds of urban areas using point cloud topology | |
CN101599070A (en) | Spatial database synthesis method in multi-scale representation of land use information | |
CN106777365A (en) | Project of transmitting and converting electricity environmentally sensitive areas Intelligent Recognition and Forecasting Methodology | |
CN105469445B (en) | A kind of step-length changeably drawing generating method | |
CN104715507B (en) | A kind of three-dimensional geographical entity method for auto constructing based on patch | |
CN106780458A (en) | A kind of point cloud framework extracting method and device | |
CN107092978A (en) | A kind of shortest path hierarchical reconfiguration planning method of the Virtual earth | |
CN107909111B (en) | Multi-level graph clustering partitioning method for residential area polygons | |
CN103426126A (en) | Generation method for segmental contact topological relationship of feeder line group of regional power grid | |
CN111260758B (en) | Method and system for constructing hierarchical relationship of planar administrative region | |
CN105117494A (en) | Spatial entity mapping method in fuzzy linguistic environment | |
WO2018196214A1 (en) | Statistics system and statistics method for geographical influence on vernacular architectural form | |
CN111986223A (en) | A method for tree extraction in outdoor point cloud scene based on energy function | |
CN107818338A (en) | A kind of method and system of building group pattern-recognition towards Map Generalization | |
KR101063827B1 (en) | Semi-automated Conjugated Point Pair Extraction Method for Transformation of Geometric Maps between Continuous and Digital Topographic Maps | |
CN102622345B (en) | High-precision land-utilization remote sensing updating technology with synergistic multisource spatio-temporal data | |
CN107993242A (en) | Based on airborne LiDAR point cloud shortage of data zone boundary extracting method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |