Historical map editing method and device, storage medium, and computer equipment

By generating and displaying vector data layers of historical maps, the problem of low efficiency in historical map editing in the existing technology is solved, real-time display of real-time cutting and cutting effects is realized, and the map editing experience is improved.

CN112907689BActive Publication Date: 2025-01-10BEIJING PERFECT KNOWLEDGE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110110086.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-06
Publication Date
2025-01-10
Estimated Expiration
2040-11-06

AI Technical Summary

Technical Problem

The existing technology cannot realize the real-time cutting and real-time display of historical maps, and the editing efficiency is low and the experience is poor.

Method used

By responding to the plot cutting instruction, obtaining the plot and cutting lines to be cut, generating the second vector data based on the first vector data, determining the vector data layer, and placing it on other layers of the target history map, real-time implementation Display of cutting and cutting effects.

Benefits of technology

Improve map editing efficiency, improve map editing experience, and realize the cutting of any shape of the plot.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112907689B_ABST
    Figure CN112907689B_ABST
Patent Text Reader

Abstract

The present application discloses a method and device for editing a historical map, a storage medium, and a computer device. The method includes: in response to a plot cutting instruction for a target historical map, obtaining the positional relationship between a plot cutting tool and each plot in the target historical map, and determining the plot to be cut and the cutting line corresponding to the target historical map based on the positional relationship, wherein each plot in the target historical map is divided based on historical regime information; determining the second vector data corresponding to the plot to be cut according to the cutting line and the first vector data corresponding to the plot to be cut, wherein the second vector data is the vector data corresponding to the plot to be cut after being cut according to the cutting line; determining the vector data layer of the target historical map based on the second vector data, wherein the vector data layer is located above the layer corresponding to the target historical map. The user's editing demands for historical maps are met.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This invention is a divisional application of the Chinese patent application submitted to the China Patent Office on November 6, 2020, with application number 202011232051.9 and titled "Method and device for editing historical maps, storage medium, and computer equipment." Technical Field

[0002] The present application relates to the field of computer technology, and in particular to a method and device for editing a historical map, a storage medium, and a computer device. Background Art

[0003] In the prior art, the editing of historical maps is achieved by editing the map tiles after the map plots are converted. In addition, the editing and modification of historical maps needs to be performed offline. After the map vector data is edited and converted into tile data, the historical map is updated to display the cutting effect. The prior art cannot achieve real-time cutting of map plots and real-time display of cutting effects, resulting in low editing efficiency and poor experience. Summary of the invention

[0004] In view of this, the present application provides a method and apparatus for editing historical maps, a storage medium, and a computer device, which improves the efficiency of map editing and enhances the map editing experience.

[0005] According to one aspect of the present application, a method for editing a historical map is provided, comprising:

[0006] In response to a plot cutting instruction corresponding to a target historical map, obtaining a plot to be cut and a cutting line corresponding to the target historical map;

[0007] Determine second vector data corresponding to the land parcel to be cut according to the cutting line and the first vector data corresponding to the land parcel to be cut, wherein the second vector data is vector data corresponding to the land parcel to be cut after being cut along the cutting line;

[0008] Based on the second vector data, a vector data layer of the target historical map is determined, wherein the vector data layer is located above a layer corresponding to the target historical map.

[0009] Optionally, in response to a land parcel cutting instruction corresponding to a target historical map, obtaining a land parcel to be cut and a cutting line corresponding to the target historical map specifically includes:

[0010] In response to the land parcel cutting instruction, outputting a land parcel cutting tool, wherein the land parcel cutting tool comprises a polygonal box;

[0011] The selected position of the polygonal box is received, and when any edge in the polygonal box intersects with any plot of the target historical map, and other edges of the polygonal box are outside the scope of any plot, the cutting line is determined according to the position of any edge and any plot is determined as the plot to be cut.

[0012] Optionally, determining the second vector data corresponding to the land parcel to be cut according to the cutting line and the first vector data corresponding to the land parcel to be cut specifically includes:

[0013] Acquire the first vector data and a first plot identifier corresponding to the first vector data;

[0014] The second vector data are determined according to the cutting line and the first vector data, and second plot identifiers corresponding to the second vector data are generated according to the first plot identifier, wherein the second plot identifier is associated with the first plot identifier.

[0015] Optionally, after determining the second vector data corresponding to the land parcel to be cut according to the cutting line and the first vector data corresponding to the land parcel to be cut, the method further includes:

[0016] In response to a cutting reset instruction corresponding to the land parcel to be cut, the second vector data is deleted, and the land parcel to be cut and the cutting line corresponding to the target historical map are reacquired.

[0017] Optionally, the second vector data is used to realize re-cutting of the land block to be cut.

[0018] Optionally, after determining the vector data layer of the target historical map based on the second vector data, the method further includes:

[0019] Send a target historical map update instruction to a client corresponding to a target historical map platform, wherein the target historical map update instruction includes the vector data layer, and the target historical map update instruction is used to control the client to go offline from the target historical map platform, and output a new target historical map based on the vector data layer when the client goes online again.

[0020] Optionally, after determining the vector data layer of the target historical map based on the second vector data, the method further includes:

[0021] Detecting whether all vector data contained in the vector data layer exceeds a preset threshold;

[0022] If it exceeds the preset threshold, the target tile data corresponding to all the vector data and the second plot identifier corresponding to each of the all the vector data are obtained, and based on the all the vector data and the second plot identifier, the target tile data is updated so that the updated target tile data matches the all the vector data, and the tile identifier corresponding to the updated target tile data matches the plot identifier.

[0023] Optionally, after updating the target tile data, the method further includes:

[0024] Based on the second plot identifier corresponding to the second vector data, the plot resource information of the associated plot corresponding to the second plot identifier is queried, and the plot resource information of the associated plot is determined as the plot resource information corresponding to the second plot identifier, wherein the plot identifier of the associated plot is associated with the second plot identifier.

[0025] Optionally, after updating the target tile data, the method further includes:

[0026] Clear the vector data layer corresponding to the target historical map.

[0027] According to another aspect of the present application, there is provided a device for editing a historical map, comprising:

[0028] A cutting instruction response module, for responding to a plot cutting instruction of a target historical map, obtaining a positional relationship between a plot cutting tool and each plot in the target historical map, and determining the plot to be cut and a cutting line corresponding to the target historical map based on the positional relationship, wherein each plot in the target historical map is divided based on historical regime information;

[0029] A vector data determination module, configured to determine second vector data corresponding to the land parcel to be cut according to the cutting line and the first vector data corresponding to the land parcel to be cut, wherein the second vector data is vector data corresponding to the land parcel to be cut after being cut along the cutting line;

[0030] The vector layer determination module is used to determine the vector data layer of the target historical map based on the second vector data, wherein the vector data layer is located above the layer corresponding to the target historical map.

[0031] Optionally, the cutting instruction response module specifically includes:

[0032] A cutting tool output unit, configured to output a land parcel cutting tool in response to the land parcel cutting instruction, wherein the land parcel cutting tool is a polygonal frame whose shape can be changed;

[0033] A cutting data acquisition unit is used to receive the selected position of the polygonal box, and when any edge in the polygonal box intersects with any plot of the target historical map and other edges of the polygonal box are outside the scope of any plot, determine the cutting line according to the position of any edge and determine any plot as the plot to be cut.

[0034] Optionally, the vector data determination module specifically includes:

[0035] A first identification acquisition unit, used to acquire the first vector data and a first land parcel identification corresponding to the first vector data;

[0036] The second identifier generating unit is used to determine the second vector data according to the cutting line and the first vector data, and generate the second plot identifiers corresponding to the second vector data according to the first plot identifier, wherein the second plot identifier is associated with the first plot identifier.

[0037] Optionally, the device further comprises:

[0038] A cutting data acquisition module is used to determine the second vector data corresponding to the to-be-cut plot based on the cutting line and the first vector data corresponding to the to-be-cut plot, and then, in response to a cutting reset instruction corresponding to the to-be-cut plot, delete the second vector data and re-acquire the to-be-cut plot and the cutting line corresponding to the target historical map.

[0039] Optionally, the second vector data is used to realize re-cutting of the land block to be cut.

[0040] Optionally, the device further comprises:

[0041] An update instruction sending module is used to send a target historical map update instruction to a client corresponding to a target historical map platform after determining the vector data layer of the target historical map based on the second vector data, wherein the target historical map update instruction includes the vector data layer, and the target historical map update instruction is used to control the client to go offline from the target historical map platform, and output a new target historical map based on the vector data layer when the client goes online again.

[0042] Optionally, the device further comprises:

[0043] A detection module, configured to detect whether all vector data included in the vector data layer exceeds a preset threshold after determining the vector data layer of the target historical map based on the second vector data;

[0044] A tile data updating module is used to obtain the target tile data corresponding to all the vector data and the second plot identifier corresponding to each of the all the vector data if the preset threshold is exceeded, and update the target tile data based on the all the vector data and the second plot identifier so that the updated target tile data matches the all the vector data, and the tile identifier corresponding to the updated target tile data matches the plot identifier.

[0045] Optionally, the device further comprises:

[0046] A plot resource inheritance module is used to query the plot resource information of the associated plot corresponding to the second plot identifier based on the second plot identifier corresponding to the second vector data after updating the target tile data, and determine the plot resource information of the associated plot as the plot resource information corresponding to the second plot identifier, wherein the plot identifier of the associated plot is associated with the second plot identifier.

[0047] Optionally, the device further comprises:

[0048] The vector layer clearing module is used to clear the vector data layer corresponding to the target historical map after the target tile data is updated.

[0049] According to another aspect of the present application, a storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the above-mentioned method for editing the historical map is implemented.

[0050] According to another aspect of the present application, a computer device is provided, including a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, wherein the processor implements the above-mentioned method for editing the historical map when executing the program.

[0051] By means of the above technical scheme, the present application provides a method and device for editing a historical map, a storage medium, and a computer device. In response to a plot cutting instruction for any plot in a target historical map, the plot to be cut and the cutting line of the plot to be cut are determined according to the positional relationship between the plot cutting tool selected by the user and each plot, and further, according to the first vector data corresponding to the plot to be cut and the cutting line, the second vector data corresponding to the new plot generated by cutting the plot to be cut is generated, thereby determining the vector data layer of the target historical map based on the second vector data, and the vector data layer is located above other layers of the target historical map. Compared with the method of editing the target historical map based on tile plots in the prior art, the embodiment of the present application uses the vector data generated by cutting the plot to be cut to determine the vector data layer, and by placing the vector data layer above other layers, the real-time cutting of the target historical map and the real-time display of the cutting effect are realized, thereby improving the map editing efficiency, and the plot cutting tool can be used to realize the cutting of the plot in any shape, thereby improving the map editing experience.

[0052] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0054] Figure 1 A schematic diagram of a process of editing a historical map provided in an embodiment of the present application is shown;

[0055] Figure 2 A schematic diagram showing a flow chart of another method for editing a historical map provided in an embodiment of the present application;

[0056] Figure 3 A schematic diagram of a plot cutting example provided in an embodiment of the present application is shown;

[0057] Figure 4 A schematic diagram of the structure of each layer in the land plot cutting process provided by an embodiment of the present application is shown;

[0058] Figure 5 A schematic diagram of the structure of a historical map editing device provided in an embodiment of the present application is shown;

[0059] Figure 6A schematic structural diagram of another historical map editing device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0060] The present application will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that the embodiments and features in the embodiments of the present application can be combined with each other without conflict.

[0061] In this embodiment, a method for editing a historical map is provided. Figure 1 As shown, the method includes:

[0062] Step 101, in response to a plot cutting instruction for a target historical map, obtaining a positional relationship between a plot cutting tool and each plot in the target historical map, and determining a plot to be cut and a cutting line corresponding to the target historical map based on the positional relationship, wherein each plot in the target historical map is divided based on historical regime information;

[0063] The map data processing method provided in the embodiment of the present application can be used to enable users to edit the target historical map, thereby meeting the user's editing demands for the target historical map, wherein the target historical map is specifically an electronic map drawn by a computer or an electronic map obtained by scanning a paper map. For example, the electronic map is used to express the historical information corresponding to different historical years, which may specifically include historical regime information. The historical information in the electronic map is described in the form of different plots divided based on the electronic map. Each plot may correspond to different historical information. Specifically, plot 1 can be used to describe the territory of a country in 1200. The electronic map includes one or more plots. In addition, the electronic map is composed of at least one layer. In this embodiment, the layer corresponding to the electronic map at least includes a tile layer, and the tile layer includes the plot vector data corresponding to each of the multiple plots. The plot vector data corresponding to the tile layer is used to describe the boundary line corresponding to the plot, thereby reflecting the geographical scope of the plot. In addition, the tile layer may also include the plot historical information corresponding to each of the multiple plots, which is used to describe the historical information corresponding to the plot. Further, in order to meet the user's editing demands for the electronic map, the embodiment of the present application may also include a vector layer, that is, a vector data layer.

[0064] In this embodiment, the user can edit the target historical map by submitting a plot cutting instruction. In response to the plot cutting instruction, the plot to be cut indicated by the user, i.e., the plot to be cut, is obtained, as is the cutting method of the plot to be cut indicated by the user, i.e., the cutting line. The cutting line is used to describe the cutting position of the plot to be cut. In a specific application scenario, the user can implement plot cutting based on a plot cutting tool such as a custom cutting box. The user selects the custom cutting box and places the custom cutting box at a position corresponding to the target historical map. The plot to be cut selected by the user and the cutting line describing the user's specific cutting intention are determined by analyzing the positional relationship between the plot cutting tool and the plots in the target historical map. The specific form of the plot cutting tool is not limited here. For example, the plot completely covered by the plot cutting tool is the plot to be cut, and the line manually input by the user on the plot to be cut is the cutting line. For another example, the plot intersecting with the plot cutting tool is the plot to be cut, and the intersection line between the tool to be cut and the plot to be cut is the cutting line. It is worth noting that a cutting line corresponding to a plot to be cut may include one or more cutting lines. A cutting line can divide the corresponding plot to be cut into two plots. The number of plots that can be cut by multiple cutting lines should be determined based on the actual positions of the cutting lines. For the convenience of description, the embodiment of the present application is illustrated by an example of a scenario in which a plot to be cut corresponds to one cutting line. On this basis, technical personnel in this field can know the processing method corresponding to the scenario in which a plot to be cut corresponds to multiple cutting lines according to the actual positions of the cutting lines. The situation in which a plot to be cut corresponds to multiple cutting lines is also within the protection scope of the present application.

[0065] Step 102, determining second vector data corresponding to the land parcel to be cut according to the cutting line and the first vector data corresponding to the land parcel to be cut, wherein the second vector data is vector data corresponding to the land parcel to be cut after being cut along the cutting line;

[0066] In this embodiment, after obtaining the land parcel to be cut and the cutting line corresponding to the land parcel to be cut, the first vector data corresponding to the land parcel to be cut is obtained, wherein the first vector data is the original vector data corresponding to the land parcel to be cut, that is, the vector data used to describe the geographical scope of the land parcel before the actual cutting action is performed on the land parcel to be cut. Further, the second vector data corresponding to the land parcel to be cut is determined based on the cutting line and the first vector data, wherein the second vector data is the vector data corresponding to the new land parcel generated after the cutting if the land parcel to be cut is cut according to the cutting line, that is, the second vector data is used to describe the geographical scope of the new land parcel formed after the actual cutting action is performed. Since the land parcel to be cut can be cut into two pieces by cutting, the second vector data corresponding to one land parcel to be cut includes two. One land parcel to be cut can also be cut into multiple pieces.

[0067] Step 103: Determine a vector data layer of the target historical map based on the second vector data, wherein the vector data layer is located above a layer corresponding to the target historical map. The layer may preferably be a tile layer of the map.

[0068] In this embodiment, after determining the second vector data corresponding to the plot to be cut, the second vector data is added to the vector data layer of the target historical map. Since the vector data layer is placed above other layers in the target historical map, when the target historical map is output and displayed, the cutting effect of the plot to be cut can be displayed for the plot to be cut, thereby satisfying the user's demand for cutting and editing of the electronic map. Among them, the vector data layer can be above other layers in the target historical map itself, or it can be placed on other layers when a plot in the target historical map is cut. In addition, the vector data layer of the target historical map can be contained in the target historical map itself, or it can be temporarily generated in response to a plot cutting instruction. In order to reduce the amount of data in the target historical map, the embodiment of the present application preferably generates a vector data layer temporarily in response to a plot cutting instruction.

[0069] By applying the technical solution of this embodiment, in response to a plot cutting instruction for any plot in the target historical map, the plot to be cut and the cutting line of the plot to be cut are determined according to the positional relationship between the plot cutting tool selected by the user and each plot, and further, according to the first vector data corresponding to the plot to be cut and the cutting line, the second vector data corresponding to the new plot generated by cutting the plot to be cut is generated, thereby determining the vector data layer of the target historical map based on the second vector data, and the vector data layer is located above other layers of the target historical map. Compared with the method of editing the target historical map based on tile plots in the prior art, the embodiment of the present application uses the vector data generated by cutting the plot to be cut to determine the vector data layer, and by placing the vector data layer above other layers, it realizes real-time cutting of the target historical map and real-time display of the cutting effect, improves the map editing efficiency, and realizes the cutting of plots in any shape through the plot cutting tool, thereby improving the map editing experience.

[0070] Furthermore, as a refinement and extension of the specific implementation of the above embodiment, in order to fully illustrate the specific implementation process of this embodiment, another method for editing a historical map is provided, such as Figure 2 As shown, the method includes:

[0071] Step 201, in response to a land parcel cutting instruction, outputting a land parcel cutting tool, wherein the land parcel cutting tool is a polygonal frame whose shape can be changed;

[0072] In an embodiment of the present application, the plot cutting tool may include polygonal boxes of various shapes. In response to a plot cutting instruction, the plot cutting tool is provided for the user to select the desired polygonal box therefrom, thereby using the polygonal box to select the plot to be cut and the cutting line by moving the position of the polygonal box and scaling the polygonal box, stretching a vertex of the polygon, and other operations.

[0073] Step 202, receiving the selected position of the polygonal box, and when any edge in the polygonal box intersects with any plot of the target historical map, and other edges of the polygonal box are outside the range of any plot, determining a cutting line according to the position of any edge and determining any plot as a plot to be cut;

[0074] In step 202, the user's operation on the polygonal box is received, and the selected position of the polygonal box is obtained, such as Figure 3 The figure shows a schematic diagram of a plot cutting example. The edge line of the cutting surface corresponding to the area where the plot to be cut intersects with the cutting surface is the cutting line. The user can first select a single or multiple plots to be cut, and draw the cutting surface based on the selected area by moving the polygon selection tool. When drawing the cutting surface, the cutting line area intersects with the plot to be cut, and other edge lines in the polygon box that are not cutting lines must exceed the range of the plot surface to ensure that no abnormal cutting occurs, thereby improving the accuracy of cutting.

[0075] Step 203, obtaining first vector data and a first land parcel identifier corresponding to the first vector data;

[0076] Step 204, determining second vector data according to the cutting line and the first vector data, and generating second plot identifiers corresponding to the second vector data according to the first plot identifiers, wherein the second plot identifiers are associated with the first plot identifiers;

[0077] In step 203 and step 204, first vector data corresponding to the plot to be cut selected by the user and a corresponding first plot identifier are obtained. The first plot identifier may be a digital number, a string number, or the like that can be used to distinguish the plot from other plots. Further, second vector data is determined based on the first vector data and the cutting line, and a second plot identifier corresponding to the second vector data is generated based on the first plot identifier, wherein the second plot identifier is generated based on the first plot identifier, that is, the plot after cutting retains an association relationship with the first plot identifier according to an identifier generation rule. For example, if the first plot identifier is A, the second plot identifier may be A-1 or A-2, so that the new plot generated by cutting can inherit the plot resource information based on the identifier association relationship with the original plot.

[0078] In the embodiment of the present application, specifically, the second vector data is used to realize the re-cutting of the land parcel to be cut.

[0079] In the above embodiment, after the user has cut a certain plot of land to be cut, if it is necessary to cut the plot again, the cutting can be performed directly based on the second vector data corresponding to the plot. For example, after plot A is cut into two pieces, A-1 and A-2, plots A-1 and A-2 can be cut further. Since the plot tile data corresponding to the tile data layer of the target historical map still matches plot A, when plots A-1 and A-2 are cut, the cutting is performed directly based on the vector data layer corresponding to plots A-1 and A-2, that is, the cutting of plots A-1 and A-2 is achieved based on the second vector data. The second vector data is used to achieve the re-cutting of the plot to be cut, and there is no need to convert the second vector data corresponding to the vector data layer into tile data, so that the re-cutting of the plot to be cut can be achieved, thereby improving the map editing efficiency. It should be noted that in order to facilitate the inheritance of plot resource data, the plot identifier corresponding to the new plot data obtained by cutting based on the second vector data must also retain the association with the first plot identifier. For example, the plot identifier of the new plot obtained by cutting plot A-1 can be A-3, A-4 or A-1-1, A-1-2, etc.

[0080] Step 205, in response to the cutting reset instruction corresponding to the land parcel to be cut, deleting the second vector data, and reacquiring the land parcel to be cut and the cutting line corresponding to the target historical map;

[0081] In step 205, if the user is not satisfied with the selected position of the polygonal box, the land parcel can be re-cut by issuing a cutting reset instruction. In response to the cutting reset instruction corresponding to the land parcel to be cut, the second vector data and the second land parcel identifier obtained based on the original land parcel to be cut and the cutting line should be deleted, and the user's edited data of the target historical map should continue to be obtained, that is, the land parcel to be cut and the cutting line corresponding to the target historical map are re-obtained. The user can re-determine the land parcel to be cut and the cutting line by re-selecting the polygonal box, re-determining the polygonal box, etc.

[0082] Step 206, determining a vector data layer of the target historical map based on the second vector data, wherein the vector data layer is located above a layer corresponding to the target historical map;

[0083] In step 206, after determining the second vector data, the vector data layer of the target historical map is determined based on the second vector data corresponding to the new plot generated by cutting the plot to be cut, and the vector data layer is placed on the top layer of all layers of the target historical map so that the target historical map can display the latest cutting effect.

[0084] Step 207, sending a target historical map update instruction to a client corresponding to the target historical map platform, wherein the target historical map update instruction includes a vector data layer, and the target historical map update instruction is used to control the client to go offline from the target historical map platform, and output a new target historical map based on the vector data layer when the client goes online again;

[0085] In step 207, after the target historical map is cut into plots, in order to display the editing results on the client in a timely manner, a target historical map update instruction can be generated and sent to the client corresponding to the target historical map platform. The target historical map update instruction can be generated based on the vector data layer. The instruction carries the vector data layer. After receiving the target historical map update instruction, in order to maintain the synchronization of the target historical map, the client can force the platform user to go offline and update the target historical map according to the vector data layer, so that the latest target historical map can be displayed when the client user goes online again.

[0086] Step 208, detecting whether all vector data included in the vector data layer exceeds a preset threshold;

[0087] Step 209, if it exceeds the preset threshold, the target tile data corresponding to all the vector data and the second plot identifiers corresponding to all the vector data are obtained, and based on all the vector data and the second plot identifiers, the target tile data is updated so that the updated target tile data matches all the vector data, and the tile identifier corresponding to the updated target tile data matches the plot identifier;

[0088] Step 210, clearing the vector data layer corresponding to the target historical map.

[0089] In step 209 to step 210, in order to prevent the continuous increase of the cut vector data from affecting the performance of the editor, the editing background can detect the number of cut plots at a fixed time interval. If the number exceeds the threshold, the vector conversion tile processing flow is started. After the tile conversion is completed, the temporarily generated vector layer is deleted, and the plot tiles are updated to the cut data. Figure 4 A structural schematic diagram of each layer in the process of plot cutting is shown. Before plot A is cut, the data of the tile layer of plot A is the data corresponding to plot A. After plot A is cut, the data of the tile layer of plot A remains unchanged. The vector layer data is the corresponding vector data of plot A-1 and plot A-2 generated after cutting. When the number of plots contained in the vector layer of the target historical map exceeds a preset threshold, the vector plots of the vector layer are converted into tile plots of the tile layer. After the vector is converted to tile, the data of the tile layer is the corresponding data of plot A-1 and plot A-2, and the vector layer is cleared.

[0090] In an embodiment of the present application, specifically, it also includes: after updating the target tile data, based on the second plot identifier corresponding to the second vector data, querying the plot resource information of the associated plot corresponding to the second plot identifier, and determining the plot resource information of the associated plot as the plot resource information corresponding to the second plot identifier, wherein the plot identifier of the associated plot is associated with the second plot identifier.

[0091] In the above embodiment, in order to enable the cut plot to express plot resource information that matches the original plot to be cut, in an embodiment of the present application, the plot resource information of the associated plot can be obtained according to the plot identifier of the new plot obtained by cutting, that is, based on the second plot identifier corresponding to the second vector data, the associated plot associated with the second plot identifier is queried, and the plot resource information of the associated plot is obtained, and the plot resource information of the associated plot is determined as the plot resource information of the new plot represented by the second plot identifier, thereby realizing the association and inheritance of the plot resource information, so that the new plot obtained by cutting can express the plot resource information consistent with the original plot, and the plot resource information can specifically be the historical information corresponding to the plot, such as the age information of the plot and the country to which it belongs.

[0092] It should be noted that in order to further improve the editability of the electronic map, the land parcel resource information corresponding to the second land parcel identifier can also be edited. For example, if land parcel A belongs to country A, after land parcel A is cut into land parcel A-1 and land parcel A-2, the country to which land parcel A-1 belongs remains unchanged, and the country of land parcel A-2 is changed to country B.

[0093] Further, as Figure 1 The specific implementation of the method, the embodiment of the present application provides a device for editing a historical map, such as Figure 5 As shown, the device comprises:

[0094] The cutting instruction response module 51 is used to respond to the plot cutting instruction of the target historical map, obtain the position relationship between the plot cutting tool and each plot in the target historical map, and determine the plot to be cut and the cutting line corresponding to the target historical map based on the position relationship, wherein each plot in the target historical map is divided based on the historical regime information;

[0095] A vector data determination module 52 is used to determine second vector data corresponding to the land parcel to be cut according to the cutting line and the first vector data corresponding to the land parcel to be cut, wherein the second vector data is vector data corresponding to the land parcel to be cut after being cut along the cutting line;

[0096] The vector layer determination module 53 is used to determine the vector data layer of the target historical map based on the second vector data, wherein the vector data layer is located above the layer corresponding to the target historical map.

[0097] In specific application scenarios, such as Figure 6 As shown, optionally, the cutting instruction response module 51 specifically includes:

[0098] A cutting tool output unit 511 is used to output a land parcel cutting tool in response to a land parcel cutting instruction, wherein the land parcel cutting tool is a polygonal frame whose shape can be changed;

[0099] The cutting data acquisition unit 512 is used to receive the selected position of the polygonal box, and when any edge in the polygonal box intersects with any plot of the target historical map and the other edges of the polygonal box are outside the range of any plot, determine the cutting line according to the position of any edge and determine any plot as a plot to be cut.

[0100] In specific application scenarios, such as Figure 6 As shown, optionally, the vector data determination module 52 specifically includes:

[0101] A first identification acquisition unit 521 is used to acquire first vector data and a first land parcel identification corresponding to the first vector data;

[0102] The second identifier generating unit 522 is used to determine the second vector data according to the cutting line and the first vector data, and generate the second plot identifiers corresponding to the second vector data according to the first plot identifiers, wherein the second plot identifiers are associated with the first plot identifiers.

[0103] In specific application scenarios, such as Figure 6 As shown, optionally, the device also includes:

[0104] The cutting data acquisition module 54 is used to determine the second vector data corresponding to the plot to be cut based on the cutting line and the first vector data corresponding to the plot to be cut, and then respond to the cutting reset instruction corresponding to the plot to be cut, delete the second vector data, and re-acquire the plot to be cut and the cutting line corresponding to the target historical map.

[0105] Optionally, the second vector data is used to realize re-cutting of the land parcel to be cut.

[0106] In specific application scenarios, such as Figure 6 As shown, optionally, the device also includes:

[0107] The update instruction sending module 55 is used to send the target historical map update instruction to the client corresponding to the target historical map platform after determining the vector data layer of the target historical map based on the second vector data, wherein the target historical map update instruction includes the vector data layer, and the target historical map update instruction is used to control the client to go offline from the target historical map platform, and output a new target historical map based on the vector data layer when the client goes online again.

[0108] In specific application scenarios, such as Figure 6 As shown, optionally, the device also includes:

[0109] A detection module 56, configured to detect whether all vector data included in the vector data layer exceeds a preset threshold value after determining the vector data layer of the target historical map based on the second vector data;

[0110] The tile data update module 57 is used to obtain the target tile data corresponding to all the vector data and the second plot identifier corresponding to all the vector data if a preset threshold is exceeded, and update the target tile data based on all the vector data and the second plot identifier so that the updated target tile data matches all the vector data, and the tile identifier corresponding to the updated target tile data matches the plot identifier.

[0111] In specific application scenarios, such as Figure 6 As shown, optionally, the device further includes:

[0112] The plot resource inheritance module 58 is used to query the plot resource information of the associated plot corresponding to the second plot identifier based on the second plot identifier corresponding to the second vector data after updating the target tile data, and determine the plot resource information of the associated plot as the plot resource information corresponding to the second plot identifier, wherein the plot identifier of the associated plot is associated with the second plot identifier.

[0113] In specific application scenarios, such as Figure 6 As shown, optionally, the device also includes:

[0114] The vector layer clearing module 59 is used to clear the vector data layer corresponding to the target historical map after updating the target tile data.

[0115] It should be noted that for other corresponding descriptions of the functional units involved in the historical map editing device provided in the embodiment of the present application, reference can be made to Figures 1 to 4 The corresponding description in the method will not be repeated here.

[0116] Based on the above Figures 1 to 4 The method shown in the embodiment of the present application is accordingly provided with a storage medium on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned Figures 1 to 4 How to edit the historical map shown.

[0117] Based on this understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each implementation scenario of the present application.

[0118] Based on the above Figures 1 to 4 The method shown, and Figure 5 to Figure 6 In order to achieve the above-mentioned purpose, the embodiment of the present application further provides a computer device, which can be a personal computer, a server, a network device, etc. The computer device includes a storage medium and a processor; the storage medium is used to store a computer program; the processor is used to execute the computer program to achieve the above-mentioned Figures 1 to 4 How to edit the historical map shown.

[0119] Optionally, the computer device may further include a user interface, a network interface, a camera, a radio frequency (RF) circuit, a sensor, an audio circuit, a WI-FI module, etc. The user interface may include a display, an input unit such as a keyboard, etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (such as a Bluetooth interface, a WI-FI interface), etc.

[0120] Those skilled in the art will appreciate that the computer device structure provided in this embodiment does not limit the computer device, and may include more or fewer components, or a combination of certain components, or different component arrangements.

[0121] The storage medium may also include an operating system and a network communication module. The operating system is a program that manages and saves the hardware and software resources of the computer device, and supports the operation of information processing programs and other software and / or programs. The network communication module is used to realize communication between the components inside the storage medium, and communication with other hardware and software in the physical device.

[0122] Through the description of the above implementation methods, those skilled in the art can clearly understand that the present application can be implemented by means of software plus necessary general hardware platforms, or by means of hardware, in response to a plot cutting instruction for any plot in the target historical map, the plot to be cut and the cutting line of the plot to be cut are determined according to the positional relationship between the plot cutting tool selected by the user and each plot, and further, according to the first vector data corresponding to the plot to be cut and the cutting line, the second vector data corresponding to the new plot generated by cutting the plot to be cut is generated, thereby determining the vector data layer of the target historical map based on the second vector data, and the vector data layer is located above other layers of the target historical map. Compared with the method of editing the target historical map based on tile plots in the prior art, the embodiment of the present application uses the vector data generated by cutting the plot to be cut to determine the vector data layer, and by placing the vector data layer above other layers, the real-time cutting of the target historical map and the real-time display of the cutting effect are realized, thereby improving the map editing efficiency, and the plot cutting tool is used to realize the cutting of the plot in any shape, thereby improving the map editing experience.

[0123] Those skilled in the art will appreciate that the accompanying drawings are only schematic diagrams of a preferred implementation scenario, and the modules or processes in the accompanying drawings are not necessarily necessary for implementing the present application. Those skilled in the art will appreciate that the modules in the devices in the implementation scenario can be distributed in the devices of the implementation scenario according to the description of the implementation scenario, or can be changed accordingly and located in one or more devices different from the present implementation scenario. The modules of the above-mentioned implementation scenario can be combined into one module, or can be further split into multiple submodules.

[0124] The above serial numbers of this application are only for description and do not represent the advantages and disadvantages of the implementation scenarios. The above disclosure is only a few specific implementation scenarios of this application, but this application is not limited to them, and any changes that can be thought of by technicians in this field should fall within the scope of protection of this application.

Claims

1. A method for editing a historical map, characterized in that: include: In response to a plot cutting instruction for a target historical map, a plot cutting tool is output, and according to the selected position of the plot cutting tool, a positional relationship between the plot cutting tool and each plot in the target historical map is obtained, and based on the positional relationship, the plot to be cut and the cutting line corresponding to the target historical map are determined, wherein the plot to be cut is a plot fully covered by the plot cutting tool, and the cutting line is a line manually input by a user on the plot to be cut, or the plot to be cut is a plot intersecting with the plot cutting tool, and the cutting line is an intersection line between the plot to be cut and the plot cutting tool; the plot cutting tool is a polygonal box with a changeable shape, and when any edge in the polygonal box intersects with any plot of the target historical map, and other edges of the polygonal box are outside the range of any plot, the cutting line is determined according to the position of any edge, and any plot is determined as the plot to be cut; Determine second vector data corresponding to the land parcel to be cut according to the cutting line and the first vector data corresponding to the land parcel to be cut, wherein the second vector data is vector data corresponding to the land parcel to be cut after being cut along the cutting line; On top of the layer corresponding to the target historical map, a vector data layer of the target historical map is generated based on the second vector data, thereby realizing real-time cutting of the target historical map and real-time display of the cutting effect, wherein the vector data layer can be used to re-cut the land parcel to be cut.

2. The method according to claim 1, characterized in that The determining, according to the cutting line and the first vector data corresponding to the to-be-cut land parcel, the second vector data corresponding to the to-be-cut land parcel specifically includes: Acquire the first vector data and a first plot identifier corresponding to the first vector data; The second vector data are determined according to the cutting line and the first vector data, and second plot identifiers corresponding to the second vector data are generated according to the first plot identifier, wherein the second plot identifier is associated with the first plot identifier.

3. The method according to claim 2, characterized in that After determining the second vector data corresponding to the land parcel to be cut according to the cutting line and the first vector data corresponding to the land parcel to be cut, the method further includes: In response to a cutting reset instruction corresponding to the land parcel to be cut, the second vector data is deleted, and the land parcel to be cut and the cutting line corresponding to the target historical map are reacquired.

4. The method according to claim 2, characterized in that: The second vector data is used to realize re-cutting of the to-be-cut land block.

5. The method according to claim 1, characterized in that After determining the vector data layer of the target historical map based on the second vector data, the method further includes: Send a target historical map update instruction to a client corresponding to a target historical map platform, wherein the target historical map update instruction includes the vector data layer, and the target historical map update instruction is used to control the client to go offline from the target historical map platform, and output a new target historical map based on the vector data layer when the client goes online again.

6. The method according to claim 2, characterized in that After determining the vector data layer of the target historical map based on the second vector data, the method further includes: Detecting whether all vector data contained in the vector data layer exceeds a preset threshold; If it exceeds the preset threshold, the target tile data corresponding to all the vector data and the second plot identifier corresponding to each of the all the vector data are obtained, and based on the all the vector data and the second plot identifier, the target tile data is updated so that the updated target tile data matches the all the vector data, and the tile identifier corresponding to the updated target tile data matches the plot identifier.

7. The method according to claim 6, characterized in that After updating the target tile data, the method further includes: Based on the second plot identifier corresponding to the second vector data, the plot resource information of the associated plot corresponding to the second plot identifier is queried, and the plot resource information of the associated plot is determined as the plot resource information corresponding to the second plot identifier, wherein the plot identifier of the associated plot is associated with the second plot identifier, and the plot resource information corresponding to the second plot identifier is editable.

8. The method according to claim 6, characterized in that After updating the target tile data, the method further includes: Delete the vector data layer corresponding to the target historical map.

9. A device for editing historical maps, characterized in that: include: A cutting instruction response module is used to respond to a plot cutting instruction for a target historical map, output a plot cutting tool, obtain a positional relationship between the plot cutting tool and each plot in the target historical map according to the selected position of the plot cutting tool, and determine the plot to be cut and the cutting line corresponding to the target historical map based on the positional relationship, wherein the plot to be cut is a plot fully covered by the plot cutting tool, and the cutting line is a line manually input by a user on the plot to be cut, or the plot to be cut is a plot intersecting with the plot cutting tool, and the cutting line is an intersection line between the plot to be cut and the plot cutting tool; the plot cutting tool is a polygonal box with a changeable shape, and when any edge in the polygonal box intersects with any plot of the target historical map, and other edges of the polygonal box are outside the range of any plot, the cutting line is determined according to the position of any edge, and any plot is determined as the plot to be cut; A vector data determination module, configured to determine second vector data corresponding to the land parcel to be cut according to the cutting line and the first vector data corresponding to the land parcel to be cut, wherein the second vector data is vector data corresponding to the land parcel to be cut after being cut along the cutting line; A vector layer determination module is used to generate a vector data layer of the target historical map based on the second vector data on top of the layer corresponding to the target historical map, thereby realizing real-time cutting of the target historical map and real-time display of the cutting effect, wherein the vector data layer can be used to re-cut the land parcel to be cut.

10. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for editing a historical map according to any one of claims 1 to 8 is implemented.

11. A computer device comprising a storage medium, a processor, and a computer program stored in the storage medium and executable on the processor, characterized in that: When the processor executes the computer program, the method for editing a historical map according to any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Historical map data processing method, device and system

    CN111324685A

  • Layer data processing method and device, computer equipment and storage medium

    CN111522481A