Method and system for making framing graph in map making, electronic equipment and storage medium

By automatically calculating the layout, scale and diagram layers of the segmented pattern, the problems of large workload and repetitive work in the existing technology of segmented pattern layout and scale calculation are solved, and the effect of reducing manual workload and reducing design costs is achieved.

CN119540398AActive Publication Date: 2025-02-28WUHAN ZHITU TECH CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202510098449.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-22
Publication Date
2025-02-28
Estimated Expiration
2045-01-22

AI Technical Summary

Technical Problem

In the existing map drawing, the layout layout and scale calculation of the segmented maps are large and there are many repetitive tasks, which leads to high cost of designing maps and cannot concentrate designers' time on map design.

Method used

By reading the area planar data corresponding to the segmented image, obtaining the minimum external rectangle, determining the layout layout based on the width and height of the rectangle, calculating the scale of the segmented image, and generating a graph profile data layer, which is automatically laid on the segmented image.

Benefits of technology

Automatically calculate the layout, scale and diagram layers of the segmented map, reducing the labor workload during the design and production of the map atlas and reducing the repetitive labor during design.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119540398A_ABST
    Figure CN119540398A_ABST
Patent Text Reader

Abstract

The invention relates to the field of map making, and provides a method and system for making a framing graph in map making, electronic equipment and a storage medium, and the method comprises the steps: reading regional planar data corresponding to the framing graph, and obtaining a minimum enclosing rectangle of the regional planar data; according to the size relationship between the width and the height of the minimum enclosing rectangle, determining the format layout of the framing graph; calculating the scale of the framing graph according to the size of the framing graph and the ratio of the minimum enclosing rectangle to the outer frame; and according to the minimum enclosing rectangle, the size of the framing graph and the scale of the framing graph, generating the size of a map profile data layer, and arranging the map profile data layer on the framing graph according to the format layout of the framing graph. According to the method and the device, the format layout, the scale and the map profile layer of the framing map can be automatically calculated, and compared with the existing manual calculation, the manual workload of format layout, scale determination and map profile line generation in the map set design and manufacturing process is reduced, and the repeated labor in the design process is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of map making, and more specifically, to a method, system, electronic device and storage medium for making a frame map in map making. Background Art

[0002] In cartographic mapping, an atlas is composed of many sub-maps. In the process of map design, how to design the layout of each sub-map and calculate the scale of the sub-map often requires a lot of work, consumes a lot of time, and wastes a lot of manpower. Therefore, if this problem can be solved, the workload of atlas design in the process of atlas production can be greatly reduced. Therefore, it is necessary to develop a new method that automatically calculates the layout of each sub-map, automatically generates the outline of the sub-map, and automatically calculates the scale of the sub-map in batches.

[0003] The existing map atlas layout and scale calculation schemes have the following problems: The existing calculation of the layout and scale of atlas sub-maps is labor-intensive and repetitive, resulting in high cost of atlas design and failure to concentrate the designer's limited time on map design. An atlas generally consists of dozens, hundreds or even thousands of sub-maps. Currently, the calculation of the layout and scale of atlas sub-maps is mostly manual, which is very labor-intensive. The present invention is designed to reduce the workload of atlas designers, automatically batch generate the layout of sub-maps and calculate the scale of each sub-map. Summary of the invention

[0004] The present invention aims to solve the problems in the prior art of large workload in calculating the layout and scale of atlas sub-frames, much repetitive work and high cost of atlas design, and provides a method, system, electronic device and storage medium for producing sub-frames in map making.

[0005] According to a first aspect of the present invention, a method for producing a frame map in map making is provided, comprising: Reading the regional surface data corresponding to the framing image, and obtaining the minimum circumscribed rectangle of the regional surface data; Determining the layout of the divided images according to the size relationship between the width and the height of the minimum circumscribed rectangle, wherein the layout of the divided images includes a horizontal layout and a vertical layout; Calculate the scale of the sub-frame image according to the size of the sub-frame image, the minimum circumscribed rectangle and the outer frame ratio, wherein the outer frame ratio refers to the ratio of the outline of the minimum circumscribed rectangle on the sub-frame image to the entire sub-frame image; The size of the outline data layer is generated according to the minimum circumscribed rectangle, the size of the framed image and the scale of the framed image, and the outline data layer is laid out on the framed image according to the layout of the framed image.

[0006] Based on the above technical solution, the present invention can also make the following improvements.

[0007] Optionally, determining the layout of the framed images according to the size relationship between the width and height of the minimum circumscribed rectangle includes: When the width of the minimum circumscribed rectangle is greater than the height, the layout of the framed images is a horizontal layout; When the width of the minimum circumscribed rectangle is less than the height, the layout of the framed images is a vertical layout.

[0008] Optionally, the calculating the scale of the divided image according to the divided image size, the minimum bounding rectangle and the outer frame ratio value includes: The first scale is calculated according to the width of the minimum bounding rectangle, the width of the frame image and the ratio of the outer frame:

[0009] Calculate the second scale based on the height of the minimum bounding rectangle, the height of the framed image, and the frame ratio:

[0010] The smaller value between the first scale and the second scale is used as the scale of the frame map.

[0011] Optionally, the calculating the scale of the divided image according to the divided image size, the minimum bounding rectangle and the outer frame ratio value further includes: If the calculated scale is not an integer of 100, 1,000 or 10,000, the scale shall be included as an integer of 100, 1,000 or 10,000.

[0012] Optionally, generating the size of the outline data layer according to the minimum bounding rectangle and the scale of the framed image, and laying out the outline data layer on the framed image according to the layout of the framed image, includes: Assume that the width of the frame image is W and the height is H. Based on the scale of the frame image, the width W and height H of the frame image are enlarged to the width W' and height H' corresponding to the actual area. Take the center of the minimum enclosing rectangle as the center point and select the data area with width W' and height H'; According to the scale of the tiling map, the data area selected from the minimum bounding rectangle is reduced to the corresponding outline data layer in the tiling map.

[0013] According to the layout of the sub-frame map, the outline data layer is laid out on the sub-frame map.

[0014] Optionally, the step of laying out the outline data layer on the sub-frame map according to the layout of the sub-frame map further includes: The layout and scale of the tiles are saved in the map data layer.

[0015] According to a second aspect of the present invention, there is provided a system for making a frame map in map making, comprising: An acquisition module is used to read the regional surface data corresponding to the framing image and obtain the minimum circumscribed rectangle of the regional surface data; A determination module, used to determine the layout of the divided image according to the size relationship between the width and height of the minimum circumscribed rectangle, wherein the layout of the divided image includes a horizontal layout and a vertical layout; A calculation module, used to calculate the scale of the sub-frame image according to the size of the sub-frame image, the minimum circumscribed rectangle and the outer frame ratio value, wherein the outer frame ratio value refers to the ratio of the outline of the minimum circumscribed rectangle on the sub-frame image to the entire sub-frame image; The generating module is used to generate the size of the outline data layer according to the minimum circumscribed rectangle, the size of the sub-frame and the scale of the sub-frame, and to lay out the outline data layer on the sub-frame according to the layout of the sub-frame.

[0016] According to a third aspect of the present invention, there is provided an electronic device comprising a memory and a processor, wherein the processor is configured to implement the steps of a method for producing a frame map in map making when executing a computer management program stored in the memory.

[0017] According to a fourth aspect of the present invention, there is provided a computer-readable storage medium on which a computer management program is stored, and when the computer management program is executed by a processor, the steps of a method for producing a frame map in map making are implemented.

[0018] The present invention provides a method, system, electronic device and storage medium for producing a framing map in cartography, which can automatically calculate the layout, scale and outline layer of the framing map. Compared with the existing manual calculation, it reduces the manual workload of layout, scale determination and outline line generation in the atlas design and production process, and reduces the repetitive work in the design. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 A flow chart of a method for making a framing map in map making provided by the present invention; Figure 2 It is an overall flow chart of the method of making sectional maps in cartography; Figure 3 A block diagram of a system for making a framing map in map making provided by the present invention; Figure 4 A schematic diagram of the hardware structure of a possible electronic device provided by the present invention; Figure 5A schematic diagram of the hardware structure of a possible computer-readable storage medium provided by the present invention. DETAILED DESCRIPTION

[0020] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. In addition, the technical features in the various embodiments or single embodiments provided by the present invention can be arbitrarily combined with each other to form a feasible technical solution. This combination is not subject to the constraints of the sequence of steps and / or the structural composition mode, but must be based on the ability of ordinary technicians in this field to achieve. When the combination of technical solutions is contradictory or cannot be achieved, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0021] Figure 1 A flowchart of a method for making a framing map in a map making process provided by the present invention is as follows: Figure 1 and Figure 2 As shown, the method includes: Step 1: read the regional surface data corresponding to the framing image, and obtain the minimum circumscribed rectangle of the regional surface data.

[0022] It is understandable that when reading the sub-map data in the GIS development platform, for example, to make a national county atlas, first prepare the national county surface data. For example, for a city, it is necessary to make a sub-map for each district. First, obtain the surface data of each district from the GIS platform.

[0023] For example, for a certain area, the minimum bounding rectangle of its area surface data is obtained, and the area surface data is enclosed in the minimum bounding rectangle.

[0024] Step 2: determining the layout of the divided images according to the size relationship between the width and height of the minimum circumscribed rectangle, wherein the layout of the divided images includes a horizontal layout and a vertical layout.

[0025] It is understandable that when making a frame map for each region, the layout of each frame map needs to be determined according to the shape of the regional surface data. Specifically, the layout of the frame map is determined according to the width and height of the minimum circumscribed rectangle.

[0026] When the width of the minimum bounding rectangle is greater than the height, the layout of the sub-frame is horizontal; when the width of the minimum bounding rectangle is less than the height, the layout of the sub-frame is vertical.

[0027] Step 3, calculating the scale of the sub-frame image according to the size of the sub-frame image, the minimum bounding rectangle and the outer frame proportion value, wherein the outer frame proportion value refers to the proportion of the outline of the minimum bounding rectangle on the sub-frame image to the entire sub-frame image.

[0028] It is understandable that in map making, such as district and county maps, a district map does not completely occupy the entire sub-frame, and a part of the frame needs to be reserved to display the content of neighboring districts and counties. Therefore, the present invention provides users with the ability to input the percentage of the main district in the map. For example, if a sub-frame map of the main district is to be made, the main district does not occupy the entire sub-frame map, and a certain amount of free space needs to be reserved in the sub-frame map to display the neighborhood. When making a map, the proportion of the main district map in the sub-frame map can be entered, which is called the outer frame proportion value, and the value is entered by the map designer based on experience.

[0029] The scale of the sub-frame is calculated based on the size of the sub-frame, the minimum bounding rectangle of the area data corresponding to the sub-frame, and the value of the outer frame ratio, where: The first scale is calculated according to the width of the minimum bounding rectangle, the width of the frame image and the ratio of the outer frame: ; Calculate the second scale based on the height of the minimum bounding rectangle, the height of the framed image, and the frame ratio: ; The smaller value between the first scale and the second scale is used as the scale of the frame map.

[0030] It should be noted that the scale calculated based on the width of the minimum circumscribed rectangle and the width of the sub-frame may be inconsistent with the scale calculated based on the height of the minimum circumscribed rectangle and the height of the sub-frame. In this case, the smaller value is taken as the scale of the sub-frame.

[0031] If the calculated scale is not an integer of 100, 1,000 or 10,000, the scale is rounded to an integer of 100, 1,000 or 10,000. For example, if the calculated scale is 10014, the calculated scale can be rounded to 10000.

[0032] Step 4: Generate the size of the outline data layer according to the minimum bounding rectangle and the scale of the frame map, and lay out the outline data layer on the frame map according to the layout of the frame map.

[0033] Exemplarily, generating the size of the outline data layer according to the minimum circumscribed rectangle and the scale of the framed image, and laying out the outline data layer on the framed image according to the layout of the framed image, includes: assuming that the width of the framed image is W and the height is H, and based on the scale of the framed image, enlarging the width W and height H of the framed image to the width W' and height H' corresponding to the actual area; taking the center of the minimum circumscribed rectangle as the center point, selecting a data area of ​​width W' and height H'; according to the scale of the framed image, reducing the data area framed in the minimum circumscribed rectangle to the corresponding outline data layer in the framed image; and laying out the outline data layer on the framed image according to the layout of the framed image.

[0034] It is understandable that after calculating the scale, a contour data layer of the minimum circumscribed rectangle on the sub-frame map is generated, and the contour data layer can fill the entire sub-frame map. First, based on the width W and height H of the sub-frame map and the scale of the sub-frame map, the width W and height H of the sub-frame map are enlarged to the width W' and height H' corresponding to the actual area. For example, the width of the sub-frame map is 1m, the height is 1m, and the scale of the sub-frame map is 10000, then the width of the corresponding actual area is 10000m, and the height is also 10000m. With the center of the minimum circumscribed rectangle as the center point, a data area with a width of 10000m and a height of 10000m is selected from the minimum circumscribed rectangle. Then, according to the scale, the data with a width of 10000m and a height of 10000m are scaled to form a contour data layer.

[0035] According to the layout of the sub-frame map, the map outline data layer is laid out on the sub-frame map with the center of the sub-frame map as the center point, and the two attribute information of the map layout and scale are saved in the layer for use in the map making stage.

[0036] See also Figure 3 , provides a map making frame map making system of the present invention, the system comprises an acquisition module 301, a determination module 302, a calculation module 303 and a generation module 304. Among them: An acquisition module 301 is used to read the regional surface data corresponding to the frame image and obtain the minimum circumscribed rectangle of the regional surface data; A determination module 302 is used to determine the layout of the framed image according to the size relationship between the width and height of the minimum circumscribed rectangle, wherein the layout of the framed image includes a horizontal layout and a vertical layout; A calculation module 303 is used to calculate the scale of the sub-frame image according to the size of the sub-frame image, the minimum bounding rectangle and the outer frame ratio, wherein the outer frame ratio refers to the ratio of the outline of the minimum bounding rectangle on the sub-frame image to the entire sub-frame image; The generating module 304 is used to generate an outline data layer according to the minimum bounding rectangle, the size of the frame image and the scale of the frame image, and to lay out the outline data layer on the frame image according to the layout of the frame image.

[0037] It can be understood that the system for making a frame map in map making provided by the present invention corresponds to the method for making a frame map in map making provided by the aforementioned embodiments. The relevant technical features of the system for making a frame map in map making can refer to the relevant technical features of the method for making a frame map in map making, which will not be repeated here.

[0038] See also Figure 4 , Figure 4 Schematic diagram of an electronic device provided by an embodiment of the present invention. Figure 4 As shown, an embodiment of the present invention provides an electronic device 400, including a memory 410, a processor 420, and a computer program 411 stored in the memory 410 and executable on the processor 420. When the processor 420 executes the computer program 411, the following steps are implemented: reading the regional surface data corresponding to the frame image, and obtaining the minimum bounding rectangle of the regional surface data; determining the layout of the frame image according to the size relationship between the width and height of the minimum bounding rectangle, and the layout of the frame image includes a horizontal layout and a vertical layout; calculating the scale of the frame image according to the size of the frame image, the minimum bounding rectangle, and the outer frame proportion value, and the outer frame proportion value refers to the proportion of the outline of the minimum bounding rectangle on the frame image to the entire frame image; generating the size of the outline data layer according to the minimum bounding rectangle, the size of the frame image, and the scale of the frame image, and laying out the outline data layer on the frame image according to the layout of the frame image.

[0039] See also Figure 5 , Figure 5 Schematic diagram of an embodiment of a computer-readable storage medium provided by the present invention. Figure 5 As shown, this embodiment provides a computer-readable storage medium 500, on which a computer program 511 is stored. When the computer program 511 is executed by a processor, the following steps are implemented: reading the regional surface data corresponding to the frame image, and obtaining the minimum bounding rectangle of the regional surface data; determining the layout of the frame image according to the size relationship between the width and height of the minimum bounding rectangle, and the layout of the frame image includes a horizontal layout and a vertical layout; calculating the scale of the frame image according to the size of the frame image, the minimum bounding rectangle and the outer frame proportion value, and the outer frame proportion value refers to the proportion of the outline corresponding to the minimum bounding rectangle on the frame image to the entire frame image; generating the size of the outline data layer according to the minimum bounding rectangle, the size of the frame image and the scale of the frame image, and laying out the outline data layer on the frame image according to the layout of the frame image.

[0040] The embodiment of the present invention provides a method, system, electronic device and storage medium for making a framing map in map making, which reads the regional surface data corresponding to the framing map, obtains the minimum bounding rectangle of the regional surface data; determines the layout of the framing map according to the size relationship between the width and height of the minimum bounding rectangle; calculates the scale of the framing map according to the size of the framing map, the minimum bounding rectangle and the proportion of the outer frame; generates the size of the outline data layer according to the minimum bounding rectangle and the scale of the framing map, and lays out the outline data layer on the framing map according to the layout of the framing map. Through the present invention, the layout, scale and outline layer of the framing map can be automatically calculated, which reduces the manual workload of layout, scale determination and outline line generation in the atlas design and production process compared to the existing manual calculation, and reduces the repeated work during design.

[0041] It should be noted that in the above embodiments, the description of each embodiment has its own emphasis, and for parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0042] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0043] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded computer, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0044] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1A function specified in one or more boxes.

[0045] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0046] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0047] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A method for producing a framing map in map making, characterized in that: include: Reading the regional surface data corresponding to the framing image, and obtaining the minimum circumscribed rectangle of the regional surface data; Determining the layout of the divided images according to the size relationship between the width and the height of the minimum circumscribed rectangle, wherein the layout of the divided images includes a horizontal layout and a vertical layout; Calculate the scale of the sub-frame image according to the size of the sub-frame image, the minimum circumscribed rectangle and the outer frame ratio, wherein the outer frame ratio refers to the ratio of the outline of the minimum circumscribed rectangle on the sub-frame image to the entire sub-frame image; The size of the outline data layer is generated according to the minimum circumscribed rectangle, the size of the framed image and the scale of the framed image, and the outline data layer is laid out on the framed image according to the layout of the framed image.

2. The method for making a framing map in cartography according to claim 1, characterized in that: Determining the layout of the divided images according to the size relationship between the width and the height of the minimum circumscribed rectangle includes: When the width of the minimum circumscribed rectangle is greater than the height, the layout of the framed images is a horizontal layout; When the width of the minimum circumscribed rectangle is less than the height, the layout of the framed images is a vertical layout.

3. The method for making a framing map in cartography according to claim 1, characterized in that: The calculating the scale of the divided image according to the divided image size, the minimum bounding rectangle and the outer frame proportion value comprises: The first scale is calculated according to the width of the minimum bounding rectangle, the width of the frame image and the value of the outer frame ratio: ; Calculate the second scale based on the height of the minimum bounding rectangle, the height of the framed image, and the frame ratio: ; The smaller value between the first scale and the second scale is used as the scale of the frame map.

4. The method for making a framing map in cartography according to claim 3, characterized in that: The step of calculating the scale of the divided image according to the size of the divided image, the minimum bounding rectangle and the proportion of the outer frame also includes: If the scale of the calculated frame map is not an integer of 100, 1,000 or 10,000, the scale shall be included as an integer of 100, 1,000 or 10,000.

5. The method for making a framing map in cartography according to claim 1, characterized in that: The step of generating the size of the outline data layer according to the minimum circumscribed rectangle and the size of the sub-frame and the scale of the sub-frame, and laying out the outline data layer on the sub-frame according to the layout of the sub-frame, comprises: Assume that the width of the frame image is W and the height is H. Based on the scale of the frame image, the width W and height H of the frame image are enlarged to the width W' and height H' corresponding to the actual area. Take the center of the minimum enclosing rectangle as the center point and select the data area with width W' and height H'; According to the scale of the framing map, the data area selected from the minimum bounding rectangle is reduced to the corresponding outline data layer in the framing map; According to the layout of the sub-frame map, the outline data layer is laid out on the sub-frame map.

6. The method for making a framing map in cartography according to claim 1 or 5, characterized in that: The step of laying out the outline data layer on the sub-frame map according to the layout of the sub-frame map further includes: The layout and scale of the tiles are saved in the map data layer.

7. A system for making a framing map in cartography, characterized in that: include: An acquisition module is used to read the regional surface data corresponding to the framing image and obtain the minimum circumscribed rectangle of the regional surface data; A determination module, used to determine the layout of the divided image according to the size relationship between the width and height of the minimum circumscribed rectangle, wherein the layout of the divided image includes a horizontal layout and a vertical layout; A calculation module, used to calculate the scale of the sub-frame image according to the size of the sub-frame image, the minimum circumscribed rectangle and the outer frame ratio value, wherein the outer frame ratio value refers to the ratio of the outline of the minimum circumscribed rectangle on the sub-frame image to the entire sub-frame image; The generating module is used to generate the size of the outline data layer according to the minimum circumscribed rectangle, the size of the sub-frame and the scale of the sub-frame, and to lay out the outline data layer on the sub-frame according to the layout of the sub-frame.

8. An electronic device, characterized in that: The invention comprises a memory and a processor, wherein the processor is used to implement the steps when executing the computer management program stored in the memory.

9. A computer-readable storage medium, characterized in that: A computer management program is stored thereon, and when the computer management program is executed by the processor, the steps of the method for making a framing map in map making are implemented.

Citation Information

Patent Citations

  • Farmland tenure publicity map automatically generating method

    CN105608127A

  • AutoCAD layout-based automatic framing method for survey delimited graphs

    CN110083875A

  • Distributed slicing method and distributed slicing device for framing images

    CN115689886A

  • Large-scale topographic map surveying and mapping method and system based on oblique photography

    CN117387580A

  • Map image processing device and control method for the same

    JP2012185399A