A method, memory and device for processing a spot of a long and narrow region map
By extracting the inflection points of narrow-area patches from the national land spatial survey and extending the boundary lines to generate clipping lines, the narrow-area patches are automatically processed into main patches and fragmented patches, and attribute information is restored. This solves the problem of low efficiency in processing narrow-area patches and achieves efficient and reliable patch processing.
Patent Information
- Application Number
- CN202311245635.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-25
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2043-09-25
AI Technical Summary
In existing technologies, the processing efficiency of narrow and elongated areas in land spatial surveys is low, the manual processing workload is large, it is difficult to achieve standard consistency, and there is a risk of data loss.
By extracting the inflection points of the elongated area patches, breaking up and extending the boundary lines to generate clipping lines, the elongated area patches are clipped into main patches and fragmented patches. The attribute information is then restored through the internal center points, achieving automated processing.
It improves the efficiency and accuracy of processing narrow and elongated areas, reduces the amount of manual processing, prevents data loss, and ensures the reliability and consistency of processing.
Smart Images

Figure CN117392147B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of land spatial survey information processing technology, and in particular to a method, memory and device for processing map patches in narrow and elongated areas. Background Technology
[0002] In land spatial surveys, data is input into geographic data processing software (such as ArcGIS and MapGIS) to generate digitized map data for use in land spatial planning and other operations. However, in reality, actual land use may be irregular in shape, and the processes of generating digitized map information from land spatial surveys and land spatial planning involve numerous data deletions, copying, and layer merging operations, which can introduce a number of topological errors. This results in a large number of narrow and elongated areas in the map data, such as... Figure 2 As shown. According to current technical specifications for land spatial surveys, a narrow and elongated area is defined as a map patch with a local area-to-perimeter ratio of less than 0.2 and one corner angle less than 20 degrees. Land spatial surveys require that narrow and elongated areas not exist in map data; therefore, these areas need to be cropped and segmented, and the resulting fragmented patches are merged into adjacent patches to obtain non-narrow and elongated areas.
[0003] In existing technologies, although software can automatically detect and determine whether a map patch is a narrow, elongated area, manual processing is still required after detection. This involves trimming, segmenting, and merging the narrow portions of the patches to create independent, fragmented patches, which are then merged with adjacent, appropriately larger patches to eliminate the narrow, elongated area. However, in land spatial survey data processing, even a single county-level survey area may contain thousands, or even tens of thousands, of narrow, elongated map patches. Manually processing such a large number of patches is not only extremely labor-intensive, slow, and inefficient, but also difficult to maintain consistent standards. Therefore, research is urgently needed to improve the efficiency and automation of processing narrow, elongated map patches. Summary of the Invention
[0004] The technical problem to be solved by the present invention is to provide a method, memory and device for efficiently processing narrow and elongated area patches, in view of the technical problems existing in the prior art.
[0005] To solve the above-mentioned technical problems, the technical solution proposed by this invention is: a method for processing narrow and elongated area patches, comprising the following steps:
[0006] Step S1. Extract the narrow and elongated area patches and the non-narrow and elongated area patches;
[0007] Step S2. Extract the inflection points of the elongated area patch, and break the boundary line of the elongated area patch into single components based on the inflection points to obtain an extendable boundary line;
[0008] Step S3. Extend the extendable boundary line according to the preset extension length, and the extended line intersects the boundary line to obtain the clipping line of the narrow area patch;
[0009] Step S4. Cut the elongated area patch into a main patch and fragmented patches according to the cutting line, and merge the fragmented patches into the adjacent non-elongated area patch.
[0010] Furthermore, in step S1, the method further includes extracting the internal center point of the elongated area patch, deleting the deletable attribute field information of the elongated area patch, and assigning the deletable attribute field information to the internal center point.
[0011] Further, step S2 includes: extracting the inflection points of the elongated area patch, constructing a buffer zone with the inflection points, erasing the features within the buffer zone, and breaking the boundary line of the elongated area patch into single components to obtain an extendable boundary line.
[0012] Further, step S3 includes: extending the extendable boundary line by a preset extension length, generating a new inflection point based on the intersection of the extended lines, and obtaining a new boundary line by deleting isolated points and isolated line segments, and deleting the boundary line of the narrow area patch from the new boundary line to obtain the clipping line of the narrow area patch.
[0013] Further, step S4 includes:
[0014] Step S4.1. Assign the attribute field information of the internal center point to the main image patch to obtain a main image patch with image patch attributes;
[0015] Step S4.2. Merge the fragmented patches into the adjacent non-elongated patches according to the boundary elimination method.
[0016] Further, step S4.1 includes: taking the main image patch and the fragmented image patch as target elements respectively, and taking the internal center point as the connecting element, connecting the internal center point to the main image patch and the fragmented image patch respectively, to obtain a main image patch with image patch attributes and a fragmented image patch without image patch attributes.
[0017] Furthermore, steps S2 to S4 are repeated in batch processing to process all narrow and elongated area patches.
[0018] A memory storing a computer program that, when executed, implements the narrow area patch processing method as described in any one of claims 1 to 7.
[0019] An apparatus includes a processor and a memory, the processor being configured to execute a computer program stored in the memory, the memory being the memory as described in claim 8.
[0020] Compared with the prior art, the advantages of the present invention are as follows:
[0021] 1. This invention breaks down the boundary of a narrow-area map by identifying its inflection points, and extends the broken boundary lines by a predetermined length to regenerate boundary lines and clipping lines. Based on the clipping lines, the narrow-area map is divided into main maps and smaller maps. The smaller maps are then merged into adjacent non-narrow-area maps. This method can quickly and reliably separate the narrow portion of a narrow-area map and merge the separated smaller maps through elimination. It effectively improves the processing efficiency of narrow-area maps in land spatial information processing, increases processing speed, and reduces manual processing workload.
[0022] 2. This invention extracts the internal center point of a narrow-area patch and uses this internal center point as a map element to store the deletable attribute field information of the narrow-area patch. Then, it deletes the deletable attribute field information of the narrow-area patch. After cropping the narrow-area patch, the attribute information of the main patch is restored using the attributes of the internal center point. This reduces the data volume of the narrow-area patch, improves the processing speed of subsequent steps, and effectively prevents the loss of attribute information of the narrow-area patch during subsequent processing, ensuring the accuracy and reliability of the patch processing.
[0023] 3. This invention restores the attribute information of image patches through connection operations. By connecting the main image patch and the fragmented image patches to their internal center points respectively, it utilizes the characteristic that the elongated part of the narrow image patch has little influence on the position of the internal center point of the image patch, and that the internal center point of the narrow image patch is located in the main image patch area. Through connection operations, the attribute information of the internal center point can be automatically restored to the main image patch. This allows for the rapid identification of the main image patch with image patch attributes and the fragmented image patches without image patch attributes, without the need for other additional steps to distinguish between the main image patch and the fragmented image patches. The processing speed is fast and the efficiency is high. Attached Figure Description
[0024] Figure 1 This is a flowchart illustrating a specific embodiment of the present invention.
[0025] Figure 2 This is a schematic diagram of map features (including narrow and non-narrow areas) in a geographic data processing software according to a specific embodiment of the present invention.
[0026] Figure 3 This is a schematic diagram of the cutting line pattern obtained in a specific embodiment of the present invention.
[0027] Figure 4 This is a schematic diagram of isolated points and isolated line segments after the boundary line is extended in a specific embodiment of the present invention.
[0028] Figure 5 This is a schematic diagram of the merged patch in a specific embodiment of the present invention. Detailed Implementation
[0029] The present invention will be further described below with reference to the accompanying drawings and specific preferred embodiments, but this does not limit the scope of protection of the present invention.
[0030] like Figure 1 As shown, the method for processing elongated area patches in this embodiment includes the following steps: Step S1. Extracting elongated area patches and non-elongated area patches; Step S2. Extracting the inflection points of elongated area patches, and breaking the boundary lines of elongated area patches into single components based on the inflection points to obtain extendable boundary lines; Step S3. Extending the extendable boundary lines according to a preset extension length, and intersecting the boundary lines to obtain the clipping lines of elongated area patches; Step S4. Clipping elongated area patches into main patches and fragmented patches based on the clipping lines, and merging the fragmented patches into adjacent non-elongated area patches.
[0031] In this embodiment, ArcGIS software is used as an example to illustrate the processing of geographic data from a land spatial survey. According to relevant land spatial survey regulations, quality control software can automatically detect narrow and elongated areas of map data. Based on the detection results of the quality control software, the narrow and elongated areas are exported and saved as a layer; simultaneously, non-narrow and elongated areas are exported and saved as a layer. By saving different types of map features on separate layers, subsequent steps are facilitated.
[0032] Because each geographic patch includes a large number of attribute fields, including basic information that cannot be deleted, as well as deletable attribute fields defined by the user in geographic information processing, such as area size, administrative division, land use type, etc., these attribute fields are not needed during the cropping and segmentation of narrow and elongated patches. Moreover, it is necessary to ensure that these attribute fields are not lost during cropping and segmentation to maintain data consistency before and after cropping. Therefore, the presence of attribute fields increases the complexity of geographic data processing, slows down processing speed, and may even lead to attribute field data loss and new errors. Therefore, in this embodiment, step S1 is further preferably further optimized by extracting the internal center point of the narrow and elongated patch, deleting the deletable attribute fields of the narrow and elongated patch, and assigning the deletable attribute fields to the internal center point. Using the feature-to-point tool of ArcGIS software, the narrow and elongated patch is converted into point features with the attribute fields of the narrow and elongated patch and located inside the narrow and elongated patch, i.e., the internal center point of the narrow and elongated patch. After recording the attribute field information of the narrow area patch through the internal center point, the deletable attribute field information of the narrow area patch can be deleted, thereby speeding up the processing speed of subsequent steps and preventing errors caused by the loss of attribute field information.
[0033] In this embodiment, a further preferred embodiment includes step S2: extracting the inflection points of the narrow-area patch, constructing a buffer zone using the inflection points, erasing features within the buffer zone, and breaking down the boundary line of the narrow-area patch into individual components to obtain an extendable boundary line. Points, lines, and polygons are the basic elements of geographic data processing. Inflection points are the points where the boundary of a patch changes direction, such as... Figure 2 As shown. A vertex is a one-dimensional element without size or direction. Using the vertex as a reference, a buffer zone with a certain area is constructed. Preferably, the buffer zone is a circular area with the vertex as its center and a preset length as its radius. The radius is preferably greater than or equal to 0.1 meters and less than or equal to 0.3 meters; more preferably, the radius is greater than or equal to 0.1 meters and less than or equal to 0.2 meters. Using ArcGIS software's eraser tool, the portion of the narrow area's boundary located within the buffer zone is erased, thus obtaining a discontinuous boundary. Then, using the multi-part to single-part tool, this discontinuous boundary is broken down into multiple single parts, each of which is an extendable boundary line.
[0034] In this embodiment, preferred step S3 includes: extending the extendable boundary line by a preset extension length, generating new inflection points based on the intersection of the extended lines, and deleting isolated points and isolated line segments to obtain a new boundary line; deleting the boundary line of the elongated area patch from the new boundary line to obtain the clipping line of the elongated area patch. In this embodiment, the preset extension length is greater than the size of the buffer zone. When the buffer zone is circular, the extension length is preferably greater than the diameter of the circular buffer zone; more preferably, the preset extension length is greater than 0.3 meters and less than 2 meters, and even more preferably greater than 0.5 meters and less than 1 meter. By setting an extension length for the extendable boundary line, on the one hand, it is ensured that the extended boundary line can generate the clipping line of the elongated area in the elongated area patch; on the other hand, it can prevent incorrect clipping lines from being generated in non-elongated areas due to excessive extension of the boundary line, thus affecting the accuracy of the clipping. Figure 3 As shown, by setting an appropriate extension length, clipping lines (P1-P5) can be generated only in narrow regions. Extending the extendable boundary line not only generates new inflection points, but the excessively extended portion also forms isolated points, such as... Figure 4 As shown at midpoints P2 and P5, after the boundary line is extended and a new inflection point P2 is generated, the excess portion creates two isolated points to the right and above P2; after the boundary line is extended to generate a new inflection point P5, the excess portion will create an isolated point at P5; the isolated points at other inflection points of the extendable boundary line are... Figure 4 The text is not shown. An isolated point is a point that is only the endpoint of a line segment, and an isolated line segment is a line segment with at least one endpoint that is an isolated point. After deleting isolated points and isolated line segments, a new boundary line is obtained after generating clipping lines for the elongated area patch. In this embodiment, the boundary line extension tool in ArcGIS software can be used to automatically extend the boundary line, delete isolated points and isolated line segments, and generate a new boundary line in one step. It should be noted that in the specific implementation using ArcGIS software, there are rare cases where the new boundary line is discontinuous. Therefore, for this situation, it can be further optimized by using the boundary line extension tool to extend the boundary line by a predetermined length when it is determined that the new connection is discontinuous. Then, the boundary line is erased using the original boundary line of the elongated area patch as the erasure element, thereby obtaining the clipping line of the elongated area patch. The clipping line is then merged with the original boundary line of the elongated area patch to obtain the new boundary after clipping the elongated area patch.
[0035] certainly, Figure 3 The elongated area shown has only one elongated area. After generating the clipping line, the area will be clipped into one main area and one fragmented area. For some special-shaped elongated areas, more than one fragmented area can also be generated by clipping through the above steps.
[0036] In this embodiment, more preferably, step S4 includes: step S4.1. Assigning the attribute field information of the internal center point to the main patch to obtain a main patch with patch attributes; step S4.2. Merging the fragmented patches into adjacent non-narrow area patches according to the boundary elimination method. More preferably, step S4.1 includes: using the main patch and fragmented patches as target elements respectively, and using the internal center point as the connection element, connecting the internal center point to the main patch and fragmented patches respectively to obtain a main patch with patch attributes and fragmented patches without patch attributes. In this embodiment, the spatial connection tool of ArcGIS software is used to perform connection operations on the center points of the patches. If the center point is located inside the patch, the connection operation can make the patches have the same attribute field information as the center point. In this embodiment, the internal center point is used as the connecting element, and the main patch and fragmented patches are used as target elements for the connection operation. Since the narrow area of the narrow patch has little influence on the position of the internal center point, meaning the internal center point of the narrow patch is located in the main patch area and not in the fragmented patch area, this operation ensures that the main patch obtained after cropping the narrow patch has the same attribute field information as the internal center point. Since the internal center point is not in the fragmented patch area, the connection operation still results in a patch without attribute field information. Therefore, after the connection operation, by determining whether the patch has attribute field information, the main patch and fragmented patches can be identified. The fragmented patches can then be easily merged with adjacent non-narrow patch areas using a boundary elimination method, thereby eliminating the fragmented patches. In this embodiment, the boundary elimination method utilizes ArcGIS software to determine the boundary length between fragmented patches and adjacent non-elongated patches. The fragmented patches are then merged with the non-elongated patches sharing the longest common boundary. This effectively ensures that the merged patch remains a non-elongated patch. The merged patch is shown below. Figure 5 As shown. In this embodiment, it is further preferred that the main patch, the fragmented patches, and the adjacent non-elongated patches are first placed in the same layer, and then the connection operation is performed.
[0037] It should be noted that after cropping the narrow and elongated areas, area can also be used to determine the main and fragmented areas. For example, the area with the largest area can be designated as the main area, and the other areas as fragmented areas; or areas smaller than a certain pre-threshold can be designated as fragmented areas, and so on. Then, the attribute field information of the main area is restored by using the internal center point, and the fragmented areas are merged and eliminated.
[0038] In this embodiment, it is further preferred to repeat steps S2 to S4 in a batch processing manner to process all narrow and elongated area patches. Batch processing allows for fast and efficient automated processing of narrow and elongated area patches in geographic data, greatly improving processing speed and efficiency, and ensuring consistency in the cropping process of these patches.
[0039] It should be noted that the technical solution claimed in this application can effectively process the vast majority of narrow and elongated area patches. However, for certain special narrow and elongated area patches, the main patch obtained after a single cropping process may still be classified as a narrow and elongated area patch; or, for certain special adjacent relationships between narrow and elongated area patches and non-narrow and elongated area patches, after a single cropping process that merges the fragmented patches with adjacent non-narrow and elongated area patches, the resulting patch may be classified as a narrow and elongated area patch. In such cases, the narrow and elongated area patch processing can be repeated, or manual processing can be used. However, such situations are extremely rare and do not affect the effectiveness and efficiency of the technical solution in processing narrow and elongated area patches.
[0040] A memory that stores a computer program that, when executed, can implement the narrow area patch processing method described above.
[0041] An apparatus includes a processor and a memory, the processor being configured to execute a computer program stored in the memory, the memory being a memory as described above.
[0042] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention in any way. Although the present invention has been disclosed above with reference to preferred embodiments, it is not intended to limit the invention. Therefore, any simple modifications, equivalent changes, and alterations made to the above embodiments based on the technical essence of the present invention without departing from the scope of the present invention should fall within the protection scope of the present invention.
Claims
1. A method for processing narrow and elongated area patches, characterized in that: Step S1. Extract the narrow and elongated area patches and non-narrow and elongated area patches, extract the internal center point of the narrow and elongated area patches, delete the deletable attribute field information of the narrow and elongated area patches, and assign the deletable attribute field information to the internal center point; Step S2. Extract the inflection points of the narrow area patch, and break the boundary line of the narrow area patch into individual components based on the inflection points to obtain an extendable boundary line, including: extracting the inflection points of the narrow area patch, constructing a buffer zone with the inflection points, erasing the features within the buffer zone, and breaking the boundary line of the narrow area patch into individual components to obtain an extendable boundary line; Step S3. Extend the extendable boundary line according to a preset extension length. The extended line intersects the boundary line to obtain the clipping line of the narrow area patch. This includes: extending the extendable boundary line to a preset extension length, generating a new inflection point according to the intersection of the extended lines, and deleting isolated points and isolated line segments to obtain a new boundary line. The boundary line of the narrow area patch is then deleted from the new boundary line to obtain the clipping line of the narrow area patch. Step S4. Based on the cutting line, cut the elongated area patch into a main patch and smaller patches, and merge the smaller patches into adjacent non-elongated area patches, including: Step S4.
1. Assign the attribute field information of the internal center point to the main map patch to obtain a main map patch with map patch attributes, including: taking the main map patch and the fragmented map patch as target elements respectively, and taking the internal center point as the connecting element, connecting the internal center point to the main map patch and the fragmented map patch respectively, to obtain a main map patch with map patch attributes and a fragmented map patch without map patch attributes; Step S4.
2. Merge the fragmented patches into the adjacent non-elongated area patches according to the boundary elimination method.
2. The method for processing narrow and elongated area patches according to claim 1, characterized in that: Steps S2 to S4 are repeated in batch processing to process all narrow and elongated area patches.
3. A memory, characterized in that: The memory contains a computer program that, when executed, implements the narrow area patch processing method as described in any one of claims 1 or 2.
4. A device for processing narrow and elongated area patches, characterized in that: It includes a processor and a memory, the processor being used to execute a computer program stored in the memory, the memory being the memory as described in claim 3.
Citation Information
Patent Citations
Long and narrow map spot partitioning and melting method and device
CN109636870A
Method and system for processing special-shaped pattern spots of planar coverage data
CN114140457A
