A method for automatically extracting boundary points and generating boundary point numbers for natural resource rights confirmation

Through automated surface vector file processing, boundary address points are extracted and sorted, which solves the time-consuming and inaccurate problems of manual numbering in natural resource confirmation, and achieves fast and efficient boundary point numbering.

CN118484554BActive Publication Date: 2024-10-18GUIZHOU SURVEY & DESIGN RES INST FOR WATER RESOURCES & HYDROPOWER
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410948836.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-16
Publication Date
2024-10-18
Estimated Expiration
2044-07-16

AI Technical Summary

Technical Problem

The process of manually extracting boundary points and generating numbers in natural resource rights confirmation is time-consuming and difficult to ensure the accuracy of the numbers.

Method used

By reading the surface vector files in batches, extracting the surface vector boundaries, identifying the internal and external boundaries, using the boundary address point extraction algorithm to obtain the boundary address point set, sorting clockwise with the upper left corner point as the starting point, and numbering according to the priority of the surface vector, to avoid Repeat numbering and boundary crossing situations.

Benefits of technology

Significantly improves the speed and accuracy of boundary address point generation and numbering, saves human resources and reduces time costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118484554B_ABST
    Figure CN118484554B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for automatically extracting boundary points and generating boundary point numbers in natural resource rights confirmation, including: S1: batch reading surface vectors that need boundary point generation and numbering, traversing surface vector files, and obtaining surface vector boundaries; S2: extracting boundary points of surface vector boundaries through boundary point extraction algorithms; S3: extracting boundary points located on the boundary from the boundary point set; taking the boundary point at the upper left corner of the boundary as the numbering starting point, and sorting the boundary points in the clockwise direction of the boundary; S4: inputting the surface vectors into step S3 respectively according to the surface vector numbering priority, and numbering the surface vectors in sequence. The method of the present invention can effectively improve the speed and accuracy of boundary point generation and numbering in natural resource rights confirmation work, save manpower to a large extent, and reduce time costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of map editing, and in particular relates to a method for automatically extracting boundary points and generating boundary point numbers for natural resource rights confirmation. Background Art

[0002] Boundary points are turning points with geometric characteristics of the natural resource rights confirmation boundary line, and are important signs of the natural resource rights confirmation boundary line; when conducting natural resource rights surveys, boundary points should be jointly identified by the boundary markers of the two adjacent natural resource parties on site, and their positions should be accurately determined. The connection of boundary points constitutes the ownership line. In the natural resource registration and confirmation database construction work, it is necessary to enter the boundary line, boundary point and other spatial data into the spatial database. In the process of storage, the boundary points need to be uniformly numbered; in the natural resource rights confirmation work, the boundary point in the upper left corner of the plot is uniformly used as the starting point for numbering, and the boundary points on the plot are numbered in the clockwise direction of the plot boundary. The existing manual processing method generates surface vector boundary points through manual interaction and numbers the boundary points one by one. Therefore, the process is time-consuming and it is difficult to ensure the correctness of the boundary point numbering.

[0003] In order to solve the problems in the prior art of manually extracting boundary points and generating boundary point numbers in natural resource rights confirmation work, which takes a long time and requires a lot of manpower, and it is difficult to ensure the correctness of the boundary point numbers, the present invention provides a method for automatically extracting boundary points and generating boundary point numbers in natural resource rights confirmation. Summary of the invention

[0004] The present invention aims to provide a method for automatically extracting boundary points and generating boundary point numbers for natural resource rights confirmation.

[0005] The present invention is achieved through the following technical solutions:

[0006] S1: Batch read the natural resource rights confirmation surface vector files that need to generate and number boundary points, traverse the surface vector files, and obtain the surface vector boundaries, where the surface vector boundaries include inner, outer, and cross boundaries;

[0007] S2: extract boundary points of the surface vector through the boundary point extraction algorithm, traverse all surface vector data, and obtain the boundary point set;

[0008] S3: searching for a corresponding boundary point on a certain boundary in the boundary point set, and taking it as the boundary point of the boundary; taking the boundary point at the upper left corner of the boundary as the starting point for numbering, and sorting the boundary points of the boundary in a clockwise direction of the boundary;

[0009] S4: According to the priority of face vector numbering, the face vectors are input into step S3 respectively, and the boundary points of the face vectors are numbered in turn; if the boundary points have been numbered in another face (two vector files intersect), they will not be numbered again; duplicate boundary points are deleted, and a boundary point vector file is generated to complete the automatic extraction and numbering of boundary points for natural resource title confirmation.

[0010] The step S1 of the present invention is specifically as follows:

[0011] Read the surface vector file that needs to extract boundary points and generate boundary point numbers. Surface vector data, according to the surface vector type Sort the face vectors, and the order indicates the priority of the face vector number; traverse the face vector file to obtain the face vector boundary. Except for the boundary, the face vector may have multiple inner boundaries. Both the inner boundary and the outer boundary belong to the face vector boundary. Extract the inner boundary and the outer boundary of the face vector, and obtain A boundary.

[0012] Green's formula is used to determine the inner and outer boundaries of the surface vector. Assume that the boundary vertices of the surface vector are: ,in, and For the same point. According to Green's formula, the boundary along the vertex is calculated The curve integral of is as follows:

[0013] ;

[0014] According to Green's formula, if , the surface vector boundary rotates counterclockwise, otherwise, if , the boundary of the surface vector rotates clockwise. According to the definition of the surface vector, if the boundary rotates counterclockwise, the boundary is the inner boundary; if the boundary rotates clockwise, the boundary is the outer boundary. According to the above process, the inner and outer boundaries of the surface vector can be identified from the surface vector data.

[0015] The step S2 of the present invention is specifically as follows:

[0016] The boundary points of the surface vector data are extracted by the boundary point extraction algorithm. The inner and outer boundaries of the surface vector are connected by nodes to form a closed loop. nodes, is the angle judgment threshold, solve Vertices Angle , the solution formula is as follows:

[0017] ;

[0018] in, is the arccosine function, For the The angle between the vertices, and Vertex Neighboring Vertices , The vector formed, for , for If the angle , then the vertex is the boundary point. Otherwise, if the angle It is a non-boundary point. Angle judgment threshold Set according to the implementer's needs.

[0019] At the same time, in order to avoid the generation of dense boundary points due to drastic changes in local geometry of the boundary, in addition to angle judgment, the identification of boundary boundary points needs to take into account the distance between nodes, that is, within the specified distance range, the distance range can be reasonably adjusted according to the density requirements of the boundary points, and only the vertices with the largest angles within the range are used as boundary points. face vectors, and all boundaries of each face vector, to obtain the boundary point set .

[0020] The step S3 of the present invention is specifically as follows:

[0021] Number the boundary points, and assume that the surface vector contains According to the upper left corner principle, According to the boundary priority, the boundary point set is retrieved. The vector located on this surface The set of points on the boundary , , where it is necessary to determine whether the boundary point belongs to the point on the boundary of the surface vector. Let the coordinates of the boundary point be , is the distance threshold, and the equation of the straight line formed by two adjacent vertices on the boundary is , the judgment formula is:

[0022] ;

[0023] in, is the distance from the boundary point to the surface vector boundary line, if Less than the set threshold , then the boundary point is located on the boundary. Otherwise, if Greater than or equal to the set threshold , the boundary point is not located on the boundary, the threshold The precision can be set according to the decimal places of the data; the surface vector boundary is a closed loop connected by multiple line segments. Therefore, by traversing the boundary points and each line segment of the surface vector boundary, the boundary point set belonging to the surface vector boundary can be obtained. , and use it as the boundary point set, and follow the boundary in a clockwise direction. Sort; let, the set of boundary points Included Points, the boundary points are gathered The point at the upper left corner of the boundary is used as the starting point for numbering. Let the index of the upper left corner boundary point be , then the boundary point set The index is reordered to The step S4 of the present invention is specifically as follows:

[0024] Read face vector file, The face vector is represented as , , Middle The boundary is represented by . Adjust the priority of the face vector according to the face vector type, input the face vector into step S3 according to the face vector priority, and number the face vector boundary points respectively. Since multiple groups of face vector data may have intersecting or overlapping boundaries, the boundary points may be located on different face vectors or different boundaries at the same time, so if the boundary points have been numbered, they will not be numbered again; if the boundary points are added or deleted, they will be renumbered according to step S3. In this way, all face vector data are traversed and the boundary point numbering of the face vector data is completed. Finally, the numbered boundary points are generated as point vector files.

[0025] The method for automatically extracting boundary points and generating boundary point numbers for natural resource rights confirmation of the present invention comprises the following modules:

[0026] Surface vector reading module, used to read surface vector data in batches;

[0027] A surface vector boundary extraction module is used to extract surface vector boundaries and identify inner and outer boundaries of surface vector data;

[0028] A surface vector boundary point extraction module is used to identify the surface vector boundary point and retrieve the numbering starting point;

[0029] The boundary point numbering module is used to retrieve the boundary points located on the boundary, complete the boundary point sorting, implement the boundary point numbering, and generate the point vector file.

[0030] Compared with the prior art, the present invention has the following beneficial effects:

[0031] The method of the present invention can effectively improve the speed and accuracy of boundary point generation and numbering in natural resource title confirmation work, save manpower to a great extent, and reduce time costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 Flow chart of the method according to the embodiment of the present invention;

[0033] Figure 2 Schematic diagram of the inner and outer boundaries of the surface vector;

[0034] Figure 3 Schematic diagram of the surface vector boundary overlap phenomenon;

[0035] Figure 4 Module structure diagram of the present invention. DETAILED DESCRIPTION

[0036] The technical solution of the present invention is further described in detail below through specific embodiments.

[0037] Example 1

[0038] Reference Figure 1 The present invention provides a method for automatically extracting boundary points and generating boundary point numbers for natural resource rights confirmation, comprising the steps of:

[0039] S1: Batch read the natural resource rights confirmation surface vector files that need to generate and number boundary points, traverse the surface vector files, and obtain the surface vector boundaries, where the surface vector boundaries include inner boundaries, outer boundaries and cross boundaries;

[0040] S2: extract boundary points of the surface vector through the boundary point extraction algorithm, traverse all surface vector data, and obtain the boundary point set;

[0041] S3: searching for a corresponding boundary point on a certain boundary in the boundary point set, and taking it as the boundary point of the boundary; taking the boundary point at the upper left corner of the boundary as the starting point for numbering, and sorting the boundary points of the boundary in a clockwise direction of the boundary;

[0042] S4: According to the priority of face vector numbering, the face vectors are input into step S3 respectively, and the boundary points of the face vectors are numbered in turn; if the boundary points have been numbered (cross vector face), they will not be numbered again; duplicate boundary points are deleted, and a boundary point vector file is generated to complete the automatic generation and numbering of boundary points for natural resource rights confirmation.

[0043] Step S1 is specifically as follows:

[0044] In a specific implementation, the natural resource rights confirmation boundary is stored as a surface vector file. Usually, more than two groups of surface vectors need to be generated and numbered by boundary points, and the surface vector numbers have a priority relationship. In this embodiment, the method is programmed using MATLAB language.

[0045] Batch read face vector files, read the common face vectors, based on the face vector file type Sort the face vectors, and the order is the face vector number priority; traverse the face vector file to obtain the face vector boundary. In actual situations, face vector data has internal boundaries, so the boundary point generation needs to consider not only the external boundaries of the face vector, but also the multiple internal boundaries of the face vector. Figure 2 .

[0046] Green's formula is used to identify the inner boundary of the face vector. Assume that the vertices of the face vector boundary are: , , by definition, and For the same point. According to Green's formula, the boundary along the vertex is calculated The curve integral of is calculated as:

[0047] ;

[0048] According to Green's formula, if , that is, the boundary rotates counterclockwise. On the contrary, if , the boundary is rotated clockwise. According to the definition of face vector data, if the boundary rotates counterclockwise, the boundary is the inner boundary; if the boundary rotates clockwise, the boundary is the outer boundary. According to the above formula, the inner and outer boundaries of the face vector can be identified from the face vector boundary. Extract the face vector boundary, including the inner and outer boundaries of the face vector.

[0049] Step S2 is specifically as follows:

[0050] The first The face vector is represented as , , Middle The boundary is represented by . Face vector boundary The nodes are connected into a closed loop. The boundary is extracted by the boundary point extraction algorithm Boundary point, set, is the angle judgment threshold, boundary No. vertex The coordinates are expressed as , the node angle The solution formula is:

[0051] ;

[0052] in, is the arccosine function, For the The angle between the vertices, and Vertex Neighboring Vertices , The vector formed, for , for If the angle , then the vertex is the boundary point. Otherwise, It is a non-boundary point. In this embodiment, The value is 110°.

[0053] At the same time, in order to avoid the generation of dense boundary points due to drastic changes in local geometry of the boundary, in addition to the angle judgment, the boundary point identification takes into account the node distance, that is, within the specified distance range (the distance range can be reasonably adjusted according to the density requirements of the boundary points), the node with the largest angle is used as the boundary point. In this embodiment, the distance range is set to within 110m, that is, within the range of 110m, there must be a boundary point. face vectors, and all boundaries of each face vector, to obtain the boundary point set .

[0054] Step S3 is specifically as follows:

[0055] Opposite vector The boundary points are numbered and set The boundary is , , according to the upper left corner principle Sort by priority. Retrieve the boundary point set based on the boundary priority. Located at the border Point set on . Assume that the coordinates of a boundary point are , is the distance threshold, and the equation of the straight line formed by two adjacent vertices on the boundary is , the distance judgment formula is:

[0056] ;

[0057] in, is the distance from the boundary point to the surface vector boundary line, You can set the precision according to the decimal places of the data. , then the boundary point is located on the boundary. Otherwise, if , the boundary point is not located on the boundary. In this embodiment, The surface vector boundary is a closed loop connected by multiple line segments. Therefore, by traversing the boundary point set With border For each line segment of The set of boundary points , and use it as the boundary point set, and search along the boundary clockwise Sorting. Assume that the set of boundary points is Include nodes, the upper left corner boundary point index is , the boundary points are collected Located at the border The point in the upper left corner is used as the starting point for numbering, and the boundary points are grouped The index is reordered to .

[0058] Step S4 is specifically as follows:

[0059] Read face vector file, The face vector is represented as , , Middle The boundary is represented by The priority of the face vector numbering is adjusted according to the data type, and the face vectors are sequentially input into step S3 according to the priority of the numbering, and the boundary points of the face vectors are numbered respectively.

[0060] Reference Figure 3 , multiple groups of face vectors may have intersecting or overlapping boundaries, so the boundary points may be located on different face vectors or different boundaries. If the boundary points have been numbered, they will not be numbered again. In this way, all face vector data are traversed to complete the boundary point numbering of the face vector data.

[0061] If the boundary points are added or deleted, they are renumbered according to step S3.

[0062] Finally, the numbered boundary points are generated as point vector files.

[0063] refer to Figure 4 The present invention proposes a method for automatically extracting boundary points and generating boundary point numbers for natural resource rights confirmation, including the following modules:

[0064] A surface vector reading module 10 is used to read surface vector data in batches;

[0065] A surface vector boundary extraction module 20 is used to extract the surface vector boundary and identify the inner and outer boundaries of the surface vector data;

[0066] A surface vector boundary point extraction module 30 is used to identify the surface vector boundary boundary points and retrieve the upper left corner boundary point;

[0067] The boundary point numbering module 40 is used to retrieve the boundary points located on the boundary, sort the boundary points, and finally implement the boundary point numbering.

[0068] Although the present invention has been described in detail above by means of general description, specific implementation methods and experiments, it is obvious to those skilled in the art that some modifications or improvements can be made to the present invention. Therefore, these modifications or improvements made without departing from the spirit of the present invention all fall within the scope of protection claimed by the present invention.

Claims

1. A method for automatically extracting boundary points and generating boundary point numbers for natural resource rights confirmation. It is characterized in that Includes steps: S1: Batch read the natural resource rights confirmation surface vector files that need to generate and number boundary points, traverse the surface vector files, and obtain the surface vector boundaries, including inner boundaries, outer boundaries and cross boundaries. The specific method is as follows: Read Total 1. Array vector files, sort the array vectors according to the array vector type to indicate the array vector number priority; extract the array vector boundary, wherein the inner and outer boundaries are determined by Green's formula; S2: Extract boundary points of the surface vector boundary through the boundary point extraction algorithm, traverse all surface vector data, and obtain the boundary point set. The specific method is as follows: Extract the boundary points of the surface vector boundary through the boundary point extraction algorithm, and input them one by one A surface vector file is created to obtain the boundary point set; The boundary point extraction algorithm is: suppose a boundary exists nodes, is the angle judgment threshold, solve Vertices Angle , the solution formula is: ; in, For the The angle between the vertices, and Vertex Neighboring Vertices , The vector formed, for , for , if the angle , then the vertex is the boundary point. If the angle , it is a non-boundary point; within the specified node distance range, only the node with the largest angle within the range is used as a boundary point; S3: Search for boundary points on the boundary in the boundary point set and use them as boundary points of the boundary; use the boundary point at the upper left corner of the boundary as the starting point for numbering, and sort the boundary points of the boundary in a clockwise direction along the boundary. The specific method is as follows: Generate a boundary point set in step S2, obtain a boundary point set located on the boundary according to the point-line distance, and use the boundary point set as the boundary point set of the boundary; determine the boundary point located at the upper left corner of the boundary, and use the boundary point as the starting point of numbering; The method to obtain the boundary point set located on the boundary based on the point-line distance is: Number the boundary points, and assume that the surface vector contains According to the upper left corner principle, The boundaries are prioritized, and the point set located on each boundary of the face vector is retrieved according to the boundary priority. Among them, it is necessary to determine whether the boundary point belongs to the point on the boundary of the face vector. Suppose the coordinates of the boundary point are , is the distance threshold, and the straight line equation of the boundary line is , the judgment formula is: ; in, is the distance from the boundary point to the surface vector boundary line, if , then the boundary point is located on the boundary. , then the boundary point is not located on the boundary; by traversing each line segment between the boundary point and the surface vector boundary, the set of boundary points belonging to the surface vector boundary can be obtained; S4: According to the priority of the face vector numbering, the face vectors are input into step S3 respectively, and the boundary points of the face vectors are numbered in sequence; if the boundary point has been numbered on another face, it is no longer numbered; duplicate boundary points are deleted, and a boundary point vector file is generated to complete the automatic extraction and numbering of the boundary points for natural resource rights confirmation. The specific method is as follows: According to the priority of face vector numbering, loop S3 and number the boundary points on the boundary starting from the starting point in the clockwise direction of the face vector; in this process, if there are repeated boundary points in multiple face vectors, the numbered boundary points will not be repeated; if boundary points are added or deleted, loop S3 again; delete the repeated boundary points, generate a boundary point vector file, and complete the automatic extraction and numbering of natural resource title boundary points.

2. A method for automatically extracting boundary points and generating boundary point numbers for natural resource rights confirmation according to claim 1, It is characterized in that Step S2: Angle judgment threshold is 110°.

3. A method for automatically extracting boundary points and generating boundary point numbers for natural resource rights confirmation according to claim 1, It is characterized in that The specified node distance range in step S2 is set to within 110m.

4. A method for automatically extracting boundary points and generating boundary point numbers for natural resource rights confirmation according to claim 1, It is characterized in that Step S3: Distance threshold It is 0.001m.

5. A system for executing the method for automatically extracting boundary points and generating boundary point numbers for natural resource rights confirmation as claimed in claim 1, It is characterized in that Includes the following modules: Surface vector reading module, used to read surface vector data in batches; A surface vector boundary extraction module is used to extract surface vector boundaries and identify inner and outer boundaries of surface vector data; A surface vector boundary point extraction module is used to identify the surface vector boundary point and retrieve the numbering starting point; The boundary point numbering module is used to retrieve the boundary points located on the boundary, complete the boundary point sorting, implement the boundary point numbering, and generate the point vector file.

Citation Information

Patent Citations

  • Node rapid numbering method and system

    CN113688196A

  • Automatic normalization method for composite boundary line

    CN114511652A