Methods for generating parcel maps, electronic devices and storage media

CN120705241BActive Publication Date: 2026-09-01AERIAL PHOTOGRAMMETRY & REMOTE SENSING CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510856781.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-06-25
Publication Date
2026-09-01
Estimated Expiration
2045-06-25

AI Technical Summary

Technical Problem

[0005]本申请的目的在于,针对上述现有技术中的不足,提供一种宗地图生成方法、电子设备及存储介质,以解决现有技术中制作宗地图时存在一定局限性的实际需要的问题

Benefits of technology

本申请提供了一种宗地图生成方法、电子设备及存储介质,在图形处理软件的主窗口和副窗口中分别打开地籍图和当前宗地图图框,基于图形处理软件中的可视化基本应用程序语言及各功能函数确定地籍图中当前宗地草图对应的四至范围,并对图形处理软件的主窗口中当前宗地草图对应的四至范围中的各接边图元进行跨窗口传递,传递至图形处理软件的副窗口中的当前宗地图图框,并在当前宗地图图框中生成并输出当前宗地图。在生成并输出当前宗地图之后,关闭当前宗地图,重新确定地籍图中下一个宗地草图对应的四至范围,并生成并输出下一个宗地图。重复执行,直至生成并输出地籍图中所有宗地图,实现宗地图的批量自动化制作。通过宗地草图对应的四至范围表征宗地空间位置的东南西北各方向的边界和相邻关系,提升宗地图的制作效率及精度。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120705241B_ABST
    Figure CN120705241B_ABST
Patent Text Reader

Abstract

This application provides a method, electronic device, and storage medium for generating parcel maps. The method includes: acquiring a cadastral map, which includes multiple parcel sketches; determining the boundaries of each parcel sketch, which includes multiple boundary elements; and generating and outputting parcel maps sequentially based on the boundary elements in each boundary, thereby improving the efficiency and quality of parcel map production.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of cadastral management technology, and more specifically, to a method for generating cadastral maps, an electronic device, and a storage medium. Background Technology

[0002] In the field of cadastral management, land ownership relies on cadastral maps. Among them, the parcel map, based on parcels, accurately reflects key information such as land ownership boundaries, area, and use, and serves as the fundamental basis for real estate registration.

[0003] Currently, the production and output of land parcel maps still largely rely on manual operation, which makes it difficult to meet the demand for rapid map production. Moreover, manual operation is greatly affected by subjective factors, and different operators may have different understandings of surveying specifications and drawing standards, resulting in inconsistent accuracy and quality of land parcel maps.

[0004] Therefore, existing technologies have certain limitations in creating parcel maps. Summary of the Invention

[0005] The purpose of this application is to address the shortcomings of the prior art by providing a method for generating parcel maps, an electronic device, and a storage medium, so as to solve the practical problem of the limitations in the production of parcel maps in the prior art.

[0006] To achieve the above objectives, the technical solutions adopted in the embodiments of this application are as follows: In a first aspect, embodiments of this application provide a method for generating a parcel map, the method comprising: Obtain a cadastral map, which includes multiple parcel sketches; Determine the boundaries of each of the aforementioned land parcel sketches, wherein the boundaries include multiple boundary elements; Based on the edge elements in each of the four boundaries, generate and output each parcel map in sequence.

[0007] As an optional implementation, determining the boundaries of each of the land parcel sketches includes: Based on the element type and layer of the land parcel sketch, obtain each land parcel element in the land parcel sketch; Based on each of the parcel map elements and a preset threshold, the boundaries of the parcel sketch are determined.

[0008] As an optional implementation, determining the boundary range corresponding to the land parcel sketch based on each parcel map element and a preset threshold includes: Each of the aforementioned map elements is stored in a selection set, and a border rectangle is generated based on each map element in the selection set. Based on the preset threshold, the boundary of the border rectangle is expanded, and the multiple borders of the expanded border rectangle are used as the four boundaries.

[0009] As an optional implementation, generating the border rectangle based on each map element in the selection set includes: Traverse each map element in the selection set and determine the first and second point coordinates of the map element using a preset bounding box acquisition method. The edge rectangle is generated based on the coordinates of the first point, the coordinates of the second point, and the unit threshold.

[0010] As an optional implementation, the step of expanding the boundary of the border rectangle according to the preset threshold, and using multiple borders of the expanded border rectangle as the four-boundary range, includes: Based on the coordinates of the first point, the coordinates of the second point, and the preset threshold, the boundary of the border rectangle is expanded using the bounding box acquisition method, and the multiple borders of the expanded border rectangle are used as the four boundaries.

[0011] As an optional implementation, the step of sequentially generating and outputting each parcel map based on each edge primitive within each of the four boundary ranges includes: Each edge element in the four boundaries is used as a copy object, and the copy object is copied to the model space of the graphic file of the parcel map frame using a preset copy method; Obtain the land parcel area information and land user information, and fill the land parcel area information and land user information into the corresponding positions in the graphic file of the land parcel map frame; Output the graphic file of the filled parcel map frame as a parcel map.

[0012] As an optional implementation, the step of outputting the graphic file of the filled parcel map frame as a parcel map includes: The filled parcel map frame is output as a parcel map in drawing file format.

[0013] As an optional implementation, the step of outputting the graphic file of the filled parcel map frame as a parcel map includes: The filled parcel map frame is output as a parcel map in Graphics Interchange Format.

[0014] Secondly, embodiments of this application provide a parcel map production apparatus, the apparatus comprising: The acquisition module is used to acquire cadastral maps, which include multiple parcel sketches; The determination module is used to determine the boundary range corresponding to each of the land parcel sketches, wherein the boundary range includes multiple edge elements; The generation module is used to generate and output each parcel map sequentially based on each edge element in the four boundaries.

[0015] As an optional implementation, the determining module is specifically used for: Based on the element type and layer of the land parcel sketch, obtain each land parcel element in the land parcel sketch; Based on each of the parcel map elements and a preset threshold, the boundaries of the parcel sketch are determined.

[0016] As an optional implementation, the determining module is specifically used for: Each of the aforementioned map elements is stored in a selection set, and a border rectangle is generated based on each map element in the selection set. Based on the preset threshold, the boundary of the border rectangle is expanded, and the multiple borders of the expanded border rectangle are used as the four boundaries.

[0017] As an optional implementation, the determining module is specifically used for: Traverse each map element in the selection set and determine the first and second point coordinates of the map element using a preset bounding box acquisition method. The edge rectangle is generated based on the coordinates of the first point, the coordinates of the second point, and the unit threshold.

[0018] As an optional implementation, the determining module is specifically used for: Based on the coordinates of the first point, the coordinates of the second point, and the preset threshold, the boundary of the border rectangle is expanded using the bounding box acquisition method, and the multiple borders of the expanded border rectangle are used as the four boundaries.

[0019] As an optional implementation, the generation module is specifically used for: Each edge element in the four boundaries is used as a copy object, and the copy object is copied to the model space of the graphic file of the parcel map frame using a preset copy method; Obtain the land parcel area information and land user information, and fill the land parcel area information and land user information into the corresponding positions in the graphic file of the land parcel map frame; Output the graphic file of the filled parcel map frame as a parcel map.

[0020] As an optional implementation, the generation module is specifically used for: The filled parcel map frame is output as a parcel map in drawing file format.

[0021] As an optional implementation, the generation module is specifically used for: The filled parcel map frame is output as a parcel map in Graphics Interchange Format.

[0022] Thirdly, embodiments of this application provide an electronic device, including a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the electronic device is running, the processor communicates with the memory via the bus, and the processor executes the machine-readable instructions to perform the steps of the parcel map generation method described in the first aspect above.

[0023] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program, which, when executed by a processor, performs the steps of the parcel map generation method described in the first aspect above.

[0024] The beneficial effects of this application are: This application provides a method, electronic device, and storage medium for generating parcel maps. The method involves opening a cadastral map and the current parcel map frame in the main and sub-windows of a graphics processing software. Based on the basic visualization application language and functions within the graphics processing software, the boundaries of the current parcel sketch in the cadastral map are determined. Edge elements within the boundaries of the current parcel sketch in the main window are transferred across windows to the current parcel map frame in the sub-window. The current parcel map is then generated and output within the current parcel map frame. After generating and outputting the current parcel map, it is closed, and the boundaries of the next parcel sketch in the cadastral map are redefined, generating and outputting the next parcel map. This process is repeated until all parcel maps in the cadastral map are generated and output, achieving automated batch production of parcel maps. The boundaries of the parcel sketches represent the spatial locations of the parcels in the cardinal directions (north, south, east, west) and their adjacent relationships, improving the efficiency and accuracy of parcel map production. Attached Figure Description

[0025] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0026] Figure 1 A flowchart illustrating the parcel map generation method provided in this application embodiment. Figure 1 ; Figure 2 A schematic diagram of a land parcel sketch provided in an embodiment of this application; Figure 3 A flowchart illustrating the parcel map generation method provided in this application embodiment. Figure 2 ; Figure 4 A schematic diagram illustrating the effect of generating a parcel map under various thresholds provided in the embodiments of this application; Figure 5 A flowchart illustrating the parcel map generation method provided in this application embodiment. Figure 3 ; Figure 6 A flowchart illustrating the parcel map generation method provided in this application embodiment. Figure 4 ; Figure 7 A flowchart illustrating the parcel map generation method provided in this application embodiment. Figure 5 ; Figure 8 A module structure diagram of the parcel map generation apparatus provided in the embodiments of this application; Figure 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0027] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. It should be understood that the accompanying drawings in this application are for illustrative and descriptive purposes only and are not intended to limit the scope of protection of this application. Furthermore, it should be understood that the schematic drawings are not drawn to scale. The flowcharts used in this application illustrate operations implemented according to some embodiments of this application. It should be understood that the operations in the flowcharts may not be implemented in sequence, and steps without logical contextual relationships may be reversed or implemented simultaneously. In addition, those skilled in the art, guided by the content of this application, may add one or more other operations to the flowcharts, or remove one or more operations from the flowcharts.

[0028] Furthermore, the described embodiments are merely some, not all, of the embodiments of this application. The components of the embodiments of this application described and illustrated herein can typically be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.

[0029] It should be noted that the term "comprising" will be used in the embodiments of this application to indicate the presence of the features declared thereafter, but does not exclude the addition of other features.

[0030] In the field of cadastral management, land ownership relies on cadastral maps. Among these, parcel maps, using parcels as units, accurately reflect key information such as land ownership boundaries, area, and use, serving as the fundamental basis for real estate registration. Currently, parcel map production largely relies on manual operation, making it difficult to meet the demand for rapid map production. Furthermore, manual parcel map production is susceptible to subjective factors; different operators have varying understandings of surveying specifications and drawing standards, resulting in inconsistent accuracy and quality of parcel maps. In other words, existing technology has certain limitations in parcel map production.

[0031] Based on the above-mentioned problems, this application proposes a method for generating parcel maps. In graphics processing software, the Visual Basic for Applications (VBA) language is used to determine the boundaries of each parcel sketch on the cadastral map. Then, based on each boundary element in the boundary range, each parcel map is generated and output sequentially, realizing the automated batch production and output of parcel maps, and improving the production efficiency and accuracy of parcel maps.

[0032] Figure 1 A flowchart illustrating the parcel map generation method provided in this application embodiment. Figure 1 The subject executing this method can be any electronic device with computing power. For example... Figure 1 As shown, the method includes: S101. Obtain the cadastral map, which includes multiple parcel sketches.

[0033] Optionally, the pre-acquired, high-resolution aerial orthophoto maps with strong timeliness, as well as system data on real estate registration, collective land ownership data, cadastral districts or sub-cadastral districts, land change survey results, and data on the "three zones and three lines" can be used as the working base map. Based on the coordinates of the boundary points, the boundary lines of the land parcels can be drawn using graphic processing software or Geographic Information System (GIS) software, and the parcel number, the name of the right holder, the land use, the land area, and other attributes can be entered to obtain a sketch map of a single land parcel.

[0034] Figure 2 This is a schematic diagram of a land parcel sketch provided in an embodiment of this application. Figure 2For example, a parcel sketch is a field record map used to describe the location, boundary points, boundary lines, and relationships between adjacent parcels. The parcel sketches of multiple plots are compiled, topological relationships of overlapping or gapped boundaries are checked, and the coordinate system is corrected. The corrected parcel data is then overlaid with basic geographic information to generate a cadastral map, which includes multiple parcel sketches.

[0035] Store the cadastral map and each blank parcel map frame in a preset path. Open the cadastral map and the current parcel map frame in the window of the graphics processing software, and set the main window of the graphics processing software to the cadastral map and the secondary window of the graphics processing software to the current parcel map frame. For example, the graphics processing software can be AutoCAD, the cadastral map includes n parcel sketches, and the current parcel map frame can be the i-th parcel map frame.

[0036] S102. Determine the boundaries of each land parcel's sketch, which include multiple boundary elements.

[0037] Optionally, the secondary development environment of the graphics processing software contains secondary development tools. Based on the secondary development tools and multiple function functions in the graphics processing software, the four boundaries corresponding to the current parcel sketch in the cadastral map are determined to represent the boundaries and adjacency relationships of the parcel's spatial location in the four directions of east, south, west, and north. All graphic elements within the four boundaries are used as edge-connecting graphic elements. In other words, the four boundaries include multiple edge-connecting graphic elements.

[0038] The secondary development tool for graphics processing software can be VBA, which is embedded within the software. Secondary development is performed within the graphics processing software's secondary development environment using the VBA language. As an object-oriented programming language, VBA facilitates interaction, offers rapid development, and boasts advantages such as simple language rules, high interactive execution efficiency, low memory consumption, and flexible programming tools, thus meeting the needs of secondary development. Furthermore, VBA can run alongside graphics processing software like AutoCAD, providing an intelligent and rapid programming environment for graphics processing software.

[0039] For example, the current parcel sketch in the cadastral map is the i-th parcel sketch. Based on the VBA language and multiple function functions in the graphics processing software, the boundary range corresponding to the i-th parcel sketch in the cadastral map is determined.

[0040] S103. Generate and output each parcel map in sequence based on each edge element in each boundary range.

[0041] Optionally, using VBA and preset functions, the boundary elements within the current parcel sketch's area in the main window of the graphics processing software are passed across windows. These boundary elements are then transferred to the current parcel map frame in the secondary window of the graphics processing software. The current parcel map is then generated within this frame and output in the required format for practical application. After outputting the current parcel map, the current parcel map frame is closed, and the next parcel map frame is opened to continue generating and outputting the next parcel map. This process of generating and outputting parcel maps sequentially achieves automated batch production of parcel maps.

[0042] For example, the boundary elements within the four-boundary range corresponding to the i-th parcel sketch are transferred to the i-th parcel map frame. After generating and outputting the i-th parcel map, the i-th parcel map is closed, and a blank i+1 parcel map frame is reopened in the secondary window of the graphics processing software. Switching back to the main window of the graphics processing software, the current parcel sketch in the cadastral map is updated to the i+1-th parcel sketch. Based on the VBA language and multiple function blocks in the graphics processing software, the boundary range corresponding to the i+1-th parcel sketch in the cadastral map is redefined, and the boundary elements within the four-boundary range corresponding to the i+1-th parcel sketch are transferred to the i+1-th parcel map frame, generating and outputting the i+1-th parcel map. The above steps are repeated until n parcel maps are generated and output. Then, the graphics processing software is closed, ending the batch automated production of parcel maps.

[0043] In this embodiment, the cadastral map and the current parcel map frame are opened in the main window and sub-window of the graphics processing software, respectively. Based on the visualization basic application language and various function calls in the graphics processing software, the boundaries of the current parcel sketch in the cadastral map are determined. Each boundary element within the boundaries of the current parcel sketch in the main window of the graphics processing software is transferred across windows to the current parcel map frame in the sub-window, where the current parcel map is generated and output. After generating and outputting the current parcel map, it is closed, and the boundaries of the next parcel sketch in the cadastral map are redefined, generating and outputting the next parcel map. This process is repeated until all parcel maps in the cadastral map are generated and output, achieving automated batch production of parcel maps. The boundaries of the parcel sketches represent the boundaries and adjacency relationships in the four cardinal directions (north, south, east, and west), improving the efficiency and accuracy of parcel map production.

[0044] The following is a detailed explanation of the process for determining the boundaries of each land parcel's sketch map.

[0045] Figure 3 A flowchart illustrating the parcel map generation method provided in this application embodiment. Figure 2 ,like Figure 3 As shown, step S102 above, which determines the boundaries of each land parcel sketch, includes: S201. Based on the element type and layer of the land parcel sketch, obtain the various elements in the land parcel sketch.

[0046] Optionally, the land parcel sketch includes various types of graphic elements, such as boundary line elements, boundary point elements, and land parcel number elements. Layers are used to classify and manage graphic elements; for example, the boundary point layer stores boundary point symbols, the boundary line layer stores boundary lines, and the land parcel annotation layer stores land parcel number text.

[0047] Each parcel has a unique number. By matching the numbers of each layer and type of element, all elements in the sketch of the same parcel are filtered out, avoiding the acquisition of elements from other parcels and preventing interference from irrelevant elements. For example, by matching the numbers of each layer and type of element in the sketch of the i-th parcel, the elements of each parcel in the sketch of the i-th parcel are obtained.

[0048] S202. Determine the boundaries of the land parcel sketch based on each parcel map element and preset thresholds.

[0049] Optionally, based on the parcel map elements in the parcel sketch and the preset thresholds corresponding to the cadastral map, the boundaries of the parcel sketch are determined using VBA language and various function calls. The preset thresholds corresponding to the cadastral map are used to change the boundaries of the parcels in the parcel sketches within the cadastral map. The preset thresholds are determined by comparing the information completeness of the parcel maps generated under different thresholds corresponding to the same cadastral map multiple times, thus determining the optimal threshold for that cadastral map.

[0050] Figure 4 This is a schematic diagram illustrating the effect of generating parcel maps under various thresholds provided in the embodiments of this application, such as... Figure 4 As shown in (a), the generated parcel map has the lowest level of completeness of information at a threshold of 0.5. Figure 4 As shown in (b), when the threshold is 1, the information at the bottom of the generated parcel map is less complete. Figure 4 As shown in (c), when the threshold is 1.5, the information at the bottom of the generated parcel map is relatively complete. That is to say, when the threshold is 0.5 or 1, the parcel boundary information is missing and cannot meet the actual mapping needs. When the threshold is 1.5, the parcel boundary information is complete, so 1.5 is used as the preset threshold to determine the boundary range of each parcel sketch in the cadastral map.

[0051] It is worth noting that if the cadastral map is changed, the information completeness of the parcel maps generated under different thresholds corresponding to the new cadastral map needs to be compared multiple times to determine the optimal threshold corresponding to the new cadastral map.

[0052] In this embodiment, based on the element type and layer of the land parcel sketch, all elements of the same land parcel sketch are filtered out by matching the numbers of elements in each layer and type, thus obtaining the individual land parcel elements in the land parcel sketch and avoiding interference from irrelevant elements. Based on the preset thresholds corresponding to the land parcel elements in the land parcel sketch and the cadastral map, the boundaries of the land parcel sketch are determined using VBA language and various function calls. By changing the preset thresholds corresponding to the cadastral map, the boundaries of each land parcel sketch in the cadastral map are changed, ensuring the accuracy of the boundaries of the land parcel sketch.

[0053] The following is a detailed explanation of the process of determining the boundaries of a land parcel sketch based on each parcel's map elements and preset thresholds.

[0054] Figure 5 A flowchart illustrating the parcel map generation method provided in this application embodiment. Figure 3 ,like Figure 5 As shown, in step S202 above, the boundaries of the land parcel sketch are determined based on each parcel map element and a preset threshold, including: S301. Store each map element in the selection set, and generate the edge rectangle based on each map element in the selection set.

[0055] Optionally, a selection set for the current land parcel sketch is created in the graphics processing software using VBA. All map elements of the current land parcel sketch are stored in this selection set. Multiple function calls are then used to traverse the map elements in the selection set to generate the boundary rectangle of the current land parcel. The boundary rectangle of the current land parcel is the bounding box of all map elements in the current land parcel sketch, containing all map elements of the current land parcel sketch.

[0056] Taking the current land parcel sketch as the i-th land parcel sketch as an example, store each parcel map element of the i-th land parcel sketch into the i-th selection set, and traverse each parcel map element in the i-th selection set to generate the border rectangle of the i-th land parcel, so that the border rectangle of the i-th land parcel surrounds all the parcel map elements of the i-th land parcel sketch.

[0057] S302. Based on a preset threshold, extend the boundary of the edge rectangle and use the multiple borders of the extended edge rectangle as the four boundaries.

[0058] Optionally, VBA language is used to extend the boundary of the current parcel's border rectangle by extending the border rectangle outward in the four directions of east, south, west, and north to generate the outer rectangle of the current parcel's border rectangle. This outer rectangle of the current parcel's border rectangle includes a buffer area of ​​a preset range around the current parcel. The preset range depends on a preset threshold corresponding to the cadastral map, and the preset threshold determines the extent of the boundary extension of the current parcel's border rectangle.

[0059] The multiple borders of the expanded border rectangle are used as the boundaries of the current land parcel sketch. In other words, the boundaries of the current land parcel sketch are the borders of the outer rectangle of the current land parcel's border rectangle.

[0060] In this embodiment, each parcel element of the land parcel sketch is stored in a created selection set. Based on the parcel elements in the selection set, the boundary rectangle of the parcel is generated. The boundary of the boundary rectangle is extended using VBA to generate the circumscribed rectangle of the current parcel's boundary rectangle. Multiple borders of the extended boundary rectangle are used as the boundaries of the current parcel sketch, ensuring that the boundaries of the current parcel sketch are the borders of the circumscribed rectangle of the current parcel's boundary rectangle. The circumscribed rectangle of the parcel's boundary rectangle includes a buffer area with a preset perimeter around the current parcel, ensuring the accuracy of the boundaries of the parcel sketch.

[0061] The following section details the process of generating border rectangles based on the map elements in the selection set.

[0062] Figure 6 A flowchart illustrating the parcel map generation method provided in this application embodiment. Figure 4 ,like Figure 6 As shown, in step S301 above, generating the border rectangle based on each map element in the selection set includes: S401. Traverse each map element in the selection set and use the preset method for obtaining the bounding box to determine the coordinates of the first and second points of the map element.

[0063] Optionally, iterate through each parcel element in the selection set of the current parcel sketch and call the preset GetBoundingBox method to obtain the minimum and maximum point coordinates of the parcel element, including the minimum point coordinate MinPoint and the maximum point coordinate MaxPoint.

[0064] Specifically, in determining the minimum and maximum point coordinates, the VBA language uses `object.GetBoundingBoxMinPoint,MaxPoint`, where `object` is the object using the `GetBoundingBox` method, and `MinPoint` and `MaxPoint` are the minimum and maximum point coordinates returned after iterating through all map elements in the selection set, respectively. The minimum point coordinates `MinPoint` and the maximum point coordinates `MaxPoint` are then used as the first and second point coordinates of the map element, respectively. Both the first and second point coordinates are two-dimensional coordinates.

[0065] S402. Generate the border rectangle based on the coordinates of the first point, the coordinates of the second point, and the unit threshold.

[0066] Optionally, the two coordinate values ​​of the first point are subtracted by a unit threshold, and the two coordinate values ​​of the second point are added to a unit threshold, so that the area is expanded by 1 unit in each of the four directions (north, south, east, and west) to obtain the boundary rectangle of the current land parcel.

[0067] Specifically, the VBA language for generating the border rectangle is as follows:

[0068]

[0069]

[0070] .

[0071] in, Let the coordinates of the first point be... Here are the coordinates of the second point, and 1 represents the unit threshold.

[0072] In this embodiment, each parcel of map elements in the selection set is traversed, and a preset method for obtaining bounding boxes is called to determine the minimum and maximum point coordinates of each parcel's map elements. These coordinates are then used as the first and second point coordinates of the parcel's map elements, respectively. A unit threshold is subtracted from the two coordinate values ​​of the first point, and a unit threshold is added to the two coordinate values ​​of the second point, so that the boundary is extended by one unit in each of the four cardinal directions (north, south, east, and west), resulting in the boundary rectangle of the current parcel. The boundary rectangle is the smallest bounding box containing all parcel map elements, improving the efficiency and accuracy of generating the boundary rectangle.

[0073] As an optional implementation, step S302 above involves expanding the boundary of the joined rectangle according to a preset threshold, and using the multiple borders of the expanded joined rectangle as its four boundaries, including: Based on the coordinates of the first point, the coordinates of the second point, and a preset threshold, the boundary of the border rectangle is expanded using the bounding box acquisition method, and the multiple borders of the expanded border rectangle are used as the four boundaries.

[0074] Optionally, the GetBoundingBox method in the graphics processing software is called again to subtract a preset threshold from the two coordinate values ​​of the first point and add the preset threshold to the two coordinate values ​​of the second point, so that the border rectangle expands to the four directions of east, south, west and north by the preset threshold units, thus obtaining the outer rectangle of the border rectangle of the current land parcel, and the borders of the outer rectangle are used as the four boundaries of the land parcel sketch.

[0075] Specifically, when expanding the border rectangle, the VBA language is as follows:

[0076]

[0077] .

[0078] in, Let the coordinates of the first point be... Let these be the coordinates of the second point. This is a preset threshold corresponding to the cadastral map. For example, the preset threshold corresponding to the cadastral map... It can be 1.5.

[0079] In this embodiment, a preset threshold is subtracted from the two coordinate values ​​of the first point, and a preset threshold is added to the two coordinate values ​​of the second point. This causes the border rectangle to expand by a preset threshold number of units in each of the four directions (north, south, east, and west). The multiple borders of the expanded border rectangle are then used as the boundaries of the land parcel sketch. By using VBA language and a method for obtaining bounding boxes to expand the boundaries of the border rectangle, the efficiency and accuracy of determining the boundaries of the land parcel sketch are improved.

[0080] The following is a detailed explanation of the process of generating and outputting each parcel map in sequence based on each edge primitive in each boundary range.

[0081] Figure 7 A flowchart illustrating the parcel map generation method provided in this application embodiment. Figure 5 ,like Figure 7 As shown, in step S103 above, each parcel map is generated and output sequentially based on the edge primitives within each boundary range, including: S501. Take each edge element in the four boundaries as the copy object, and use the preset copy method to copy the copy object to the model space of the graphic file of the parcel map frame.

[0082] Optionally, a pre-defined copy method can be invoked using VBA to copy all boundary elements within the four-boundary area of ​​the land parcel sketch as the copy object. This copy object is then transferred from the cadastral map in the main window of the graphics processing software to the model space of the graphic file within the land parcel map frame in the secondary window of the software, thus achieving cross-window data transfer. The pre-defined copy method can be the CopyObjects method.

[0083] For example, when transferring data across windows, the VBA language is CopyObjects srcObjects,destDoc.ModelSpace, where the first parameter of the CopyObjects method, srcObjects, is the object to be copied, and the second parameter, destDoc.ModelSpace, indicates the target location for copying, which is the model space of the graphic file of the parcel map frame.

[0084] S502. Obtain the land parcel area information and land user information, and fill the land parcel area information and land user information into the corresponding positions in the graphic file of the land parcel map frame.

[0085] Optionally, continue to refer to Figure 2 The software reads the pre-entered land area and user information from the land parcel sketch and fills in the corresponding positions of the land parcel area and user information in the graphic file of the land parcel map frame using preset commands in the graphics processing software.

[0086] Specifically, the graphic file of the parcel map frame has multiple attribute blocks pre-set. The extracted parcel area information and land user information are filled into each attribute block to complete the graphic file of the parcel map frame.

[0087] S503. Output the graphic file of the filled parcel map frame as a parcel map.

[0088] Optionally, the graphic file of the filled parcel map frame can be standardized and output as a parcel map in the required format, and stored in a path preset by the user to meet different format requirements of the parcel map.

[0089] In this embodiment, a preset copying method is invoked to copy all border elements within the four boundaries of the land parcel sketch as the copy object. This copy object is then copied from the cadastral map to the model space of the land parcel map frame's graphic file, achieving cross-window data transfer. Pre-entered land parcel area and user information from the land parcel sketch are read and filled into the corresponding positions in the land parcel map frame's graphic file, thus completing the graphic file. The filled land parcel map frame's graphic file is then standardized and output as a land parcel map in the required format to meet different format requirements. Through cross-window data transfer, filling the land parcel map frame's graphic file, and standardized output, automated land parcel map production is achieved.

[0090] As an optional implementation, step S503 above, which outputs the graphic file of the filled parcel map frame as a parcel map, includes: Output the filled parcel map frame as a parcel map in drawing file format.

[0091] Optionally, the filled parcel map frame graphic file can be saved as the native vector graphics format of the graphics processing software, i.e., the output drawing file format is a DWG format parcel map. The DWG format parcel map retains complete layer, block, label and other attribute information as well as dynamic attribute blocks.

[0092] In this embodiment, the filled parcel map frame is output as a parcel map in a drawing file format, which makes it easy to open and edit the parcel map directly in graphics processing software.

[0093] As an optional implementation, step S503 above, which outputs the graphic file of the filled parcel map frame as a parcel map, includes: Output the filled parcel map frame as a parcel map in Graphics Interchange Format.

[0094] Optionally, the filled cadastral map frame graphic file can be saved as a cadastral map in DXF format, a graphics exchange format. DXF format is a cross-platform universal format, and DXF format cadastral maps are used for data transfer between different software, offering high cross-platform compatibility.

[0095] In this embodiment, the graphic file of the filled parcel map frame is output as a parcel map in Graphics Exchange Format (GEP), which facilitates the transfer of GEP format parcel maps between different software, improves cross-platform compatibility and the diversity of parcel map output formats, and meets different map output requirements.

[0096] Based on the same inventive concept, this application also provides a parcel map generation device corresponding to the parcel map generation method. Since the principle of the device in this application is similar to the parcel map generation method described above in this application, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be described again.

[0097] Figure 8 A module structure diagram of the parcel map generation device provided in the embodiments of this application is shown below. Figure 8 As shown, the device includes: The acquisition module 801 is used to acquire cadastral maps, which include multiple parcel sketches.

[0098] The determination module 802 is used to determine the boundaries of each land parcel sketch, which includes multiple boundary elements.

[0099] The generation module 803 is used to generate and output each parcel map in sequence based on each edge element in each boundary range.

[0100] As an optional implementation, the determining module 802 is specifically used for: Based on the element type and layer of the land parcel sketch, obtain the various map elements in the land parcel sketch.

[0101] Based on each parcel map element and preset thresholds, determine the boundaries of the parcel sketch map.

[0102] As an optional implementation, the determining module 802 is specifically used for: Each map element is stored in a selection set, and a border rectangle is generated based on each map element in the selection set.

[0103] Based on a preset threshold, the boundary of the edge rectangle is expanded, and the multiple borders of the expanded edge rectangle are used as the four boundaries.

[0104] As an optional implementation, the determining module 802 is specifically used for: Traverse each map element in the selection set and use a preset method to obtain the bounding box to determine the coordinates of the first and second points of the map element.

[0105] Generate the border rectangle based on the coordinates of the first point, the coordinates of the second point, and the unit threshold.

[0106] As an optional implementation, the determining module 802 is specifically used for: Based on the coordinates of the first point, the coordinates of the second point, and a preset threshold, the boundary of the border rectangle is expanded using the bounding box acquisition method, and the multiple borders of the expanded border rectangle are used as the four boundaries.

[0107] As an optional implementation, the generation module 803 is specifically used for: Each edge element within the four boundaries is used as a copy object, and the copy object is copied to the model space of the graphic file of the parcel map frame using a preset copy method.

[0108] Obtain the land parcel area information and land user information, and then fill the land parcel area information and land user information into the corresponding positions in the graphic file of the land parcel map frame.

[0109] Output the graphic file of the filled parcel map frame as a parcel map.

[0110] As an optional implementation, the generation module 803 is specifically used for: Output the filled parcel map frame as a parcel map in drawing file format.

[0111] As an optional implementation, the generation module 803 is specifically used for: Output the filled parcel map frame as a parcel map in Graphics Interchange Format.

[0112] This application also provides an electronic device, such as... Figure 9 The diagram shown is a schematic representation of the structure of an electronic device provided in an embodiment of this application, including: a processor 91, a memory 92, and a bus 93. The memory 92 stores machine-readable instructions executable by the processor 91 (e.g., ...). Figure 8The device includes the acquisition module 801, the determination module 802, and the execution instructions corresponding to the generation module 803. When the electronic device is running, the processor 91 and the memory 92 communicate through the bus 93. When the machine-readable instructions are executed by the processor 91, the steps of the parcel map generation method in the above embodiment are executed.

[0113] This application also provides a computer-readable storage medium storing a computer program, which, when run by a processor, performs the steps of the parcel map generation method described above.

[0114] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems and devices described above can be referred to the corresponding processes in the method embodiments, and will not be repeated here. In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. Furthermore, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed mutual coupling or direct coupling or communication connection can be through some communication interfaces; the indirect coupling or communication connection of devices or modules can be electrical, mechanical, or other forms.

[0115] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. If the functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes: USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, optical disks, and other media capable of storing program code.

[0116] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application.

Claims

1. A method for generating parcel maps, characterized in that, include: Obtain a cadastral map, which includes multiple parcel sketches; Based on the element type and layer of the land parcel sketch, obtain each land parcel element in the land parcel sketch; Each of the aforementioned parcel map elements is stored in a selection set, and a border rectangle is generated based on each parcel map element in the selection set; the border rectangle is expanded according to a preset threshold, and the multiple borders of the expanded border rectangle are used as the four boundaries of the parcel sketch, the four boundaries including multiple border map elements. Based on each edge element in the four boundaries, generate and output each parcel map in sequence; The step of generating the edge rectangle based on each map element in the selected set includes: Traverse each map element in the selection set, and use a preset method to obtain the bounding box to determine the first and second point coordinates of the map element; generate the border rectangle based on the first point coordinates, the second point coordinates, and a unit threshold. The step of expanding the boundary of the border rectangle according to a preset threshold, and using the multiple borders of the expanded border rectangle as the four boundaries of the land parcel sketch, includes: Based on the coordinates of the first point, the coordinates of the second point, and the preset threshold, the boundary of the border rectangle is expanded using the bounding box acquisition method, and the multiple borders of the expanded border rectangle are used as the four boundaries of the land parcel sketch.

2. The parcel map generation method according to claim 1, characterized in that, The step of generating and outputting each parcel map sequentially based on each edge primitive within each of the four boundary ranges includes: Each edge element in the four boundaries is used as a copy object, and the copy object is copied to the model space of the graphic file of the parcel map frame using a preset copy method; Obtain the land parcel area information and land user information, and fill the land parcel area information and land user information into the corresponding positions in the graphic file of the land parcel map frame; Output the graphic file of the filled parcel map frame as a parcel map.

3. The parcel map generation method according to claim 2, characterized in that, The step of outputting the graphic file of the filled parcel map frame as a parcel map includes: The filled parcel map frame is output as a parcel map in drawing file format.

4. The parcel map generation method according to claim 2, characterized in that, The step of outputting the graphic file of the filled parcel map frame as a parcel map includes: The filled parcel map frame is output as a parcel map in Graphics Interchange Format.

5. An electronic device, characterized in that, include: The electronic device includes a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the electronic device is running, the processor communicates with the memory via the bus, and the processor executes the machine-readable instructions to perform the steps of the parcel map generation method as described in any one of claims 1 to 4.

6. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, which, when executed by a processor, performs the steps of the parcel map generation method as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Intelligent output method for land parcel maps

    CN101593454A

  • Boundary point coordinate table generation method and device, computer equipment and storage medium

    CN118823817A