CN112907689A - Editing method and device of history map, storage medium and computer equipment - Google Patents

Editing method and device of history map, storage medium and computer equipment Download PDF

Info

Publication number
CN112907689A
CN112907689A CN202110110086.3A CN202110110086A CN112907689A CN 112907689 A CN112907689 A CN 112907689A CN 202110110086 A CN202110110086 A CN 202110110086A CN 112907689 A CN112907689 A CN 112907689A
Authority
CN
China
Prior art keywords
plot
vector data
cut
cutting
parcel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110110086.3A
Other languages
Chinese (zh)
Inventor
曹双
杜辰
田间
李小伟
李勤
洪前程
孙越
白全
张雅淳
孙国轩
李亚东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Perfect Knowledge Technology Co Ltd
Original Assignee
Beijing Perfect Knowledge Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Perfect Knowledge Technology Co Ltd filed Critical Beijing Perfect Knowledge Technology Co Ltd
Priority to CN202110110086.3A priority Critical patent/CN112907689A/en
Publication of CN112907689A publication Critical patent/CN112907689A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/001Texturing; Colouring; Generation of texture or colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/56Information retrieval; Database structures therefor; File system structures therefor of still image data having vectorial format
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/136Segmentation; Edge detection involving thresholding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20021Dividing image into blocks, subimages or windows
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30181Earth observation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Remote Sensing (AREA)
  • Processing Or Creating Images (AREA)
  • Instructional Devices (AREA)

Abstract

The application discloses a method and a device for editing a historical map, a storage medium and computer equipment, wherein the method comprises the following steps: responding to a plot cutting instruction of a target historical map, acquiring a position relation between a plot cutting tool and each plot in the target historical map, and determining a to-be-cut plot and a cutting line corresponding to the target historical map based on the position relation, wherein each plot in the target historical map is divided based on historical government right information; determining second vector data corresponding to the to-be-cut plot according to the cutting line and the first vector data corresponding to the to-be-cut plot, wherein the second vector data are corresponding to the to-be-cut plot after being cut according to the cutting line; and determining a vector data layer of the target historical map based on the second vector data, wherein the vector data layer is positioned on a layer corresponding to the target historical map. And the editing appeal of the user to the history map is met.

Description

Editing method and device of history map, storage medium and computer equipment
The invention is a divisional application of Chinese patent application with application number 202011232051.9, name "editing method and device of history map, storage medium, computer equipment" submitted by Chinese patent office on 11 month and 06 month in 2020.
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for editing a history map, a storage medium, and a computer device.
Background
In the prior art, the editing of the historical map is realized on the basis of editing the map tiles after the map tiles are converted, the editing and the modification of the historical map need to be performed offline, the map vector data are edited and converted into the tile data, and then the historical map is updated, so that the cutting effect is displayed.
Disclosure of Invention
In view of this, the application provides a method and an apparatus for editing a history map, a storage medium, and a computer device, which improve map editing efficiency and improve map editing experience.
According to an aspect of the present application, there is provided a history map editing method, including:
responding to a plot cutting instruction corresponding to a target historical map, and acquiring a to-be-cut plot and a cutting line corresponding to the target historical map;
determining second vector data corresponding to the to-be-cut plot according to the cutting line and the first vector data corresponding to the to-be-cut plot, wherein the second vector data are corresponding to the to-be-cut plot after being cut according to the cutting line;
and determining a vector data layer of the target historical map based on the second vector data, wherein the vector data layer is positioned on a layer corresponding to the target historical map.
Optionally, the obtaining the to-be-cut parcel and the cutting line corresponding to the target historical map in response to the parcel cutting instruction corresponding to the target historical map specifically includes:
outputting a parcel cutting tool in response to the parcel cutting instruction, wherein the parcel cutting tool comprises a polygonal box;
and receiving the selected position of the polygonal frame, and determining the cutting line according to the position of any edge and determining any parcel as the parcel to be cut when any edge of the polygonal frame is intersected with any parcel of the target historical map and other edges of the polygonal frame are positioned outside the range of any parcel.
Optionally, the determining, according to the cutting line and the first vector data corresponding to the to-be-cut parcel, second vector data corresponding to the to-be-cut parcel specifically includes:
acquiring the first vector data and a first block identifier corresponding to the first vector data;
and determining the second vector data according to the cutting line and the first vector data, and generating second block identifiers corresponding to the second vector data respectively according to the first block identifiers, wherein the second block identifiers are associated with the first block identifiers.
Optionally, after determining second vector data corresponding to the to-be-cut parcel according to the cutting line and the first vector data corresponding to the to-be-cut parcel, the method further includes:
and responding to a cutting reset instruction corresponding to the to-be-cut land parcel, deleting the second vector data, and re-acquiring the to-be-cut land parcel and the cutting line corresponding to the target historical map.
Optionally, the second vector data is used for realizing the re-cutting of the land to be cut.
Optionally, after determining the vector data layer of the target history map based on the second vector data, the method further includes:
and sending a target historical map updating instruction to a client corresponding to the target historical map platform, wherein the target historical map updating instruction comprises the vector data map layer, and the target historical map updating instruction is used for controlling the client to be offline from the target historical map platform and outputting a new target historical map based on the vector data map layer when the client is online again.
Optionally, after determining the vector data layer of the target history map based on the second vector data, the method further includes:
detecting whether all vector data contained in the vector data layer exceed a preset threshold value or not;
if the current vector data exceeds the preset threshold value, obtaining target tile data corresponding to all the vector data and second place identifications corresponding to all the vector data respectively, and updating the target tile data based on all the vector data and the second place identifications so that the updated target tile data are matched with all the vector data, and the tile identifications corresponding to the updated target tile data are matched with the place identifications.
Optionally, after the updating the target tile data, the method further includes:
and inquiring 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, 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.
Optionally, after the updating the target tile data, the method further includes:
and clearing the vector data layer corresponding to the target historical map.
According to another aspect of the present application, there is provided an editing apparatus of a history map, including:
the cutting instruction response module is used for responding to a plot cutting instruction of a target historical map, acquiring the position relation between a plot cutting tool and each plot in the target historical map, and determining a to-be-cut plot and a cutting line corresponding to the target historical map based on the position relation, wherein each plot in the target historical map is divided based on historical government right information;
the vector data determining module is used for determining second vector data corresponding to the to-be-cut plot according to the cutting line and the first vector data corresponding to the to-be-cut plot, wherein the second vector data are corresponding to the to-be-cut plot after being cut according to the cutting line;
and a vector layer determining module, configured to determine a vector data layer of the target historical map based on the second vector data, where the vector data layer is located on a layer corresponding to the target historical map.
Optionally, the cutting instruction response module specifically includes:
a cutting tool output unit for outputting a block cutting tool in response to the block cutting command, wherein the block cutting tool is a polygonal frame which can change shape;
and the cutting data acquisition unit is used for receiving the selected position of the polygonal frame, determining the cutting line according to the position of any side and determining any parcel as the parcel to be cut when any side of the polygonal frame is intersected with any parcel of the target historical map and other sides of the polygonal frame are positioned outside the range of any parcel.
Optionally, the vector data determining module specifically includes:
a first identifier obtaining unit, configured to obtain the first vector data and a first tile identifier corresponding to the first vector data;
and the second identifier generating unit is used for determining the second vector data according to the cutting line and the first vector data and generating second identifier corresponding to the second vector data according to the first identifier, wherein the second identifier is associated with the first identifier.
Optionally, the apparatus further comprises:
and the cutting data acquisition module is used for responding to a cutting reset instruction corresponding to the to-be-cut land block after determining second vector data corresponding to the to-be-cut land block according to the cutting line and the first vector data corresponding to the to-be-cut land block, deleting the second vector data, and acquiring the to-be-cut land block and the cutting line corresponding to the target historical map again.
Optionally, the second vector data is used for realizing the re-cutting of the land to be cut.
Optionally, the apparatus further comprises:
and an update instruction sending module, configured to send a target historical map update instruction to a client corresponding to a target historical map platform after determining a vector data layer of the target historical map based on the second vector data, where 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.
Optionally, the apparatus further comprises:
the detection module is used for detecting whether all vector data contained in a vector data layer exceeds a preset threshold value after the vector data layer of the target historical map is determined based on the second vector data;
and the tile data updating module is used for acquiring target tile data corresponding to all the vector data and second block identifiers corresponding to all the vector data if the preset threshold value is exceeded, and updating the target tile data based on all the vector data and the second block identifiers so as to enable the updated target tile data to be matched with all the vector data, and the tile identifiers corresponding to the updated target tile data to be matched with the block identifiers.
Optionally, the apparatus further comprises:
and the land parcel resource inheritance module is used for inquiring land parcel resource information of an associated land parcel corresponding to the second land parcel identification based on the second land parcel identification corresponding to the second vector data after the target tile data is updated, and determining the land parcel resource information of the associated land parcel as the land parcel resource information corresponding to the second land parcel identification, wherein the land parcel identification of the associated land parcel is associated with the second land parcel identification.
Optionally, the apparatus further comprises:
and the vector layer clearing module is used for clearing the vector data layer corresponding to the target historical map after the target tile data is updated.
According to yet another aspect of the present application, there is provided a storage medium having stored thereon a computer program which, when executed by a processor, implements the above-described method of editing a history map.
According to yet another aspect of the present application, there is provided a computer device including a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, the processor implementing the above editing method of the history map when executing the program.
By means of the technical scheme, the historical map editing method and device, the storage medium and the computer equipment provided by the application respond to a block cutting instruction for any block in a target historical map, determine a block to be cut and a cutting line of the block to be cut according to a position relation between a block cutting tool selected by a user and each block, and further generate second vector data for describing a new block generated by cutting the block to be cut according to first vector data corresponding to the block to be cut and the cutting line, so that a vector data layer of the target historical map is determined based on the second vector data, and the vector data layer is located on other layers of the target historical map. Compared with the mode of editing and editing the target historical map based on the tile plots in the prior art, the vector data map layer is determined by utilizing the vector data generated by cutting the plots to be cut, and the real-time cutting of the target historical map and the real-time display of the cutting effect are realized by arranging the vector data map layer on other map layers, so that the map editing efficiency is improved, the plots can be cut in any shape by using a plot cutting tool, and the map editing experience is improved.
The foregoing description is only an overview of the technical solutions of the present application, and the present application can be implemented according to the content of the description in order to make the technical means of the present application more clearly understood, and the following detailed description of the present application is given in order to make the above and other objects, features, and advantages of the present application more clearly understandable.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a flowchart illustrating an editing method of a history map according to an embodiment of the present application;
fig. 2 is a flowchart illustrating another history map editing method provided in an embodiment of the present application;
FIG. 3 is a schematic diagram illustrating an example of a block cut provided by an embodiment of the present application;
fig. 4 shows a schematic structural diagram of each image layer in a land block cutting process according to an embodiment of the present application;
fig. 5 is a schematic structural diagram illustrating an editing apparatus for a history map according to an embodiment of the present application;
fig. 6 is a schematic structural diagram illustrating another history map editing apparatus according to an embodiment of the present application.
Detailed Description
The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
In the present embodiment, there is provided a method for editing a history map, as shown in fig. 1, the method including:
step 101, responding to a plot cutting instruction of a target historical map, acquiring a position relation between a plot cutting tool and each plot in the target historical map, and determining a to-be-cut plot and a cutting line corresponding to the target historical map based on the position relation, wherein each plot in the target historical map is divided based on historical government right information;
the map data processing method provided by the embodiment of the application can be used for realizing the editing of a target historical map by a user, so that the editing appeal of the target historical map by the user is met, 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 for representing historical information corresponding to different historical years and specifically can comprise historical administrative right information, the historical information in the electronic map is described in the form of different plots divided based on the electronic map, each plot can correspond to different historical information, and particularly, a plot 1 can be used for describing a territory area of a certain country in 1200 years. The electronic map comprises one or more land parcels, and in addition, the electronic map is composed of at least one map layer, in this embodiment, the map layer corresponding to the electronic map at least includes a tile layer, the tile layer includes land parcel vector data corresponding to each of the plurality of land parcels, and the land parcel vector data corresponding to the tile layer is used for describing a boundary line corresponding to the land parcel, so as to reflect a geographical range of the land parcel, and in addition, the tile layer may further include land parcel history information corresponding to each of the plurality of land parcels, and is used for describing history information corresponding to the land parcel. Further, in order to meet the editing appeal of the user on the electronic map, the embodiment of the application can further include a vector layer, namely a vector data layer.
In this embodiment, a user may edit a target historical map by submitting a block cutting instruction, and in response to the block cutting instruction, obtain a block to be cut, which is indicated by the user and is desired to be cut, and obtain a cutting manner, i.e., a cutting line, of the block to be cut, which is indicated by the user and is used to describe a cutting position of the block to be cut, in a specific application scenario, the user may implement block cutting based on a block cutting tool, e.g., a custom cutting frame, and place the custom cutting frame at a position corresponding to the target historical map by selecting the custom cutting frame, and determine the block to be cut selected by the user and the cutting line describing a specific cutting intention of the user by analyzing a positional relationship between the block cutting tool and each block in the target historical map, where the specific block cutting tool form is not limited herein, for example, the land covered by the land parcel cutting tool is the land parcel to be cut, the line manually input by the user on the land parcel to be cut is the cutting line, and for example, the land parcel intersected with the land parcel cutting tool is the land parcel to be cut, and the intersection line of the land parcel to be cut and the tool to be cut is the cutting line. It should be noted that the cutting line corresponding to one to-be-cut parcel may include one or more cutting lines, one cutting line may cut the to-be-cut parcel corresponding to the one cutting line into two parcels, and the number of parcels that can be obtained by cutting the plurality of cutting lines should be determined based on the actual position of the cutting line.
Step 102, determining second vector data corresponding to the to-be-cut plot according to the cutting line and the first vector data corresponding to the to-be-cut plot, wherein the second vector data are corresponding to the to-be-cut plot after being cut according to the cutting line;
in the embodiment, after a to-be-cut block and a cutting line corresponding to the to-be-cut block are obtained, first vector data corresponding to the to-be-cut block are obtained, wherein the first vector data are original vector data corresponding to the to-be-cut block, namely, vector data used for describing a geographical range of the to-be-cut block before an actual cutting action is not generated on the to-be-cut block, further, second vector data corresponding to the to-be-cut block are determined based on the cutting line and the first vector data, wherein the second vector data are vector data corresponding to a new block generated after cutting if the to-be-cut block is cut according to the cutting line, namely, the second vector data are used for describing a geographical range of the new block generated after cutting if the actual cutting action is generated, and the to-be-cut block can be cut into two blocks due to the generation of cutting on the to-be-cut block, therefore, the second vector data corresponding to one land to be cut includes two. It is also possible to cut one plot to be cut into a plurality.
And 103, determining a vector data layer of the target historical map based on the second vector data, wherein the vector data layer is positioned on the layer corresponding to the target historical map. The map layer may preferably be a tile layer of a map.
In the embodiment, after the second vector data corresponding to the to-be-cut parcel is determined, the second vector data is added into the vector data map layer of the target historical map, and the vector data map layer in the target historical map is arranged on other map layers, so that when the target historical map is output and displayed, the cutting effect of the to-be-cut parcel can be displayed for the to-be-cut parcel, and the cutting editing appeal of a user on the electronic map can be met. In addition, the vector data map layer of the target history map may be included in the target history map itself, or may be temporarily generated in response to a block cutting instruction, and in order to reduce the data amount of the target history map, a mode of temporarily generating the vector data map layer in response to the block cutting instruction is preferred in the embodiments of the present application.
By applying the technical scheme of the embodiment, in response to a block cutting instruction for any block in a target historical map, the block to be cut and the cutting line of the block to be cut are determined according to the position relation between a block cutting tool selected by a user and each block, and further, according to the first vector data and the cutting line corresponding to the block to be cut, second vector data used for describing the new block generated by cutting the block to be cut is generated, so that a vector data layer of the target historical map is determined based on the second vector data, and the vector data layer is located on other layers of the target historical map. Compared with the mode of editing and editing the target historical map based on the tile plots in the prior art, the vector data map layer is determined by utilizing the vector data generated by cutting the plots to be cut, and the real-time cutting of the target historical map and the real-time display of the cutting effect are realized by arranging the vector data map layer on other map layers, so that the map editing efficiency is improved, the plots can be cut in any shape by using a plot cutting tool, and the map editing experience is improved.
Further, as a refinement and an extension of the specific implementation of the above embodiment, in order to fully explain the specific implementation process of the embodiment, another method for editing a history map is provided, as shown in fig. 2, the method includes:
step 201, responding to a land parcel cutting instruction, and outputting a land parcel cutting tool, wherein the land parcel cutting tool is a polygonal frame with a changeable shape;
in the embodiment of the present application, the parcel cutting tool may include a plurality of polygon frames of different shapes, and the parcel cutting tool is provided in response to a parcel cutting instruction for a user to select a desired polygon frame from the polygon frames, so that the parcel to be cut and the cutting line are selected by using the polygon frames by moving the positions of the polygon frames, scaling the polygon frames, stretching a vertex of the polygon, and the like.
202, receiving a selected position of a polygonal frame, determining a cutting line according to the position of any side and determining any plot as a plot to be cut when any side of the polygonal frame is intersected with any plot of the target historical map and other sides of the polygonal frame are positioned outside the range of any plot;
in step 202, an operation of the user on the polygonal frame is received, a selected position of the polygonal frame is obtained, as shown in fig. 3, a schematic diagram of an example of cutting a land parcel is shown, an edge line of a cutting surface corresponding to an area where a land parcel to be cut intersects with the cutting surface is a cutting line, the user can select a single land parcel or a plurality of land parcels to be cut first, the cutting surface is drawn by moving a polygonal frame selecting tool based on the selected area, when the cutting surface is drawn, the cutting line area intersects with the land parcel to be cut, and other edge lines of a non-cutting line in the polygonal frame need to exceed the range of the land parcel, so that abnormal cutting is avoided, and the cutting accuracy is improved.
Step 203, acquiring first vector data and a first block identifier corresponding to the first vector data;
step 204, determining second vector data according to the cutting line and the first vector data, and generating second block identifiers corresponding to the second vector data respectively according to the first block identifiers, wherein the second block identifiers are associated with the first block identifiers;
in step 203 and step 204, first vector data corresponding to a to-be-cut parcel selected by a user and a corresponding first parcel identification are obtained, where the first parcel identification may be a number, a character string number, or the like, which can be used to distinguish the parcel from other parcels, further, second vector data is determined according to the first vector data and a cutting line, and a second parcel identification corresponding to the second vector data is generated according to the first parcel identification, where the second parcel identification is generated based on the first parcel identification, that is, the cut parcel retains an association relationship with the first parcel identification according to an identification generation rule, for example, the first parcel identification is a, and the second parcel identification may be a-1, a-2, so that a new parcel generated by cutting may inherit parcel resource information based on an identification association relationship with an original parcel.
In this embodiment, specifically, the second vector data is used to realize the re-cutting of the land parcel to be cut.
In the above embodiment, after a user cuts a certain to-be-cut parcel, if the parcel needs to be cut again, the cutting may be performed directly based on the second vector data corresponding to the parcel, for example, after the parcel a is cut into two parts, i.e., a part a-1 and a part a-2, the cutting may also be continued on the parcel a-1 and the parcel a-2, and since the parcel tile data corresponding to the tile data map layer of the target historical map is still matched with the parcel a, when the parcel a-1 and the parcel a-2 are cut, the cutting may be performed directly based on the vector data map layers corresponding to the parcel a-1 and the parcel a-2, i.e., the cutting of the parcel a-1 and the parcel a-2 is realized based on the second vector data. The second vector data are utilized to realize the secondary cutting of the plot to be cut, the second vector data corresponding to the vector data map layer are not required to be converted into tile data, the secondary cutting of the plot to be cut can be realized, and the map editing efficiency is improved. It should be noted that, in order to facilitate the inheritance of the parcel resource data, the parcel identification corresponding to the new parcel data obtained by cutting based on the second vector data is also kept associated with the first parcel identification, for example, the parcel identification of the new parcel obtained by cutting parcel a-1 may be a-3, a-4, or a-1-1, a-1-2, etc.
Step 205, responding to a cutting reset instruction corresponding to the to-be-cut land, deleting the second vector data, and re-acquiring the to-be-cut land and the cutting line corresponding to the target historical map;
in step 205, if the user is not satisfied with the selected position of the polygon frame, the block is cut again by issuing a cutting reset command, and in response to the cutting reset command corresponding to the block to be cut, the second vector data and the second block identifier obtained based on the original block to be cut and the cutting line are deleted, and the edit data of the user on the target history map is continuously obtained, that is, the block to be cut and the cutting line corresponding to the target history map are obtained again. The user may re-determine the parcel to be cut and the cut lines by re-selecting the polygon frame, re-determining the polygon frame, etc.
Step 206, determining a vector data layer of the target historical map based on the second vector data, wherein the vector data layer is positioned on a layer corresponding to the target historical map;
in step 206, after the second vector data is determined, the vector data layer of the target history map is determined based on the second vector data corresponding to the new block generated by cutting the block to be cut, and the vector data layer is placed on the top layer of all layers of the target history map, so that the target history map can exhibit the latest cutting effect.
Step 207, sending a target historical map updating instruction to a client corresponding to the target historical map platform, wherein the target historical map updating instruction comprises a vector data map layer, and the target historical map updating instruction is used for controlling the client to be offline from the target historical map platform and outputting a new target historical map based on the vector data map layer when the client is online again;
in step 207, after the block of the target historical map is cut, in order to display the editing result on the client in time, a target historical map updating instruction may be generated and sent to the client corresponding to the target historical map platform, the target historical map updating instruction may be generated based on the vector data map layer, the instruction carries the vector data map layer, and after the client receives the target historical map updating instruction, in order to maintain the synchronization of the target historical map, the client may force the platform user to go offline, and update the target historical map according to the vector data map layer, so that the latest target historical map can be displayed when the client user goes online again.
Step 208, detecting whether all vector data contained in the vector data layer exceeds a preset threshold value;
step 209, if the current target tile data exceeds the preset threshold, acquiring target tile data corresponding to all the vector data and second place identifications corresponding to all the vector data respectively, and updating the target tile data based on all the vector data and the second place identifications so that the updated target tile data is matched with all the vector data and the tile identifications corresponding to the updated target tile data are matched with the place identifications;
and step 210, removing the vector data layer corresponding to the target historical map.
In steps 209 to 210, in order to avoid affecting the performance of the editor after the cut vector data is continuously incremented, the editing background may detect the number of the cut land blocks at regular intervals, if the number exceeds the threshold, start the processing flow of vector conversion tiles, and after the tile conversion is completed, delete the temporarily generated vector layer, and update the land blocks into the cut data. As shown in fig. 4, a schematic structural diagram of each map layer in a land parcel cutting process is shown, before a land parcel a is cut, data of a tile layer of the land parcel a is data corresponding to the land parcel a, after the land parcel a is cut, the data of the tile layer of the land parcel a is unchanged, vector layer data is vector data corresponding to the land parcel a-1 and the land parcel a-2 generated after cutting, when the number of land parcels included in a vector layer of a target historical map exceeds a preset threshold, the vector land parcel of the vector layer is converted into a tile land parcel of the tile layer, after the vector is converted into a tile, the data of the tile layer is data corresponding to the land parcel a-1 and the land parcel a-2, and the vector layer is removed.
In the embodiment of the present application, specifically, the method further includes: after the target tile data is updated, inquiring the land parcel resource information of the associated land parcel corresponding to the second land parcel identification based on the second land parcel identification corresponding to the second vector data, and determining the land parcel resource information of the associated land parcel as the land parcel resource information corresponding to the second land parcel identification, wherein the land parcel identification of the associated land parcel is associated with the second land parcel identification.
In the above embodiment, in order to make the cut land parcel express the land parcel resource information matched with the original land parcel to be cut, in the embodiment of the application, the land parcel resource information of the associated land parcel can be obtained according to the land parcel identification of the new land parcel obtained by cutting, that is, based on the second block identifier corresponding to the second vector data, the associated block associated with the second block identifier is queried, and obtaining plot resource information of the associated plot, determining the plot resource information of the associated plot as the plot resource information of the new plot represented by the second plot identifier, thereby realizing the association and inheritance of the land parcel resource information, leading the new land parcel obtained by cutting to be capable of expressing the land parcel resource information which is consistent with the original land parcel, the parcel resource information may specifically be history information corresponding to the parcel, such as the year information and the country of the parcel.
In order to further improve the editability of the electronic map, the parcel resource information corresponding to the second parcel identifier may be edited. For example, the land A belongs to the country A, after the land A is cut into the land A-1 and the land A-2, the country of the land A-1 is not changed, and the country of the land A-2 is modified into the country B.
Further, as a specific implementation of the method in fig. 1, an embodiment of the present application provides an apparatus for editing a history map, and as shown in fig. 5, the apparatus includes:
the cutting instruction response module 51 is used for responding to a plot cutting instruction of the target historical map, acquiring the position relation between a plot cutting tool and each plot in the target historical map, and determining a to-be-cut plot and a cutting line corresponding to the target historical map based on the position relation, wherein each plot in the target historical map is divided based on historical government right information;
the vector data determining module 52 is configured to determine second vector data corresponding to the to-be-cut parcel according to the cutting line and the first vector data corresponding to the to-be-cut parcel, where the second vector data is the vector data corresponding to the to-be-cut parcel after being cut according to the cutting line;
and the vector layer determining module 53 is configured to determine, based on the second vector data, a vector data layer of the target history map, where the vector data layer is located on a layer corresponding to the target history map.
In a specific application scenario, as shown in fig. 6, optionally, the cutting instruction response module 51 specifically includes:
a cutting tool output unit 511 for outputting a block cutting tool in response to a block cutting instruction, wherein the block cutting tool is a polygonal frame that can change a shape;
and the cutting data acquisition unit 512 is used for receiving the selected position of the polygonal frame, determining a cutting line according to the position of any side and determining any parcel as the parcel to be cut when any side of the polygonal frame is intersected with any parcel of the target historical map and other sides of the polygonal frame are positioned outside the range of any parcel.
In a specific application scenario, as shown in fig. 6, optionally, the vector data determining module 52 specifically includes:
a first identifier obtaining unit 521, configured to obtain first vector data and a first tile identifier corresponding to the first vector data;
the second identifier generating unit 522 is configured to determine second vector data according to the cutting line and the first vector data, and generate second tile identifiers corresponding to the second vector data respectively according to the first tile identifiers, where the second tile identifiers are associated with the first tile identifiers.
In a specific application scenario, as shown in fig. 6, optionally, the apparatus further includes:
and the cutting data acquisition module 54 is configured to, after determining second vector data corresponding to the to-be-cut parcel according to the cutting line and the first vector data corresponding to the to-be-cut parcel, respond to a cutting reset instruction corresponding to the to-be-cut parcel, delete the second vector data, and reacquire the to-be-cut parcel and the cutting line corresponding to the target historical map.
Optionally, the second vector data is used to enable re-cutting of the parcel to be cut.
In a specific application scenario, as shown in fig. 6, optionally, the apparatus further includes:
and an update instruction sending module 55, configured to send a target historical map update instruction to a 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, where 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.
In a specific application scenario, as shown in fig. 6, optionally, the apparatus further includes:
the detection module 56 is configured to, after determining a vector data layer of the target historical map based on the second vector data, detect whether all vector data included in the vector data layer exceeds a preset threshold;
and a tile data updating module 57, configured to, if the current target tile data exceeds the preset threshold, obtain target tile data corresponding to all the vector data and second block identifiers corresponding to all the vector data, and update the target tile data based on all the vector data and the second block identifiers, 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 block identifier.
In a specific application scenario, as shown in fig. 6, optionally, the apparatus further includes:
and the parcel resource inheriting module 58 is configured to, after the target tile data is updated, query parcel resource information of an associated parcel corresponding to the second parcel identification based on the second parcel identification corresponding to the second vector data, and determine the parcel resource information of the associated parcel as the parcel resource information corresponding to the second parcel identification, where the parcel identification of the associated parcel is associated with the second parcel identification.
In a specific application scenario, as shown in fig. 6, optionally, the apparatus further includes:
and the vector layer removing module 59 is configured to remove a vector data layer corresponding to the target historical map after the target tile data is updated.
It should be noted that other corresponding descriptions of the functional units related to the editing apparatus for a history map provided in the embodiment of the present application may refer to corresponding descriptions in the methods in fig. 1 to fig. 4, and are not described herein again.
Based on the methods shown in fig. 1 to 4, correspondingly, the present application further provides a storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method for editing the history map shown in fig. 1 to 4 is implemented.
Based on such understanding, the technical solution of the present application may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.), and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the implementation scenarios of the present application.
Based on the method shown in fig. 1 to 4 and the virtual device embodiment shown in fig. 5 to 6, in order to achieve the above object, the present application further provides a computer device, which may specifically be a personal computer, a server, a network device, and the like, where the computer device includes a storage medium and a processor; a storage medium for storing a computer program; a processor for executing a computer program to implement the above-described method for editing the history map as shown in fig. 1 to 4.
Optionally, the computer device may also include a user interface, a network interface, a camera, Radio Frequency (RF) circuitry, sensors, audio circuitry, a WI-FI module, and so forth. The user interface may include a Display screen (Display), an input unit such as a keypad (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 (e.g., a bluetooth interface, WI-FI interface), etc.
It will be appreciated by those skilled in the art that the present embodiment provides a computer device architecture that is not limiting of the computer device, and that may include more or fewer components, or some components in combination, or a different arrangement of components.
The storage medium may further include an operating system and a network communication module. An operating system is a program that manages and maintains the hardware and software resources of a computer device, supporting the operation of information handling programs, as well as other software and/or programs. The network communication module is used for realizing communication among components in the storage medium and other hardware and software in the entity device.
Through the description of the above embodiment, those skilled in the art can clearly understand that the present application can be implemented by software plus a necessary general hardware platform, and also can respond to a land parcel cutting instruction for any land parcel in the target historical map through hardware implementation, determine a land parcel to be cut and a cutting line of the land parcel to be cut according to a position relationship between a land parcel cutting tool selected by a user and each land parcel, and further generate second vector data for describing a new land parcel generated by cutting the land parcel to be cut according to the first vector data and the cutting line corresponding to the land parcel to be cut, so as to determine a vector data layer of the target historical map based on the second vector data, and the vector data layer is located on other layers of the target historical map. Compared with the mode of editing and editing the target historical map based on the tile plots in the prior art, the vector data map layer is determined by utilizing the vector data generated by cutting the plots to be cut, and the real-time cutting of the target historical map and the real-time display of the cutting effect are realized by arranging the vector data map layer on other map layers, so that the map editing efficiency is improved, the plots can be cut in any shape by using a plot cutting tool, and the map editing experience is improved.
Those skilled in the art will appreciate that the figures are merely schematic representations of one preferred implementation scenario and that the blocks or flow diagrams in the figures are not necessarily required to practice the present application. Those skilled in the art will appreciate that the modules in the devices in the implementation scenario may be distributed in the devices in the implementation scenario according to the description of the implementation scenario, or may be located in one or more devices different from the present implementation scenario with corresponding changes. The modules of the implementation scenario may be combined into one module, or may be further split into a plurality of sub-modules.
The above application serial numbers are for description purposes only and do not represent the superiority or inferiority of the implementation scenarios. The above disclosure is only a few specific implementation scenarios of the present application, but the present application is not limited thereto, and any variations that can be made by those skilled in the art are intended to fall within the scope of the present application.

Claims (12)

1. A method for editing a history map, comprising:
responding to a plot cutting instruction of a target historical map, acquiring a position relation between a plot cutting tool and each plot in the target historical map, and determining a to-be-cut plot and a cutting line corresponding to the target historical map based on the position relation, wherein the to-be-cut plot is a plot completely covered by the plot cutting tool, and the cutting line is a line manually input by a user on the to-be-cut plot, or the to-be-cut plot is a plot intersected with the plot cutting tool, and the cutting line is an intersection line of the to-be-cut plot and the plot cutting tool with the to-be-cut plot;
determining second vector data corresponding to the to-be-cut plot according to the cutting line and the first vector data corresponding to the to-be-cut plot, wherein the second vector data are corresponding to the to-be-cut plot after being cut according to the cutting line;
and generating a vector data layer of the target historical map on the basis of the second vector data on the layer corresponding to the target historical map, wherein the vector data layer can be used for cutting the to-be-cut land again.
2. The method of claim 1, wherein when the parcel to be cut is a parcel intersected by the parcel cutting tool, the cut line is an intersection line of the parcel to be cut and the parcel cutting tool with the parcel to be cut;
the responding to the plot cutting instruction of the target historical map, acquiring the position relation between the plot cutting tool and each plot in the target historical map, and determining the to-be-cut plot and the cutting line corresponding to the target historical map based on the position relation specifically comprises:
outputting a block cutting tool in response to the block cutting instruction, wherein the block cutting tool is a polygonal frame with a changeable shape;
and receiving the selected position of the polygonal frame, and determining the cutting line according to the position of any edge and determining any parcel as the parcel to be cut when any edge of the polygonal frame is intersected with any parcel of the target historical map and other edges of the polygonal frame are positioned outside the range of any parcel.
3. The method according to claim 1, wherein the determining second vector data corresponding to the parcel to be cut according to the cutting line and the first vector data corresponding to the parcel to be cut specifically comprises:
acquiring the first vector data and a first block identifier corresponding to the first vector data;
and determining the second vector data according to the cutting line and the first vector data, and generating second block identifiers corresponding to the second vector data respectively according to the first block identifiers, wherein the second block identifiers are associated with the first block identifiers.
4. The method according to claim 3, wherein after determining second vector data corresponding to the parcel to be cut according to the cutting line and the first vector data corresponding to the parcel to be cut, the method further comprises:
and responding to a cutting reset instruction corresponding to the to-be-cut land parcel, deleting the second vector data, and re-acquiring the to-be-cut land parcel and the cutting line corresponding to the target historical map.
5. A method according to claim 3, characterized in that said second vector data are used to effect a re-cutting of the piece to be cut.
6. The method of claim 1, wherein after determining the vector data layer of the target history map based on the second vector data, the method further comprises:
and sending a target historical map updating instruction to a client corresponding to the target historical map platform, wherein the target historical map updating instruction comprises the vector data map layer, and the target historical map updating instruction is used for controlling the client to be offline from the target historical map platform and outputting a new target historical map based on the vector data map layer when the client is online again.
7. The method of claim 3, wherein after determining the vector data layer of the target history map based on the second vector data, the method further comprises:
detecting whether all vector data contained in the vector data layer exceed a preset threshold value or not;
if the current vector data exceeds the preset threshold value, obtaining target tile data corresponding to all the vector data and second place identifications corresponding to all the vector data respectively, and updating the target tile data based on all the vector data and the second place identifications so that the updated target tile data are matched with all the vector data, and the tile identifications corresponding to the updated target tile data are matched with the place identifications.
8. The method of claim 7, wherein after said updating the target tile data, the method further comprises:
and inquiring 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, 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, and the plot resource information corresponding to the second plot identifier can be edited.
9. The method of claim 7, wherein after said updating the target tile data, the method further comprises:
and deleting the vector data layer corresponding to the target historical map.
10. An editing apparatus for a history map, comprising:
the cutting instruction response module is used for responding to a plot cutting instruction of a target historical map, acquiring the position relation between a plot cutting tool and each plot in the target historical map, and determining a to-be-cut plot and a cutting line corresponding to the target historical map based on the position relation, wherein the to-be-cut plot is a plot which is completely covered by the plot cutting tool, and the cutting line is a line which is manually input by a user on the to-be-cut plot, or the to-be-cut plot is a plot which is intersected with the plot cutting tool, and the cutting line is an intersection line of the to-be-cut plot and the plot cutting tool with the to-be-cut plot;
the vector data determining module is used for determining second vector data corresponding to the to-be-cut plot according to the cutting line and the first vector data corresponding to the to-be-cut plot, wherein the second vector data are corresponding to the to-be-cut plot after being cut according to the cutting line;
and the vector layer determining module is used for generating a vector data layer of the target historical map on the basis of the second vector data on the layer corresponding to the target historical map, wherein the vector data layer can be used for cutting the to-be-cut block again.
11. A storage medium on which a computer program is stored, the computer program implementing the method of editing the history map according to any one of claims 1 to 9 when executed by a processor.
12. A computer device comprising a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, wherein the processor implements the method for editing a history map according to any one of claims 1 to 9 when executing the computer program.
CN202110110086.3A 2020-11-06 2020-11-06 Editing method and device of history map, storage medium and computer equipment Pending CN112907689A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110110086.3A CN112907689A (en) 2020-11-06 2020-11-06 Editing method and device of history map, storage medium and computer equipment

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011232051.9A CN112102427B (en) 2020-11-06 2020-11-06 Editing method and device of history map, storage medium and computer equipment
CN202110110086.3A CN112907689A (en) 2020-11-06 2020-11-06 Editing method and device of history map, storage medium and computer equipment

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN202011232051.9A Division CN112102427B (en) 2020-11-06 2020-11-06 Editing method and device of history map, storage medium and computer equipment

Publications (1)

Publication Number Publication Date
CN112907689A true CN112907689A (en) 2021-06-04

Family

ID=73785466

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202011232051.9A Active CN112102427B (en) 2020-11-06 2020-11-06 Editing method and device of history map, storage medium and computer equipment
CN202110110086.3A Pending CN112907689A (en) 2020-11-06 2020-11-06 Editing method and device of history map, storage medium and computer equipment

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202011232051.9A Active CN112102427B (en) 2020-11-06 2020-11-06 Editing method and device of history map, storage medium and computer equipment

Country Status (1)

Country Link
CN (2) CN112102427B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113486034A (en) * 2021-07-05 2021-10-08 重庆比特数图科技有限公司 Historical version backtracking method for vector map layer and pattern spot

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113190610A (en) * 2021-04-09 2021-07-30 北京完美知识科技有限公司 Map color matching method, device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101562823A (en) * 2008-12-24 2009-10-21 中国移动通信集团北京有限公司 Cutting method, presentation method, device and wireless network geosystem of vector map
US20160093098A1 (en) * 2014-09-25 2016-03-31 Intel Corporation Filtered Shadow Mapping
CN106384371A (en) * 2016-09-20 2017-02-08 国家基础地理信息中心 Map drawing method based on vector tile
CN111179274A (en) * 2019-12-30 2020-05-19 深圳一清创新科技有限公司 Map ground segmentation method, map ground segmentation device, computer equipment and storage medium
CN111290718A (en) * 2020-01-20 2020-06-16 北京百度网讯科技有限公司 Map processing method and device and electronic equipment
CN111324685A (en) * 2020-02-28 2020-06-23 天津完美引力科技有限公司 Method, device and system for processing historical map data
CN111522481A (en) * 2020-04-26 2020-08-11 腾讯科技(深圳)有限公司 Layer data processing method and device, computer equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103903508A (en) * 2012-12-28 2014-07-02 上海优途信息科技有限公司 Tile map segmenting method and system
CN106128291A (en) * 2016-08-31 2016-11-16 武汉拓普伟域网络有限公司 A kind of method based on the self-defined map layer of electronic third-party mapping
CN111310080A (en) * 2020-03-02 2020-06-19 天津完美引力科技有限公司 System and method for displaying a map on a display screen

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101562823A (en) * 2008-12-24 2009-10-21 中国移动通信集团北京有限公司 Cutting method, presentation method, device and wireless network geosystem of vector map
US20160093098A1 (en) * 2014-09-25 2016-03-31 Intel Corporation Filtered Shadow Mapping
CN106384371A (en) * 2016-09-20 2017-02-08 国家基础地理信息中心 Map drawing method based on vector tile
CN111179274A (en) * 2019-12-30 2020-05-19 深圳一清创新科技有限公司 Map ground segmentation method, map ground segmentation device, computer equipment and storage medium
CN111290718A (en) * 2020-01-20 2020-06-16 北京百度网讯科技有限公司 Map processing method and device and electronic equipment
CN111324685A (en) * 2020-02-28 2020-06-23 天津完美引力科技有限公司 Method, device and system for processing historical map data
CN111522481A (en) * 2020-04-26 2020-08-11 腾讯科技(深圳)有限公司 Layer data processing method and device, computer equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
李静 等: "矢量瓦片在线制图的地图标注研究", 地理信息世界, no. 02, 25 April 2017 (2017-04-25), pages 1 - 5 *
邢汉发 等: "基于变化轮廓线的地理信息更新方法研究", 地理信息世界, no. 04, 25 August 2018 (2018-08-25), pages 1 - 4 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113486034A (en) * 2021-07-05 2021-10-08 重庆比特数图科技有限公司 Historical version backtracking method for vector map layer and pattern spot

Also Published As

Publication number Publication date
CN112102427A (en) 2020-12-18
CN112102427B (en) 2021-02-05

Similar Documents

Publication Publication Date Title
CN112102427B (en) Editing method and device of history map, storage medium and computer equipment
CN103777866B (en) Data editing method and device for magnifying glass
CN110647596A (en) Map data processing method and device
CN111597808A (en) Instrument panel drawing processing method and device, electronic equipment and storage medium
CN112784469A (en) Model parameter generation method and device, electronic equipment and readable storage medium
CN111597772B (en) Data integration method, data integration device and electronic equipment
CN113360589A (en) Map data updating method and device and electronic equipment
CN111736950A (en) Accelerator resource adding method of virtual machine and related device
CN113269280B (en) Text detection method and device, electronic equipment and computer readable storage medium
CN116088975A (en) Screen page self-adaptive display method, device, system, equipment and storage medium
CN113079273A (en) Watermark processing method, device, electronic equipment and medium
CN111857757B (en) Container cloud-based efficient deployment method for aerial image processing service
CN113671988A (en) Job path setting method, apparatus, system, and storage medium
CN105867910A (en) Dynamic wallpaper presenting method and apparatus for mobile terminal
CN116310875A (en) Target detection method and device for satellite remote sensing image
CN112069274B (en) Distributed image slicing processing method
KR101584635B1 (en) Method and system for making index page using content authoring tool
CN114154223A (en) Method, system, storage medium and equipment for generating two-dimensional engineering drawing by three-dimensional model
CN115167274A (en) Material cutting method, device, control system, storage medium and electronic equipment
CN112907752A (en) Point cloud slice processing method based on global index
CN113626547A (en) Freight industry map vector slicing method and device, storage medium and terminal
CN112988932A (en) High-precision map labeling method, device, equipment, readable storage medium and product
CN112183543B (en) Image processing method, device, equipment and storage medium
JP2010177760A (en) Mobile terminal, download system, download method, and program for download
CN116187014A (en) Heterogeneous-based parameter template generation method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination