Zongmap generation method, electronic equipment and storage medium
By using VBA language in graphics processing software to determine the boundaries of the plot sketch and transfer it across windows, the problem of plot map production relying on manual operation was solved, and the automated batch production of plot maps was realized, improving efficiency and accuracy.
Patent Information
- Application Number
- CN202510856781.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-25
- Publication Date
- 2025-09-26
- Estimated Expiration
- 2045-06-25
AI Technical Summary
In the existing technology, the production of Zong maps relies on manual operation, which is difficult to meet the demand for rapid map production. In addition, manual operation is affected by subjective factors, resulting in uneven accuracy and quality.
The Visual Basic Language (VBA) in the graphics processing software is used to determine the boundaries of the plot sketch in the cadastral map, and cross-window transfer is carried out based on the edge elements to achieve automated batch production of plot maps.
It improves the efficiency and accuracy of plot map production, realizes the automated batch production of plot maps, and reduces the subjective influence of manual operation.
Smart Images

Figure CN120705241A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of cadastral management, and in particular to a plot map generation method, electronic device, and storage medium. Background Art
[0002] In the field of cadastral management, land ownership relies on cadastral maps. Parcel maps, which accurately reflect key information such as land ownership boundaries, area, and use, are based on parcels and serve as the foundation for real estate registration.
[0003] Currently, the production and output of land parcel maps still largely rely on manual labor, which makes it difficult to meet the demand for rapid output. Furthermore, manual labor is significantly influenced by subjective factors, and different operators may have different understandings of surveying and mapping standards, resulting in varying accuracy and quality of land parcel maps.
[0004] Therefore, the existing technology has certain limitations when making land parcel maps. Summary of the Invention
[0005] The purpose of this application is to provide a plot map generation method, electronic device and storage medium to address the shortcomings of the above-mentioned existing technologies, so as to solve the practical needs of the existing technologies that have certain limitations when making plot maps.
[0006] To achieve the above objectives, the technical solutions adopted in the embodiments of the present application are as follows: In a first aspect, an embodiment of the present application provides a method for generating a parcel map, the method comprising: Obtaining a cadastral map, wherein the cadastral map includes a plurality of plot sketches; Determine the boundaries corresponding to each of the plot sketches, wherein the boundaries include a plurality of edge elements; Based on each edge graphic element within the four boundary ranges, each plot map is generated and output in sequence.
[0007] As an optional implementation, determining the boundaries corresponding to each of the parcel sketches includes: Obtaining each parcel element in the parcel sketch according to the element type and layer of the parcel sketch; The boundaries of the plot sketch are determined based on each of the plot elements and a preset threshold.
[0008] As an optional implementation, determining the boundaries corresponding to the parcel sketch according to each of the parcel elements and a preset threshold value includes: storing each of the parcel elements in a selection set, and generating a border rectangle based on each of the parcel elements in the selection set; According to the preset threshold, the boundary of the edge rectangle is extended, and multiple frames of the extended edge rectangle are used as the boundary range.
[0009] As an optional implementation, generating a border rectangle based on each parcel element in the selection set includes: Traversing each parcel element in the selection set, and determining the first point coordinates and the second point coordinates of the parcel element using a preset bounding box acquisition method; The border rectangle is generated according to the first point coordinates, the second point coordinates, and a unit threshold.
[0010] As an optional implementation, the boundary of the edge rectangle is extended according to the preset threshold, and multiple borders of the extended edge rectangle are used as the four-boundary range, including: According to the first point coordinates, the second point coordinates and the preset threshold, the boundary of the border rectangle is expanded using the method for obtaining a bounding box, and multiple borders of the expanded border rectangle are used as the four-boundary range.
[0011] As an optional implementation method, the generating and outputting of each parcel map in sequence according to each edge primitive in each of the four boundary ranges includes: Taking each edge element in the four-boundary range as a copy object, and using a preset copy method to copy the copy object into the model space of the graphic file of the plot map frame; Obtaining land parcel area information and land user information, and filling the land parcel area information and the land user information into corresponding positions of the graphic file of the land parcel map frame; Export the graphic file of the filled plot map frame as a plot map.
[0012] As an optional implementation method, outputting the filled plot map frame graphic file as a plot map includes: The graphic file of the filled plot map frame is output as a plot map in a drawing file format.
[0013] As an optional implementation method, outputting the filled plot map frame graphic file as a plot map includes: The graphic file of the filled plot map frame is output as a plot map in a graphic exchange format.
[0014] In a second aspect, an embodiment of the present application provides a parcel map production device, the device comprising: An acquisition module, configured to acquire a cadastral map, wherein the cadastral map includes a plurality of plot sketches; A determination module, configured to determine the boundaries corresponding to each of the parcel sketches, wherein the boundaries include a plurality of edge primitives; The generation module is used to generate and output each plot map in sequence according to each edge graphic element in the four boundary ranges.
[0015] As an optional implementation, the determining module is specifically configured to: Obtaining each parcel element in the parcel sketch according to the element type and layer of the parcel sketch; The boundaries of the plot sketch are determined based on each of the plot elements and a preset threshold.
[0016] As an optional implementation, the determining module is specifically configured to: storing each of the parcel elements in a selection set, and generating a border rectangle based on each of the parcel elements in the selection set; According to the preset threshold, the boundary of the edge rectangle is extended, and multiple frames of the extended edge rectangle are used as the boundary range.
[0017] As an optional implementation, the determining module is specifically configured to: Traversing each parcel element in the selection set, and determining the first point coordinates and the second point coordinates of the parcel element using a preset bounding box acquisition method; The border rectangle is generated according to the first point coordinates, the second point coordinates, and a unit threshold.
[0018] As an optional implementation, the determining module is specifically configured to: According to the first point coordinates, the second point coordinates and the preset threshold, the boundary of the border rectangle is expanded using the method for obtaining a bounding box, and multiple borders of the expanded border rectangle are used as the four-boundary range.
[0019] As an optional implementation, the generating module is specifically configured to: Taking each edge element in the four-boundary range as a copy object, and using a preset copy method to copy the copy object into the model space of the graphic file of the plot map frame; Obtaining land parcel area information and land user information, and filling the land parcel area information and the land user information into corresponding positions of the graphic file of the land parcel map frame; Export the graphic file of the filled plot map frame as a plot map.
[0020] As an optional implementation, the generating module is specifically configured to: The graphic file of the filled plot map frame is output as a plot map in a drawing file format.
[0021] As an optional implementation, the generating module is specifically configured to: The graphic file of the filled plot map frame is output as a plot map in a graphic exchange format.
[0022] In a third aspect, an embodiment of the present application provides an electronic device comprising a processor, a memory, and a bus, wherein 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 plot map generation method as described in the first aspect above.
[0023] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the plot map generation method as described in the first aspect above are executed.
[0024] The beneficial effects of this application are: The present application provides a method for generating a parcel map, an electronic device, and a storage medium. The cadastral map and the current parcel map frame are opened in the main window and the sub-window of the graphics processing software, respectively. The boundaries corresponding to the current parcel sketch in the cadastral map are determined based on the visual basic application language and various functional functions in the graphics processing software. The edge elements in the boundaries corresponding to the current parcel sketch in the main window of the graphics processing software are transferred across windows to the current parcel map frame in the sub-window of the graphics processing software. The current parcel map is generated and output in the current parcel map frame. After the current parcel map is generated and output, the current parcel map is closed, the boundaries corresponding to the next parcel sketch in the cadastral map are re-determined, and the next parcel map is generated and output. The execution is repeated until all parcel maps in the cadastral map are generated and output, thereby realizing batch automated production of parcel maps. The boundaries and adjacent relationships in the east, south, west, and north directions of the spatial position of the parcel are represented by the boundaries corresponding to the parcel sketch, thereby improving the efficiency and accuracy of parcel map production. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without creative work.
[0026] Figure 1 Schematic diagram of the process of generating a plot map provided in the embodiment of the present application Figure 1 ; Figure 2 A schematic diagram of a plot sketch provided for an embodiment of the present application; Figure 3 Schematic diagram of the process of generating a plot map provided in the embodiment of the present application Figure 2 ; Figure 4 A schematic diagram showing the effect of generating a parcel map under various thresholds provided in an embodiment of the present application; Figure 5 Schematic diagram of the process of generating a plot map provided in the embodiment of the present application Figure 3 ; Figure 6 Schematic diagram of the process of generating a plot map provided in the embodiment of the present application Figure 4 ; Figure 7 Schematic diagram of the process of generating a plot map provided in the embodiment of the present application Figure 5 ; Figure 8 A module structure diagram of a plot map generating device provided in an embodiment of the present application; Figure 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0027] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of illustration and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn to scale. The flowcharts used in this application illustrate the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowcharts can be implemented out of sequence, and steps without logical context can be reversed or implemented simultaneously. In addition, those skilled in the art, under the guidance of the contents of this application, can add one or more other operations to the flowchart, or remove one or more operations from the flowchart.
[0028] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application generally described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present application.
[0029] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.
[0030] In cadastral management, land ownership relies on cadastral maps. Parcel maps, specifically, use parcels as units and accurately reflect key information such as land ownership boundaries, area, and use, forming the foundation for real estate registration. Currently, the production of parcel maps still largely relies on manual labor, which struggles to meet the demand for rapid mapping. Furthermore, manual parcel map production is susceptible to subjective factors, and different operators often have varying understandings of surveying and mapping standards, resulting in varying accuracy and quality. This means that existing technologies for producing parcel maps have certain limitations.
[0031] Based on the above-mentioned problems, an embodiment of the present application proposes a method for generating a plot map. In graphics processing software, the Visual Basic for Applications (VBA) language is used to determine the boundaries corresponding to each plot sketch in the cadastral map, and then each plot map is generated and output in sequence based on each edge element in the boundaries, thereby realizing the automated batch production and output of plot maps and improving the production efficiency and accuracy of plot maps.
[0032] Figure 1 Schematic diagram of the process of generating a plot map provided in the embodiment of the present application Figure 1 The execution subject of this method can be any electronic device with computing and processing capabilities. Figure 1 As shown, the method includes: S101. Obtain a cadastral map, which includes a plurality of plot sketches.
[0033] Optionally, pre-acquired current and high-resolution aerial orthophotos, as well as real estate registration system data, collective land ownership data, cadastral areas or cadastral sub-areas, land change survey results, three zones and three lines and other data are used as working base maps. According to the coordinates of the boundary points, graphic processing software or Geographic Information System (GIS) software is used to draw the boundary lines of the land parcels, and the land parcel numbers, rights holder names, land uses, land area and other attributes are entered to obtain a land parcel sketch of a single plot.
[0034] Figure 2 A schematic diagram of a plot sketch provided in an embodiment of the present application, Figure 2For example, a parcel sketch is a field record used to describe the location, boundary points, boundary lines, and relationships between adjacent parcels. The parcel sketches for multiple plots are aggregated, topological relationships are checked for overlaps or gaps, and the coordinate system is corrected. The corrected parcel data is then overlaid with the underlying geographic information to generate a cadastral map, which includes multiple parcel sketches.
[0035] The cadastral map and each blank parcel map frame are stored in a preset path. The cadastral map and the current parcel map frame are opened in a graphics processing software window. The main window of the graphics processing software is set to the cadastral map, and the secondary window of the graphics processing software is set to the current parcel map frame. For example, the graphics processing software may be AutoCAD, the cadastral map includes n parcel sketches, and the current parcel map frame may be the i-th parcel map frame.
[0036] S102. Determine the boundaries of the sketch of each plot of land, where the boundaries include a plurality of edge elements.
[0037] Optionally, there is a secondary development tool in the secondary development environment of the graphics processing software. Based on the secondary development tool and multiple functional functions in the graphics processing software, the four boundaries corresponding to the current plot sketch in the cadastral map are determined to represent the boundaries and adjacent relationships in the four directions of east, south, west and north of the plot's spatial position, and all graphics elements within the four boundaries are regarded as edge elements, that is, the four boundaries include multiple edge elements.
[0038] Among them, the secondary development tool in the graphics processing software can be VBA, which is embedded in the graphics processing software. Secondary development is performed in the secondary development environment of the graphics processing software based on the VBA language. As an object-oriented programming language, the VBA language is easy to interact with and has a fast development speed. It has advantages such as simple language rules, high interactive execution efficiency, low memory usage, and flexible and diverse programming tools, which can meet the needs of secondary development. In addition, the VBA language can run in the same space as graphics processing software such as AutoCAD, providing an intelligent and fast programming environment for graphics processing software.
[0039] Exemplarily, the current plot sketch in the cadastral map is the i-th plot sketch, and based on the VBA language and multiple function functions in the graphics processing software, the boundaries corresponding to the i-th plot sketch in the cadastral map are determined.
[0040] S103. Generate and output each plot map in sequence according to each edge graphic element in each boundary range.
[0041] Optionally, using VBA language and preset functions, each edge element within the four boundaries corresponding to the current parcel sketch in the main window of the graphics processing software is transferred across windows, and each edge element within the four boundaries corresponding to the current parcel sketch in the main window of the graphics processing software is transferred to the current parcel map frame in the secondary window of the graphics processing software, thereby generating the current parcel map in the current parcel map frame and outputting the current parcel map in the format required for actual 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 in the next parcel map frame. Each parcel map is generated and output in sequence, thereby realizing batch automated production of parcel maps.
[0042] Exemplarily, each edge element in the four-boundary range corresponding to the i-th plot sketch is transferred to the i-th plot map frame. After the i-th plot map is generated and output, the i-th plot map is closed, and a blank i+1-th plot 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 plot sketch in the cadastral map is updated to the i+1-th plot sketch. Based on the VBA language and multiple function functions in the graphics processing software, the four-boundary range corresponding to the i+1-th plot sketch in the cadastral map is re-determined, and each edge element in the four-boundary range corresponding to the i+1-th plot sketch is transferred to the i+1-th plot map frame, and the i+1-th plot map is generated and output. Repeat the above steps until n plot maps are generated and output, then close the graphics processing software to end the batch automated production of plot maps.
[0043] In this embodiment, the cadastral map and the current plot map frame are opened in the main window and sub-window of the graphics processing software respectively. The boundaries corresponding to the current plot sketch in the cadastral map are determined based on the visual basic application language and various functional functions in the graphics processing software. The edge elements in the boundaries corresponding to the current plot sketch in the main window of the graphics processing software are transferred across windows and transferred to the current plot map frame in the sub-window of the graphics processing software. The current plot map is generated and output in the current plot map frame. After the current plot map is generated and output, the current plot map is closed, the boundaries corresponding to the next plot sketch in the cadastral map are re-determined, and the next plot map is generated and output. This is repeated until all plot maps in the cadastral map are generated and output, thereby realizing batch automated production of plot maps. The boundaries and adjacent relationships in the east, south, west, and north directions of the spatial location of the plot are represented by the boundaries corresponding to the plot sketch, thereby improving the efficiency and accuracy of plot map production.
[0044] The following is a detailed description of the process of determining the boundaries of each plot of land sketch.
[0045] Figure 3 Schematic diagram of the process of generating a plot map provided in the embodiment of the present application Figure 2 ,like Figure 3 As shown, the above step S102 determines the boundaries corresponding to each plot sketch, including: S201. Obtain each parcel element in the parcel sketch according to the element type and layer of the parcel sketch.
[0046] Optionally, a parcel sketch includes multiple types of primitives, i.e., various types of graphic elements, such as boundary line primitives, boundary point primitives, and parcel number primitives. Layers are used to categorize and manage primitives. For example, the boundary point layer stores boundary point symbols, the boundary line layer stores boundary lines, and the parcel annotation layer stores parcel number text.
[0047] Each parcel has a unique number. By matching the numbers of each layer and each type of feature, all features in the same parcel sketch can be filtered out to avoid obtaining features from other parcels and interference from irrelevant features. For example, by matching the numbers of each layer and each type of feature in the i-th parcel sketch, all parcel features in the i-th parcel sketch can be obtained.
[0048] S202. Determine the boundaries of the land parcel sketch based on the land parcel elements and preset thresholds.
[0049] Optionally, the boundaries of the parcel sketch are determined using VBA language and various functions based on the preset thresholds for each parcel element in the parcel sketch and the cadastral map. The preset thresholds for the cadastral map are used to change the boundaries of each parcel in the parcel sketch. The preset thresholds are determined by comparing the information completeness of parcel maps generated under different thresholds for the same cadastral map multiple times to determine the optimal threshold for that cadastral map.
[0050] Figure 4 This is a schematic diagram of the effect of generating a plot map under various thresholds provided in the embodiment of the present application, such as Figure 4 As shown in (a), when the threshold is 0.5, the bottom information of the generated plot map is the least complete. Figure 4 As shown in (b), when the threshold is 1, the information below the generated plot map is less complete. Figure 4 As shown in (c), when the threshold is 1.5, the information below the generated parcel map is highly complete. In other words, when the threshold is 0.5 or 1, the parcel boundary information is missing, which cannot meet the actual mapping needs. When the threshold is 1.5, the parcel boundary information is complete, and 1.5 is used as the preset threshold to determine the boundaries of each parcel sketch in the cadastral map.
[0051] It is worth noting that if the cadastral map is replaced, it is necessary to re-compare the information completeness of the plot maps generated under different thresholds corresponding to the new cadastral map multiple times to determine the optimal threshold corresponding to the new cadastral map.
[0052] In this embodiment, all entities in the same parcel sketch are filtered out by matching the numbers of the entities in each layer and type based on the entity type and layer of the parcel sketch. The parcel entities in the parcel sketch are then retrieved, avoiding interference from irrelevant entities. Based on the preset thresholds for each parcel entity in the parcel sketch and the cadastral map, the boundaries of the parcel sketch are determined using VBA language and various functions. The boundaries of each parcel in the cadastral map are modified using the preset thresholds corresponding to the cadastral map, ensuring the accuracy of the boundaries of the parcel sketch.
[0053] The following describes in detail the process of determining the boundaries of the plot sketch based on each plot element and preset thresholds.
[0054] Figure 5 Schematic diagram of the process of generating a plot map provided in the embodiment of the present application Figure 3 ,like Figure 5 As shown, in the above step S202, the boundaries corresponding to the parcel sketch are determined according to each parcel element and the preset threshold, including: S301. Store each parcel element into a selection set, and generate a connecting rectangle based on each parcel element in the selection set.
[0055] Alternatively, a selection set of the current parcel sketch is created in graphics processing software using VBA language, each parcel element of the current parcel sketch is stored in the selection set, and multiple functions are used to traverse each parcel element in the selection set to generate a bounding rectangle for the current parcel. The bounding rectangle for the current parcel is the bounding box of each parcel element of the current parcel sketch, and includes all parcel elements of the current parcel sketch.
[0056] Taking the current parcel sketch as the i-th parcel sketch as an example, store each parcel element of the i-th parcel sketch into the i-th selection set, and traverse each parcel element in the i-th selection set to generate the border rectangle of the i-th parcel, so that the border rectangle of the i-th parcel surrounds all parcel elements of the i-th parcel sketch.
[0057] S302: Expand the borders of the connecting rectangle according to a preset threshold, and use the multiple borders of the expanded connecting rectangle as the boundary range.
[0058] Optionally, VBA language is used to expand the boundaries of the adjacent rectangle of the current plot, and the adjacent rectangle of the current plot is expanded outward in the four directions of east, south, west and north to generate the circumscribed rectangle of the adjacent rectangle of the current plot, so that the circumscribed rectangle of the adjacent rectangle of the current plot contains a buffer area of a preset range around the current plot, wherein the preset range depends on the preset threshold corresponding to the cadastral map, and the preset threshold determines the extent of the boundary expansion of the adjacent rectangle of the current plot.
[0059] The multiple borders of the expanded edge rectangle are used as the boundaries corresponding to the current plot sketch. That is to say, the boundaries corresponding to the current plot sketch are the borders of the circumscribed rectangle of the edge rectangle of the current plot.
[0060] In this embodiment, each parcel element in the parcel sketch is stored in a created selection set. A parcel bounding rectangle is generated based on each parcel element in the selection set. The boundaries of the parcel bounding rectangle are extended using VBA to generate a bounding rectangle for the current parcel. The bounding rectangles of the extended bounding rectangles are used as the boundaries of the current parcel sketch, so that the boundaries of the current parcel sketch are the bounding rectangles of the bounding rectangle. The bounding rectangle of the parcel bounding rectangle includes a buffer area within a preset range around the current parcel, ensuring the accuracy of the boundaries of the parcel sketch.
[0061] The following is a detailed description of the process of generating edge rectangles based on the elements of each plot in the selection set.
[0062] Figure 6 Schematic diagram of the process of generating a plot map provided in the embodiment of the present application Figure 4 ,like Figure 6 As shown, in the above step S301, the edge rectangle is generated based on each parcel element in the selection set, including: S401. Traverse each parcel element in the selection set and use a preset method for obtaining a bounding box to determine the first point coordinates and the second point coordinates of the parcel element.
[0063] Optionally, traverse 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, when determining the minimum and maximum point coordinates, use the VBA method object.GetBoundingBoxMinPoint,MaxPoint, where object is the object to which the GetBoundingBox method is applied, and MinPoint and MaxPoint are the minimum and maximum point coordinates returned after traversing each parcel element in the selection set. The minimum point coordinates MinPoint and the maximum point coordinates MaxPoint are used as the first and second point coordinates of the parcel element, respectively. Both the first and second point coordinates are two-dimensional coordinates.
[0065] S402: Generate a border rectangle according to the first point coordinates, the second point coordinates, and a unit threshold.
[0066] Optionally, the unit threshold is subtracted from the two coordinate values of the first point coordinates, and the unit threshold is added to the two coordinate values of the second point coordinates, so that they are expanded by 1 unit in the four directions of east, south, west and north to obtain the edge rectangle of the current plot.
[0067] Specifically, when generating a border rectangle, the VBA language is:
[0068]
[0069]
[0070] .
[0071] in, is the coordinate of the first point, is the coordinate of the second point, and 1 is the unit threshold.
[0072] In this embodiment, each parcel element in the selection set is traversed, and a preset bounding box method is called to determine the minimum and maximum coordinates of each parcel element. These coordinates are used as the first and second coordinates of the parcel element, respectively. The unit threshold is subtracted from the two coordinate values of the first point, and the unit threshold is added to the two coordinate values of the second point. This is done by expanding the bounding rectangle by one unit in each of the four directions: east, south, west, and north. This results in the bounding rectangle of the current parcel. The bounding rectangle is the minimum bounding box that contains each parcel element, improving the efficiency and accuracy of bounding rectangle generation.
[0073] As an optional implementation, in step S302, the boundary of the connecting rectangle is extended according to a preset threshold, and multiple borders of the extended connecting rectangle are used as the four-boundary range, including: According to the first point coordinates, the second point coordinates and a preset threshold, a bounding box acquisition method is adopted to expand the boundary of the side rectangle, and multiple borders of the expanded side rectangle are used as the four-boundary range.
[0074] Optionally, continue to call the GetBoundingBox method in the graphics processing software, subtract the preset threshold from the two coordinate values of the first point coordinates, and add the preset threshold to the two coordinate values of the second point coordinates, so that the border rectangle is expanded by the preset threshold units in the four directions of east, south, west and north, respectively, to obtain the circumscribed rectangle of the border rectangle of the current plot, and use the borders of the circumscribed rectangle as the four boundaries corresponding to the plot sketch.
[0075] Specifically, when expanding the edge rectangle, the VBA language is:
[0076] ;
[0077] .
[0078] in, is the coordinate of the first point, is the coordinate of the second point, is the 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 example, a preset threshold is subtracted from each of the first point's coordinates and added to each of the second point's coordinates. This results in the bounding rectangle being expanded by the preset threshold number of units in each of the four directions: east, south, west, and north. The bounding boxes of these expanded bounding rectangles serve as the boundaries of the sketched parcel. Extending the bounding rectangle using VBA and the Get Bounding Box method improves the efficiency and accuracy of determining the boundaries of the sketched parcel.
[0080] The following describes in detail the process of sequentially generating and outputting each plot map based on each edge element in each boundary range.
[0081] Figure 7 Schematic diagram of the process of generating a plot map provided in the embodiment of the present application Figure 5 ,like Figure 7 As shown, in the above step S103, each parcel map is generated and outputted in sequence according to each edge primitive in each four-boundary range, including: S501. Take each edge element in the four-boundary range as a copy object, and use a preset copy method to copy the copy object to the model space of the graphic file of the plot map frame.
[0082] Alternatively, a preset copy method may be called using VBA language, with all edge entities within the bounds of the parcel sketch as copy objects. The copied objects are then copied from the cadastral map in the main window of the graphics processing software to the model space of the graphics file of the parcel map frame in the secondary window of the graphics processing software, thereby achieving cross-window data transfer. The preset copy method may be the CopyObjects method.
[0083] For example, when transferring data across windows, the VBA language is CopyObjects srcObjects, destDoc.ModelSpace, where the first parameter srcObjects of the CopyObjects method is the copy object, and the second parameter destDoc.ModelSpace indicates the target location of the copy, that is, the model space of the graphic file of the plot 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 of the graphic file of the land parcel map frame.
[0085] Optionally, continue with reference to Figure 2 , read the plot area information and land user information pre-entered in the plot sketch, and fill the plot area information and land user information in the corresponding position of the graphic file of the plot map frame through the preset commands in the graphics processing software.
[0086] Specifically, a plurality of attribute blocks are preset in the graphic file of the plot map frame, and the extracted plot area information and land user information are filled in each attribute block to improve the graphic file of the plot map frame.
[0087] S503. Output the filled plot map frame graphic file as a plot map.
[0088] Optionally, the graphic file of the filled plot map frame is output in a standardized manner, output as a plot map in the actual required format, and stored in a path preset by the user to meet different format requirements of the plot map.
[0089] In this embodiment, a preset copy method is called, and all the edge elements within the four boundaries corresponding to the plot sketch are used as copy objects. The copy objects are copied from the cadastral map to the model space of the graphic file of the plot map frame to realize cross-window data transfer. The plot area information and land user information pre-entered in the plot sketch are read, and the plot area information and land user information are filled in the corresponding positions of the graphic file of the plot map frame to improve the graphic file of the plot map frame. The graphic file of the filled plot map frame is standardized and output as a plot map in the actual required format to meet the different format requirements of the plot map. By transferring data across windows, filling the graphic file of the plot map frame, and standardizing the output, the automated production of the plot map is realized.
[0090] As an optional implementation, the step S503 of outputting the filled plot map frame graphic file as a plot map includes: Export the graphic file of the filled plot map frame to a plot map in a drawing file format.
[0091] Optionally, the filled plot map frame graphic file is saved in the native vector graphics format of the graphics processing software, that is, the output drawing file format is the DWG format plot map. The DWG format plot map retains the complete layer, block, annotation and other attribute information and dynamic attribute blocks.
[0092] In this embodiment, the graphic file of the filled plot map frame is output as a plot map in a drawing file format, which facilitates direct opening, editing and processing of the plot map in graphic processing software.
[0093] As an optional implementation, the step S503 of outputting the filled plot map frame graphic file as a plot map includes: Export the filled plot map frame drawing file as a plot map in a drawing interchange format.
[0094] Optionally, the filled plot map frame graphic file is saved as a plot map in the Graphics Interchange Format (DXF) format. DXF is a universal cross-platform format used for data transmission between different software and has high cross-platform compatibility.
[0095] In this embodiment, the graphic file of the filled plot map frame is output as a plot map in a graphic exchange format, which facilitates the transmission of the plot map in a graphic exchange format between different software, improves cross-platform compatibility and the diversity of plot map output formats, and meets different drawing requirements.
[0096] Based on the same inventive concept, the embodiment of the present application also provides a plot map generation device corresponding to the plot map generation method. Since the principle of solving the problem by the device in the embodiment of the present application is similar to the above-mentioned plot map generation method in the embodiment of the present application, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0097] Figure 8 The module structure diagram of the plot map generation device provided in the embodiment of the present application is as follows: Figure 8 As shown, the device includes: The acquisition module 801 is used to acquire a cadastral map, which includes a plurality of plot sketches.
[0098] The determination module 802 is used to determine the boundaries corresponding to each plot sketch, and the boundaries include multiple edge elements.
[0099] The generation module 803 is used to generate and output each plot map in sequence according to each edge graphic element in each boundary range.
[0100] As an optional implementation manner, the determining module 802 is specifically configured to: Get each parcel element in the parcel sketch according to its element type and layer.
[0101] Determine the boundaries of the plot sketch based on each plot element and preset thresholds.
[0102] As an optional implementation manner, the determining module 802 is specifically configured to: Store each plot element in the selection set, and generate a junction rectangle based on each plot element in the selection set.
[0103] According to a preset threshold, the boundary of the connecting rectangle is extended, and multiple borders of the extended connecting rectangle are used as the four-boundary range.
[0104] As an optional implementation manner, the determining module 802 is specifically configured to: Traverse each parcel element in the selection set and use the preset bounding box acquisition method to determine the first point coordinates and the second point coordinates of the parcel element.
[0105] Generates a bounding rectangle based on the first point coordinates, the second point coordinates, and a unit threshold.
[0106] As an optional implementation manner, the determining module 802 is specifically configured to: According to the first point coordinates, the second point coordinates and a preset threshold, a bounding box acquisition method is adopted to expand the boundary of the side rectangle, and multiple borders of the expanded side rectangle are used as the four-boundary range.
[0107] As an optional implementation manner, the generating module 803 is specifically configured to: Each edge element within the four-boundary range is taken as a copy object, and the copy object is copied to the model space of the graphic file of the plot map frame using the preset copy method.
[0108] Obtain the plot area information and land user information, and fill the plot area information and land user information into the corresponding positions of the graphic file of the plot map frame.
[0109] Export the graphic file of the filled plot map frame as a plot map.
[0110] As an optional implementation manner, the generating module 803 is specifically configured to: Export the graphic file of the filled plot map frame to a plot map in a drawing file format.
[0111] As an optional implementation manner, the generating module 803 is specifically configured to: Export the filled plot map frame drawing file as a plot map in a drawing interchange format.
[0112] The present application also provides an electronic device, such as Figure 9 FIG. 1 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, comprising: a processor 91, a memory 92 and a bus 93. The memory 92 stores machine-readable instructions (e.g., Figure 8In the device, the acquisition module 801, the determination module 802, and the execution instructions corresponding to the generation module 803 are obtained, etc.). When the electronic device is running, the processor 91 communicates with the memory 92 through the bus 93. When the machine-readable instructions are executed by the processor 91, the steps of the method for generating a map in the above embodiment are executed.
[0113] An embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the method for generating a parcel map in the above embodiment are executed.
[0114] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system and device described above can refer to the corresponding process in the method embodiment, and will not be repeated in this application. In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation. For example, 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 mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0115] In addition, the functional units in the various embodiments of the present application can be integrated into a single processing unit, each unit can exist physically separately, or two or more units can be integrated into a single unit. If the functions are implemented in the form of 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 the present application, or the portion that contributes to the prior art, or the portion 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 for causing a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in the various embodiments of the present application. The aforementioned storage medium includes various media that can store program code, such as a USB flash drive, a mobile hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0116] The above is only a specific implementation method of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with this technical field can easily think of changes or replacements within the technical scope disclosed in this application, which should be covered by the protection scope of the present application.
Claims
1. A method for generating a parcel map, characterized in that: include: Obtaining a cadastral map, wherein the cadastral map includes a plurality of plot sketches; Determine the boundaries corresponding to each of the plot sketches, wherein the boundaries include a plurality of edge elements; Based on each edge graphic element within the four boundary ranges, each plot map is generated and output in sequence.
2. The method according to claim 1, characterized in that Determining the boundaries of each of the land parcel sketches includes: Obtaining each parcel element in the parcel sketch according to the element type and layer of the parcel sketch; The boundaries of the plot sketch are determined based on each of the plot elements and a preset threshold.
3. The method according to claim 2, characterized in that Determining the boundaries of the land parcel sketch according to each of the land parcel elements and a preset threshold value includes: storing each of the parcel elements in a selection set, and generating a border rectangle based on each of the parcel elements in the selection set; According to the preset threshold, the boundary of the edge rectangle is extended, and multiple frames of the extended edge rectangle are used as the boundary range.
4. The method according to claim 3, characterized in that The step of generating a border rectangle based on each parcel element in the selection set includes: Traversing each parcel element in the selection set, and determining the first point coordinates and the second point coordinates of the parcel element using a preset bounding box acquisition method; The border rectangle is generated according to the first point coordinates, the second point coordinates, and a unit threshold.
5. The method according to claim 4, characterized in that The step of extending the border of the edge rectangle according to the preset threshold and using the multiple borders of the extended edge rectangle as the four-boundary range includes: According to the first point coordinates, the second point coordinates and the preset threshold, the boundary of the border rectangle is expanded using the method for obtaining a bounding box, and multiple borders of the expanded border rectangle are used as the four-boundary range.
6. The method according to claim 1, wherein The method of sequentially generating and outputting each parcel map according to each edge primitive in each of the four boundary ranges includes: Taking each edge element in the four-boundary range as a copy object, and using a preset copy method to copy the copy object into the model space of the graphic file of the plot map frame; Obtaining land parcel area information and land user information, and filling the land parcel area information and the land user information into corresponding positions of the graphic file of the land parcel map frame; Export the graphic file of the filled plot map frame as a plot map.
7. The method according to claim 6, characterized in that The step of outputting the filled graphic file of the plot map frame as a plot map includes: The graphic file of the filled plot map frame is output as a plot map in a drawing file format.
8. The method according to claim 6, characterized in that The step of outputting the filled graphic file of the plot map frame as a plot map includes: The graphic file of the filled plot map frame is output as a plot map in a graphic exchange format.
9. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor. When the electronic device is running, the processor and the memory communicate via the bus, and the processor executes the machine-readable instructions to perform the steps of the plot map generation method as described in any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for generating a parcel map according to any one of claims 1 to 8 are executed.
Citation Information
Patent Citations
Intelligent output method for land parcel maps
CN101593454A
Map boundary line generation method and device
CN114489401A
Boundary point coordinate table generation method and device, computer equipment and storage medium
CN118823817A