WO2023050744A1 - 地图编辑方法、系统、装置、计算设备、程序产品和存储介质 - Google Patents

地图编辑方法、系统、装置、计算设备、程序产品和存储介质 Download PDF

Info

Publication number
WO2023050744A1
WO2023050744A1 PCT/CN2022/083703 CN2022083703W WO2023050744A1 WO 2023050744 A1 WO2023050744 A1 WO 2023050744A1 CN 2022083703 W CN2022083703 W CN 2022083703W WO 2023050744 A1 WO2023050744 A1 WO 2023050744A1
Authority
WO
WIPO (PCT)
Prior art keywords
editing
information
target image
image area
client
Prior art date
Application number
PCT/CN2022/083703
Other languages
English (en)
French (fr)
Inventor
张搏杰
Original Assignee
上海商汤智能科技有限公司
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 上海商汤智能科技有限公司 filed Critical 上海商汤智能科技有限公司
Publication of WO2023050744A1 publication Critical patent/WO2023050744A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text

Definitions

  • the present invention is based on the Chinese patent application with the application number 202111152777.6, the application date is September 29, 2021, and the application name is "map editing method, system, device, computing equipment and storage medium", and requires the priority of the Chinese patent application Right, the entire content of this Chinese patent application is hereby incorporated into the present invention by way of introduction.
  • the present disclosure relates to the technical field of electronic map processing, and in particular to a map editing method, system, device, computing device, program product and storage medium.
  • the existing electronic map display technology converts real geographical information into vector data through the server, and then renders the vector data by the client, obtains the rendered vector data, and displays it on the electronic map.
  • Embodiments of the present disclosure at least provide a map editing method, system, device, computing device, program product, and storage medium.
  • An embodiment of the present disclosure provides a map editing method applied to a client, including: generating first editing information in response to an editing operation on a target image area on a displayed electronic map; sending the first editing information to a server information; receive the target image element information fed back by the server in response to the first editing information, and based on the target image element information, update the first display image corresponding to the target image area, and obtain the edited An electronic map; wherein, the target image element information is obtained by the server adjusting initial image element information corresponding to the target image area based on the first editing information.
  • different target image areas correspond to vector data of different data volumes
  • multiple target image areas correspond to all vector data of the electronic map.
  • the editing of the part of the vector data corresponding to the target image area in the vector data reduces the amount of data to be processed and is conducive to improving the editing efficiency.
  • by sending the generated first editing information to the server to enable the server to complete the update of the initial image element information corresponding to the target image area the user only needs to perform operations on the client to realize the image displayed on the client.
  • the editing of the vector data corresponding to the electronic map in the software improves the convenience of data processing.
  • the target image area includes at least one vector tile corresponding to the electronic map.
  • vector tiles correspond to vector data, thanks to the feature that vector tiles can load vector data on demand, through vector tiles, it is possible to edit the corresponding part of the vector data, reducing the data that needs to be processed volume, improving the efficiency of data editing.
  • the target image area corresponding to the vector tile can also be edited on the client side through the vector tile, which improves the convenience of data processing.
  • the editing operation includes a first sub-operation and a second sub-operation;
  • the generating the first editing information in response to the editing operation on the target image area on the displayed electronic map includes: Responding to the first sub-operation on the target image area on the displayed electronic map, acquiring initial image element information corresponding to the target image area from the client; displaying the initial image element information through the client, And based on the second sub-operation on the element points corresponding to the initial image element information, determine the first position information of each element point in at least some of the element points; based on the determined first position information, The first editing information is generated.
  • the image element information is editable information corresponding to the target image area, such as area graphics, editable element points and other information.
  • the user can realize the corresponding
  • the editing of the feature points is to perform the second sub-operation.
  • the vector tiles displayed in the electronic map may correspond to multiple image zoom levels. Therefore, after the target image area is edited, by determining the first editing information corresponding to the target image area and each image zoom level, the server can make According to the acquired first editing information, the target image area is modified to the image area corresponding to each image zoom level, which improves the comprehensiveness of data editing.
  • the server after receiving the target image element information fed back by the server in response to the first editing information, it further includes: determining the target image based on the determined first position information The image area to be adjusted corresponding to the image area; deleting the initial image element information corresponding to each image zoom level in the image area to be adjusted.
  • the corresponding image area to be adjusted will be obtained, that is, the edited target image area, and the target image element information fed back by the server is that the image area to be adjusted corresponds to the scaling of each image.
  • the new image element information of the level, the initial image element information of the image area to be adjusted corresponding to each image zoom level stored by the client is the image element information before editing the target image area, and it is the image element information that has not been updated.
  • the method of deleting the above-mentioned initial image element information stored by the client can realize the storage of new target image element information and realize the information update of the local cache.
  • the responding to the editing operation on the target image area on the displayed electronic map it further includes: responding to the map editing request, displaying the corresponding image of the electronic map through the client A map editing page; wherein, the map editing page includes at least one target image area.
  • the user can edit the electronic map at the client end, which improves the convenience of data processing.
  • the client after displaying the map editing page corresponding to the electronic map through the client, it further includes: determining the input image area to be added on the map editing page; based on the generating second editing information corresponding to the second position information corresponding to each element point to be added in the image area to be added; sending the second editing information to the server; receiving feedback from the server in response to the second editing information
  • the image element information to be added, and based on the image element information to be added, generate and display the second display image corresponding to the image area to be added; wherein, the image element information to be added is the server based on The second editing information is the generated image element information corresponding to each image zoom level of the image area to be added.
  • the image area displayed on the electronic map can be increased, and further, the displayed image displayed on the electronic map can be updated.
  • the server after receiving the image element information to be added fed back by the server in response to the second editing information, further includes: The second position information of the element point to be added determines the element information to be deleted corresponding to each image zoom level in the image area to be added; and deletes the stored element information to be deleted.
  • each original image area affected by the image area to be added can be determined. Since the server will determine the original image area affected by the image area to be added according to the second position information The image area corresponding to the update of the image element information for each image zoom level. Therefore, by deleting the element information to be deleted corresponding to the image area to be added stored on the client side and corresponding to each image zoom level, it is possible to use the new image element information obtained from the server to affect each element affected by the stored image area to be added. The image element information of the original image area is updated.
  • the second sub-operation includes at least one of the following: an operation of deleting an element point and an operation of moving an element point.
  • the adjustment of the initial image element information corresponding to the target image area can be realized.
  • the embodiment of the present disclosure also provides a map editing method applied to the server, including: receiving the first editing information sent by the client, the first editing information is the client responding to the target on the displayed electronic map generated by the editing operation of the image area; adjusting the initial image element information corresponding to the target image area based on the first editing information to obtain the target image element information corresponding to the target image area; sending the target image element information to the client Image element information; wherein, the target image element information is used by the client to update the first display image corresponding to the target image area, so as to obtain the edited electronic map.
  • the server after receiving the first editing information sent by the client, the server can automatically adjust the initial image element information corresponding to the target image area based on the first editing information, which improves the timeliness and accuracy of image element information adjustment.
  • the client after sending the target image element information to the client, the client can directly update the initial image element information corresponding to the target image area based on the target image element information, which improves the convenience of the client for data processing and efficiency.
  • An embodiment of the present disclosure also provides a map editing system, including a client and a server, wherein: the client is configured to generate first editing information in response to an editing operation on a target image area on a displayed electronic map ; sending the first editing information to the server; receiving the target image element information fed back by the server in response to the first editing information, and based on the target image element information, updating the first editing information corresponding to the target image area displaying the image, and obtaining the edited electronic map;
  • the server is configured to receive the first editing information sent by the client; adjust the initial image element information corresponding to the target image area based on the first editing information, and obtain the target image element corresponding to the target image area information; sending the target image element information to the client.
  • An embodiment of the present disclosure also provides a map editing device, which is applied to a client, including: a generating module configured to generate first editing information in response to an editing operation on a target image area on a displayed electronic map; a sending module configured to In order to send the first editing information to the server; the update module is configured to receive target image element information fed back by the server in response to the first editing information, and update the target image element information based on the target image element information
  • the first display image corresponding to the image area obtains the edited electronic map; wherein, the target image element information is the initial image element information corresponding to the target image area adjusted by the server based on the first editing information owned.
  • An embodiment of the present disclosure also provides a map editing device, which is applied to a server, and includes: a receiving module configured to receive first editing information sent by a client, where the first editing information is the response of the client to the display Generated by the editing operation of the target image area on the electronic map; the adjustment module is configured to adjust the initial image element information corresponding to the target image area based on the first editing information, and obtain the target image element information corresponding to the target image area a feedback module configured to send the target image element information to the client; wherein the target image element information is used by the client to update the first presentation image corresponding to the target image area to obtain The electronic map after editing.
  • An optional implementation manner of an embodiment of the present disclosure further provides a computer device, including: a processor and a memory, where the memory stores machine-readable instructions executable by the processor, and the processor is configured to execute the instructions in the memory.
  • the machine-readable instructions Stored machine-readable instructions, when the machine-readable instructions are executed by the processor, the machine-readable instructions execute the above method when executed by the processor, or any possible implementation of the method in the steps.
  • An embodiment of the present disclosure also provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to enable a computer to execute the some or all of the steps.
  • the optional implementation of the embodiments of the present disclosure also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed, the above-mentioned method, or any possible method in the above-mentioned method is executed.
  • FIG. 1 is a schematic diagram of the implementation flow of a map editing method applied to a client provided by an embodiment of the present disclosure
  • FIG. 2 is a schematic diagram of an application scenario where a target image region includes multiple vector tiles provided by an embodiment of the present disclosure
  • FIG. 3 is a schematic diagram of an application scenario of a target image area and initial image element information provided by an embodiment of the present disclosure
  • FIG. 4 is a schematic diagram of an implementation flow of a map editing method applied to a server provided by an embodiment of the present disclosure
  • FIG. 5 is a schematic diagram of a map editing system provided by an embodiment of the present disclosure.
  • FIG. 6 is a schematic diagram of the composition and structure of a map editing device applied to a client provided by an embodiment of the present disclosure
  • FIG. 7 is a schematic diagram of the composition and structure of a map editing device applied to a server provided by an embodiment of the present disclosure
  • FIG. 8 is a schematic diagram of the composition and structure of a computer device provided by an embodiment of the present disclosure.
  • the existing electronic map display technology converts real geographical information into vector data through the server, and then renders the vector data by the client, obtains the rendered vector data, and displays it on the electronic map.
  • the present disclosure provides a map editing method, system, device, computing device, and storage medium.
  • Different target image areas correspond to vector data with different data volumes, and multiple target image areas correspond to all vector data of the electronic map.
  • Data based on the editing operation of the target image area, can realize the editing of part of the vector data corresponding to the target image area in all the vector data according to the editing requirements, which reduces the amount of data to be processed and is conducive to improving editing efficiency.
  • the user by sending the generated first editing information to the server to enable the server to complete the update of the initial image element information corresponding to the target image area, the user only needs to perform operations on the client to realize the image displayed on the client.
  • the editing of the vector data corresponding to the electronic map in the software improves the convenience of data processing.
  • Vector tile data exists in the form of vector, which organizes and defines vector data through different description files, and parses the data and completes drawing on the client side in real time. That is, after the client obtains vector tiles, map label fonts, icons, style files and other data through the distributed network, it finally renders and outputs the map on the client.
  • vector tiles are small in size, highly compressible, occupy a small amount of storage space, have a small amount of data transmission, and have a low cost of map update.
  • the execution subject of the map editing method provided in the embodiments of the present disclosure is generally a computer device with a certain computing power.
  • the method for editing a map may be realized by calling a computer-readable instruction stored in a memory by a processor.
  • map editing method provided by the embodiment of the present disclosure will be described below by taking the execution subject as a client as an example.
  • a flow chart of a map editing method applied to a client may include the following steps:
  • S101 Generate first editing information in response to an editing operation on a target image area on a displayed electronic map.
  • the client can be any mobile terminal capable of loading an electronic map.
  • the client can be a user's mobile phone, tablet computer, or personal digital assistant (PDA) used to display an electronic map in a navigation scene.
  • PDA personal digital assistant
  • a handheld device, a computing device, etc. it may also be a vehicle-mounted device (such as a vehicle-mounted display device) used to display an electronic map in a driving scene.
  • vehicle-mounted device such as a vehicle-mounted display device
  • the electronic map can be a map generated by using vector tile technology, and the electronic map can include at least one vector tile, and a vector tile includes at least one piece of vector data, and each piece of vector data is generated according to real geospatial information.
  • the first editing information is information for editing the electronic map.
  • the vector tile corresponds to the target image area in the electronic map.
  • the electronic map can include at least one target image area. There is no overlap between different target image areas in the electronic map.
  • Each target image area corresponds to a display in the electronic map.
  • different display images may have different image shapes.
  • the image shape of the display image corresponding to the target image area Q1 may be a rectangle
  • the image shape of the display image corresponding to the target image area Q2 may be an irregular polygon.
  • Editing operations can be performed by users who have editing needs for vector tiles in the electronic map on the client side where the electronic map is displayed. Since the vector tiles correspond to the target image area in the electronic map, for users, the vector tiles The editing requirement of the slice is the editing requirement of the target image area.
  • an electronic map can be obtained and displayed on the client based on the rendering of vector tiles obtained from the server, wherein the electronic map can include at least one target image area.
  • the user may select a target image area to be edited, and perform an editing operation on the target image area, for example, change the position of the target image area, change the area range of the target image area, and the like.
  • the client may receive the editing operation performed by the user, and in response to the editing operation, generate first editing information according to the target image area to be edited and the edited target image area.
  • the client may generate the above-mentioned first editing information according to the area graph corresponding to the edited target image area and the position information of each corresponding target vector tile.
  • the first editing information may also be directly generated according to the position information of the region graphic corresponding to the edited target image region.
  • S102 Send the first editing information to the server.
  • the server is the generator corresponding to the electronic map, and can communicate with each client using the electronic map function, so as to update the electronic map displayed by the client.
  • the initial image element information is the editable information corresponding to the target image area.
  • the editable information may include an editable area graphic that can represent the area range size of the target image area, an editable area graph that can represent the area range size of the target image area.
  • Information such as feature points, where the editable feature points can be some important key points corresponding to the editable area graphics.
  • the editable area graphic as a rectangle as an example, the editable feature points can be the four vertices corresponding to the rectangle and the rectangle The midpoint of each side, the editable feature point is each feature point that can be edited.
  • the initial image element information can not only represent the target image area, but also be used to edit the target image area.
  • the user can realize the editing of the target image area by adjusting the initial image element information corresponding to the target image area.
  • the adjustment of the initial image element information can be adjusted for each editable area by the user. Edit the position movement operation of the feature point, and the movement operation of each side of the rectangle.
  • the initial image element information corresponding to the target image area can be generated by the server and sent to the client.
  • the client can store the received initial image element information and use the initial image element information to generate and display the target image area corresponding to the electronic map. .
  • the server may also store it in a database corresponding to the server. That is, the initial image element information corresponding to each target image area in the electronic map displayed by the client is stored on both the server and the client.
  • the target image element information is image element information corresponding to the edited target image area, and is image element information newly generated by the server.
  • the client after the client generates the first editing information, it can send the first editing information to the server through the communication network, and then, after receiving the first editing information, the server can generate the target image according to the first editing information The target image element information corresponding to the region.
  • the server may first determine each target vector tile to be operated according to the position information of each vector tile corresponding to the edited target image area in the first editing information, Then the initial image element information and vector data corresponding to each target vector tile to be operated can be obtained stored in the database.
  • the location information of the region graphic and the position of each generated vector tile corresponding to the electronic map Information determine that there is an overlapping vector tile whose location information overlaps with the location information of the area graphic, and use the overlapping vector tile as the determined target vector tile.
  • the server can adjust the initial image element information corresponding to each target vector tile based on the vector data of each target vector tile and the above-mentioned area graphics, and obtain the target image element information corresponding to each target vector tile. That is, a new vector tile corresponding to the edited target image area is generated.
  • the generated new vector tiles are files in a preset format, where the preset format may be a standard file format of Mapbox vector tiles.
  • the server can delete the stored initial image element information corresponding to each target vector tile, and store the newly generated target image element information, thereby realizing the update of the data stored on the server .
  • S103 Receive the target image element information fed back by the server in response to the first editing information, and based on the target image element information, update the first display image corresponding to the target image area to obtain an edited electronic map.
  • the target image element information is obtained by the server adjusting initial image element information corresponding to the target image area based on the first edit information.
  • each vector tile may correspond to a display image
  • the first display image may include a display image corresponding to each target vector tile among target vector tiles corresponding to the edited target image area.
  • the server can send the generated target image element information to the client through the communication network, so that after receiving the target image element information fed back by the server, the client can make new vector tiles corresponding to the target image element information
  • the slice is rendered to obtain a rendered new display image, and the first display image corresponding to the target image area is updated by using the obtained new display image, thereby obtaining an edited and updated electronic map.
  • the client can also initiate a request to the server to obtain the target image element information corresponding to each target vector tile according to the position information of each target vector tile corresponding to the edited target image area, and then the server can respond to In this request, the target image element information is sent to the client, and further, the update of the first display image corresponding to the target image area is completed.
  • different target image areas correspond to vector data with different data volumes, and multiple target image areas correspond to all vector data of the electronic map.
  • the editing of part of the vector data corresponding to the target image area reduces the amount of data to be processed, which is conducive to improving editing efficiency.
  • the user by sending the generated first editing information to the server to enable the server to complete the update of the initial image element information corresponding to the target image area, the user only needs to perform operations on the client to realize the image displayed on the client.
  • the editing of the vector data corresponding to the electronic map in the software improves the convenience of data processing.
  • the target image area includes at least one vector tile corresponding to the electronic map, that is, a target image area may include at least one vector tile, so that, based on the editing operation on the target image area, synchronization to multiple Editing of a vector tile, for example, in the case that an edited vector tile overlaps with other vector tiles, the server can adaptively edit other overlapping vector tiles, realizing a vector The editing of tiles will be synchronized with the editing of other overlapping vector tiles, which improves the editing efficiency.
  • FIG. 2 a schematic diagram of a target image area including multiple vector tiles provided by an embodiment of the present disclosure, wherein the target image area A includes multiple vector tiles, including vector tile V1, vector tile slice V2 and vector tile V3.
  • the editing operation includes a first sub-operation and a second sub-operation.
  • the first sub-operation is an operation on the target image area in the electronic map. It can be known from the above embodiments that the target image area corresponds to a display image of a certain image shape, so in implementation, the first sub-operation can be that the user clicks on the target The operation of displaying images corresponding to the image area.
  • the second sub-operation is an operation on the initial image element information corresponding to the target image area.
  • Step 1 In response to the first sub-operation on the target image area on the displayed electronic map, acquire initial image element information corresponding to the target image area from the client.
  • initial image element information corresponding to each target image area in the electronic map is stored in the client.
  • the initial image element information includes each element point enclosing the target image area, and the positions and numbers of the element points corresponding to different target image areas are different.
  • the vector tiles corresponding to each target image area in the electronic map can be displayed at different image zoom levels.
  • the number and position of the vector tiles in the electronic map are constant, but each vector tile
  • the data amount of the corresponding initial image element information is related to the image zoom level. For example, for the same vector tile, the lower the zoom level of the image, the smaller the data volume of the initial image element information corresponding to the vector tile in the electronic map, and the smaller the element points in the initial image element information corresponding to the vector tile. Conversely, the larger the amount of data corresponding to the vector tile, the more element points in the initial image element information corresponding to the vector tile.
  • both the client and the server store initial image element information corresponding to each image zoom level among all the vector tiles in the electronic map.
  • the client in response to the user's click operation on the display image corresponding to the target image area on the displayed electronic map, the client can determine the vector tile corresponding to the target image area, and the image zoom corresponding to the electronic map when the click operation is performed grade. Then, the client may obtain initial image element information corresponding to the image zoom level from the locally stored initial image element information corresponding to each image zoom level of the vector tile.
  • Step 2 Display the initial image element information through the client, and determine the first position information of each element point in at least some of the element points based on the second sub-operation on the element points corresponding to the initial image element information.
  • the initial image element information may be displayed on the client, that is, each editable element point corresponding to the target image area is displayed to the user.
  • FIG. 3 it is a schematic diagram of a target image area and initial image element information provided by an embodiment of the present disclosure, wherein the initial image element information corresponds to element point a, element point b, element point c, and element point d , feature point e, feature point f, feature point g, feature point h, and feature point i.
  • the user may perform a second sub-operation on at least part of each element point corresponding to the displayed initial image element information, so as to realize editing of the target image area.
  • the second sub-operation may include a feature point deletion operation and/or a feature point movement operation.
  • the user may perform at least one of the above two second sub-operations on at least some of the displayed element points, so as to realize editing of the area range of the target image area corresponding to the initial image element information.
  • the client may determine the first position information corresponding to each element point in the electronic map of at least some of the element points corresponding to the initial image element information after the operation, wherein the first A piece of location information may be the map coordinates of each pixel.
  • Step 3 Generate first editing information based on the determined first location information.
  • the identification information may be the row and column values of each target vector tile in the electronic map.
  • the first editing information may be generated according to the identification information and the first position information of each target vector tile.
  • the first editing information may be editing information corresponding to each image zoom level, because the position information and identification information of the vector tiles corresponding to each image zoom level are the same, so after the server obtains the first editing information, it can be based on
  • the first editing information determines the identification information and position information of each target vector tile corresponding to the edited target image area, so that each image scaling can be determined from the stored vector tiles according to the identification information and the position information
  • the target vector tile corresponding to the identification information and the position information in the level, and after generating the target image element information corresponding to the target vector tile of each image zoom level, delete the target corresponding to each image zoom level stored on the server Vector tiles and their corresponding initial image element information are used to update the data corresponding to the server.
  • the client may first determine the corresponding position of the target image area based on the determined first position information of the adjusted element points.
  • Image area to be adjusted is the image area to which each target vector tile corresponding to the adjusted target image area belongs.
  • the target vector tile corresponding to each first position information may be determined, and further, the image area corresponding to each target vector tile may be used as the image area to be adjusted.
  • the target vector tile corresponding to each image zoom level may also be determined according to the identification information and position information of the target vector tile corresponding to the image area to be adjusted. Afterwards, the initial image element information of the target vector tile corresponding to the image area to be adjusted and each image zoom level stored on the client may be deleted. And store the obtained target image element information in the client.
  • the target image element information fed back by the server is the target image element information of the target vector tile corresponding to each image zoom level newly generated by the server based on the first editing information. .
  • the client displays the map editing page corresponding to the electronic map.
  • the map editing page includes at least one target image area.
  • the user may click the map editing component at a preset position on the electronic map page, and then the client may determine that the user initiates a map editing request in response to the user's clicking operation, and then obtain the map editing component in response to the map editing request.
  • the target image area corresponding to the page and the electronic map is displayed to the user.
  • all the target image areas corresponding to the electronic map may be obtained, or based on the image zoom level of the currently displayed electronic map and each vector tile currently displayed by the client, Obtain the target image area corresponding to the current image zoom level for each vector tile currently displayed, that is, the number of acquired target image areas is the same as the number of each vector tile currently displayed, and the size of each target image area Corresponds to the image zoom level.
  • the vector tiles displayed in the electronic map may also be updated according to the following steps:
  • P1 Determine the image area to be added entered on the map editing page.
  • the image area to be added includes a plurality of element points to be added specified by the user.
  • the user can input the image area to be added at any position on the map editing page, wherein there may be a gap between the image area to be added and the target image area displayed on the map editing page overlapping, or independent of each other.
  • the user can draw a target image of any shape on the map editing page, and then the client can use the area corresponding to the target image as the image area to be added.
  • P2 Generate second editing information based on the second position information corresponding to each element point to be added in the image area to be added.
  • the second position information of each element point to be added in the image area to be added can be obtained, and further, the second position information can be generated according to the second position information and the target image corresponding to the image area to be added. 2. Edit information.
  • P3 Send the second editing information to the server.
  • the client may send the generated second editing information to the server through the communication network, and after receiving the second editing information, the server may, according to the respective second location information corresponding to the second editing information and the generated For the location information of the vector tile, determine the vector tile to be edited whose location information corresponds to the second location information from the generated vector tiles.
  • the tiles to be edited include vector tiles whose image areas to be added correspond to respective image zoom levels.
  • the to-be-added image element information of the new vector tile corresponding to each image zoom level may be generated respectively.
  • the server can feed back the generated image element information corresponding to each image zoom level to the client.
  • the server can store the original image corresponding to the vector tile to be edited corresponding to each image zoom level stored in the local database
  • the element information is deleted, and the image element information to be added of the new vector tile is stored.
  • the vector tile to be edited can be deleted directly, and a new vector tile can be stored.
  • P4 receiving the image element information to be added fed back by the server in response to the second editing information, and based on the image element information to be added, generating and displaying a second display image corresponding to the image area to be added.
  • the image element information to be added is the image element information generated by the server based on the second editing information and corresponding to each image zoom level of the image area to be added.
  • the client may, according to the received image scaling level corresponding to the image element to be added information and vector data, and generate a second display image corresponding to the zoom level of the image.
  • the client can display the second display image corresponding to the image zoom level on the electronic map in the client according to the image zoom level corresponding to the electronic map when the second editing information is generated.
  • the second display image corresponding to the image zoom level can be used to replace the display image corresponding to the vector tile to be edited displayed on the client, and the above-mentioned second display image is displayed to the user, thereby completing the display on the client The update of the displayed electronic map.
  • the client may store the second position information of each element point to be added corresponding to the image element information to be added, and store The location information of the generated vector tiles corresponding to each image zoom level in the local area, respectively determine the vector tiles to be edited corresponding to each image zoom level, and then, the vector tiles to be edited corresponding to each image zoom level
  • the initial image element information of is used as the element information to be deleted corresponding to the image zoom level.
  • the client can delete the element information to be deleted corresponding to each image zoom level, that is, to delete the vector tile to be edited corresponding to each image zoom level, and store the acquired image element information to be added, and complete the client-stored Update of data information.
  • the server can also send the identification information of each vector tile to be edited.
  • the client can directly add the The generated vector tiles stored locally that match the identification information are deleted, and the image element information to be added is stored to complete the data update. In this way, the client omits the step of determining the vector tile to be edited according to the second location information, which increases the speed of data update.
  • the disclosure example also provides a map editing method applied to the server corresponding to the map editing method applied to the client, through the interaction between the client and the server, the update of the electronic map displayed on the client is completed .
  • a flow chart of a map editing method applied to a server may include the following steps:
  • S401 Receive first editing information sent by a client.
  • the first editing information is generated by the client in response to an editing operation on the target image area on the displayed electronic map.
  • the client terminal can generate first editing information in response to editing operations on the target image area on the displayed electronic map, and send the first editing information to the server terminal through the communication network.
  • the server may receive the first editing information sent by the client.
  • S402 Adjust initial image element information corresponding to the target image area based on the first editing information to obtain target image element information corresponding to the target image area.
  • the server may generate target image element information corresponding to the target image area according to the first editing information.
  • the server may first determine each target vector tile to be operated according to the position information of each vector tile corresponding to the edited target image area in the first editing information, Then the initial image element information and vector data corresponding to each target vector tile to be operated can be obtained stored in the database.
  • the location information of the region graphic and the position of each generated vector tile corresponding to the electronic map Information determine that there is an overlapping vector tile whose location information overlaps with the location information of the area graphic, and use the overlapping vector tile as the determined target vector tile.
  • the server can adjust the initial image element information corresponding to each target vector tile based on the vector data of each target vector tile and the above-mentioned area graphics, and obtain the target image element information corresponding to each target vector tile. That is, a new vector tile corresponding to the edited target image area is generated.
  • the generated new vector tiles are files in a preset format, where the preset format may be a standard file format of Mapbox vector tiles.
  • the server can delete the stored initial image element information corresponding to each target vector tile, and store the newly generated target image element information, thereby realizing the update of the data stored on the server .
  • S403 Send target image element information to the client.
  • the target image element information is used by the client to update the first display image corresponding to the target image area to obtain an edited electronic map.
  • the server may send the generated target image element information to the client, so that based on the target image element information, the first display image corresponding to the target image area is updated to obtain an edited electronic map.
  • the disclosed example also provides a map editing system, including a client and a server, wherein: the client is configured to generate first editing information in response to editing operations on the target image area on the displayed electronic map; Sending the first editing information to the server; receiving the target image element information fed back by the server in response to the first editing information, and based on the target image element information, updating the first display image corresponding to the target image area to obtain an edited electronic map;
  • the server is configured to receive the first editing information sent by the client; adjust the initial image element information corresponding to the target image area based on the first editing information, and obtain the target image element information corresponding to the target image area; send the target image to the client Element information.
  • FIG. 5 it is a schematic diagram of a map editing system provided by an embodiment of the present disclosure, including a client 501, a server 502 and a user 503, wherein the client 501 can respond to the user 503's response to the displayed electronic map
  • the editing operation of the target image area on the image generates first editing information, and sends the first editing information to the server 502 through the communication network.
  • the server 502 may receive the first editing information sent by the client 501, and adjust the initial image element information corresponding to the target image area based on the first editing information, and obtain the target image element information corresponding to the target image area, and then, may pass
  • the communication network transmits the generated target image element information to the client 501 .
  • the client 501 may receive the target image element information fed back by the server 502, and based on the target image element information, update the first display image corresponding to the target image area, so as to obtain the edited electronic map, and store the The electronic map is displayed to the user 503 .
  • the embodiment of the present disclosure also provides a map editing device applied to the client corresponding to the map editing method applied to the client. Since the problem-solving principle of the device in the embodiment of the present disclosure is consistent with the above-mentioned application of the embodiment of the present disclosure It is similar to the map editing method of the client, so the implementation of the device can refer to the implementation of the method.
  • FIG. 6 it is a schematic diagram of a map editing device applied to a client provided by an embodiment of the present disclosure, including:
  • the generating module 601 is configured to generate first editing information in response to an editing operation on the target image area on the displayed electronic map;
  • the updating module 603 is configured to receive the target image element information fed back by the server in response to the first editing information, and based on the target image element information, update the first display image corresponding to the target image area to obtain the edited The said electronic map after that;
  • the target image element information is obtained by the server adjusting initial image element information corresponding to the target image area based on the first editing information.
  • the target image area includes at least one vector tile corresponding to the electronic map.
  • the editing operation includes a first sub-operation and a second sub-operation
  • the generating module 601 is configured to acquire initial image element information corresponding to the target image area from the client in response to the first sub-operation on the target image area on the displayed electronic map;
  • the first editing information is generated based on the determined first position information.
  • the device also includes:
  • the first deletion module 604 is configured to, after receiving the target image element information fed back by the server in response to the first editing information, based on the determined first position information, determine the corresponding position of the target image area Image area to be adjusted;
  • the device also includes:
  • the presentation module 605 is configured to display a map editing page corresponding to the electronic map through the client in response to the map editing request before the response to the editing operation on the target image area on the displayed electronic map; wherein, The map editing page includes at least one target image area.
  • the generating module 601 is further configured to determine the input to be entered on the map editing page after displaying the map editing page corresponding to the electronic map through the client. add image area;
  • the sending module 602 is further configured to send the second editing information to the server;
  • the update module 603 is further configured to receive the image element information to be added fed back by the server in response to the second editing information, and generate and display the image to be added based on the image element information to be added a second display image corresponding to the region;
  • the image element information to be added is the image element information generated by the server based on the second editing information, and the image area to be added corresponds to each image zoom level.
  • the device also includes:
  • the second deletion module 606 is configured to, after receiving the image element information to be added fed back by the server in response to the second editing information, based on each of the image element information to be added corresponding to the image element information to be added The second position information of the element points, determining the image area to be added and the element information to be deleted corresponding to each of the image zoom levels;
  • the second sub-operation includes a feature point deletion operation and/or a feature point movement operation.
  • the embodiment of the present disclosure also provides a map editing device applied to the server corresponding to the map editing method applied to the server. Since the problem-solving principle of the device in the embodiment of the present disclosure is consistent with the above-mentioned application of the embodiment of the present disclosure It is similar to the map editing method on the server side, so the implementation of the device can refer to the implementation of the method.
  • FIG. 7 it is a schematic diagram of a map editing device applied to a server provided by an embodiment of the present disclosure, including:
  • the receiving module 701 is configured to receive the first editing information sent by the client, the first editing information is generated by the client in response to the editing operation on the target image area on the displayed electronic map;
  • the adjustment module 702 is configured to adjust the initial image element information corresponding to the target image area based on the first editing information, and obtain the target image element information corresponding to the target image area;
  • a feedback module 703, configured to send the target image element information to the client
  • the target image element information is used by the client to update the first display image corresponding to the target image area, so as to obtain the edited electronic map.
  • the embodiment of the present disclosure also provides a computer device, as shown in Figure 8, which is a schematic structural diagram of a computer device provided by the embodiment of the present disclosure, including:
  • Processor 81 and memory 82 stores machine-readable instructions executable by the processor 81, the processor 81 is configured to execute the machine-readable instructions stored in the memory 82, and the machine-readable instructions are executed by the processor 81 During execution, the processor 81 performs the following steps: S101: Generate first editing information in response to the editing operation on the target image area on the displayed electronic map; S102: Send the first editing information to the server and S103: Receive the service The terminal responds to the target image element information fed back by the first editing information, and based on the target image element information, updates the first display image corresponding to the target image area to obtain the edited electronic map.
  • the above-mentioned memory 82 includes a memory 821 and an external memory 822; the memory 821 here is also called an internal memory, and is configured to temporarily store the calculation data in the processor 81 and the data exchanged with the external memory 822 such as a hard disk.
  • the external memory 822 performs data exchange.
  • Embodiments of the present disclosure further provide a computer-readable storage medium, on which a computer program is stored, and when the computer program is run by a processor, the steps of the map editing method described in the foregoing method embodiments are executed.
  • the storage medium may be a volatile or non-volatile computer-readable storage medium.
  • the computer program product of the map editing method provided by the embodiments of the present disclosure includes a computer-readable storage medium storing program codes, and the instructions included in the program code can be used to execute the steps of the map editing method described in the above method embodiments , refer to the above method embodiment.
  • the computer program product can be realized by hardware, software or a combination thereof.
  • the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK) and the like.
  • the working process of the system and device described above can refer to the corresponding process in the foregoing method embodiments.
  • the disclosed systems, devices and methods may be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division.
  • multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some communication interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the functions are realized in the form of software function units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium executable by a processor.
  • the technical solution of the present disclosure is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present disclosure.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disc and other media that can store program codes. .
  • different target image areas correspond to vector data of different data amounts
  • multiple target image areas correspond to all vector data of the electronic map.
  • the editing of the part of the vector data corresponding to the target image area in all the vector data reduces the amount of data to be processed, which is conducive to improving the editing efficiency.
  • the user by sending the generated first editing information to the server to enable the server to complete the update of the initial image element information corresponding to the target image area, the user only needs to perform operations on the client to realize the image displayed on the client.
  • the editing of the vector data corresponding to the electronic map improves the editing efficiency of the electronic map, and improves the convenience of map editing and data processing.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

本公开实施例公开了一种地图编辑方法、装置、计算机设备、程序产品和存储介质,其中,该方法包括:响应于对显示的电子地图上的目标图像区域的编辑操作,生成第一编辑信息;向服务端发送第一编辑信息;接收服务端响应于第一编辑信息反馈的目标图像要素信息,并基于目标图像要素信息,更新目标图像区域对应的第一展示图像,得到编辑后的电子地图;其中,目标图像要素信息为服务端基于第一编辑信息调整目标图像区域对应的初始图像要素信息得到的。

Description

地图编辑方法、系统、装置、计算设备、程序产品和存储介质
相关申请的交叉引用
本发明基于申请号为202111152777.6、申请日为2021年09月29日、申请名称为“地图编辑方法、系统、装置、计算设备和存储介质”的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此以引入方式并入本发明。
技术领域
本公开涉及电子地图处理技术领域,尤其涉及一种地图编辑方法、系统、装置、计算设备、程序产品和存储介质。
背景技术
电子地图作为一种便捷的地理信息获取手段,在人们的生活中发挥着重要的作用。现有的电子地图展示技术,通过服务端将真实的地理信息转化为矢量数据,再由客户端对矢量数据进行渲染,得到渲染后的矢量数据,并将其展示在电子地图中。
通常情况下,电子地图中展示的渲染后的矢量数据的数据量巨大,而针对海量的矢量数据的编辑问题,现有的编辑技术,常常受限于如网络带宽、客户端渲染能力等的影响,导致矢量数据的编辑过程出现卡顿等问题,从而,降低了矢量数据编辑的效率。
发明内容
本公开实施例至少提供一种地图编辑方法、系统、装置、计算设备、程序产品和存储介质。
本公开实施例提供了一种地图编辑方法,应用于客户端,包括:响应于对显示的电子地图上的目标图像区域的编辑操作,生成第一编辑信息;向服务端发送所述第一编辑信息;接收所述服务端响应于所述第一编辑信息反馈的目标图像要素信息,并基于所述目标图像要素信息,更新所述目标图像区域对应的第一展示图像,得到编辑后的所述电子地图;其中,所述目标图像要素信息为所述服务端基于所述第一编辑信息调整所述目标图像区域对应的初始图像要素信息得到的。
该实施方式,不同的目标图像区域对应于不同数据量的矢量数据,多个目标图像区域对应于电子地图全部的矢量数据,基于对目标图像区域的编辑操作,可以实现根据编辑需求,对全部的矢量数据中目标图像区域对应的部分矢量数据的编辑,减少了需要处理的数据量,有利于提高编辑效率。同时,通过将生成的第一编辑信息发送给服务端以使服务端完成对目标图像区域对应的初始图像要素信息的更新的方式,用户只需要在客户端执行操作就可以实现对展示在客户端中的电子地图对应的矢量数据的编辑,提升了数据处理的便利性。
在一种可能的实施方式中,所述目标图像区域包括所述电子地图对应的至少一个矢量瓦片。
该实施方式,矢量瓦片对应于矢量数据,得益于矢量瓦片能够按需加载矢量数据的 特点,通过矢量瓦片,可以实现对其对应的部分矢量数据的编辑,减少了需要处理的数据量,提高了数据编辑效率。此外,由于矢量瓦片还有交互性强的特性,通过矢量瓦片,还可以实现在客户端对矢量瓦片对应的目标图像区域的编辑,提升了数据处理的便利性。
在一种可能的实施方式中,所述编辑操作包括第一子操作和第二子操作;所述响应于对显示的电子地图上的目标图像区域的编辑操作,生成第一编辑信息,包括:响应于对显示的电子地图上的目标图像区域的第一子操作,从所述客户端中获取所述目标图像区域对应的初始图像要素信息;通过所述客户端展示所述初始图像要素信息,并基于对所述初始图像要素信息对应的要素点的第二子操作,确定所述要素点的至少部分要素点中每个要素点的第一位置信息;基于确定的所述第一位置信息,生成所述第一编辑信息。
该实施方式,图像要素信息为目标图像区域对应的可编辑信息,例如,区域图形、可编辑要素点等信息,通过将初始图像要素信息展示在客户端的方式,用户可以实现对初始图像要素信息对应的要素点的编辑,即执行第二子操作。电子地图中展示的矢量瓦片可以对应于多个图像缩放等级,因此,当目标图像区域被编辑之后,通过确定目标图像区域与每个图像缩放等级相对应的第一编辑信息,可以使服务端根据获取的第一编辑信息,对目标图像区域与每个图像缩放等级相对应的图像区域进行修改,提高了数据编辑的全面性。
在一种可能的实施方式中,在所述接收所述服务端响应于所述第一编辑信息反馈的目标图像要素信息之后,还包括:基于确定的所述第一位置信息,确定所述目标图像区域对应的待调整图像区域;删除所述待调整图像区域与各个图像缩放等级相对应的初始图像要素信息。
该实施方式,对目标图像区域进行编辑后,将得到其对应的待调整图像区域,也即,编辑后的目标图像区域,服务端反馈的目标图像要素信息为待调整图像区域对应于各个图像缩放等级的新的图像要素信息,客户端存储的待调整图像区域对应于各个图像缩放等级的初始图像要素信息为对目标图像区域进行编辑前的图像要素信息,为未更新的图像要素信息,通过将客户端存储的上述初始图像要素信息删除的方式,可以实现对新的目标图像要素信息的存储,实现了对本地缓存的信息更新。
在一种可能的实施方式中,在所述响应于对显示的电子地图上的目标图像区域的编辑操作之前,还包括:响应于地图编辑请求,通过所述客户端展示所述电子地图对应的地图编辑页面;其中,所述地图编辑页面包括至少一个所述目标图像区域。
该实施方式,基于展示的包括至少一个目标图像区域的地图编辑页面,可以实现用户在客户端对电子地图的编辑,提高了数据处理的便利性。
在一种可能的实施方式中,在所述通过所述客户端展示所述电子地图对应的地图编 辑页面之后,还包括:确定在所述地图编辑页面上输入的待添加图像区域;基于所述待添加图像区域中各个待添加要素点对应的第二位置信息,生成第二编辑信息;向所述服务端发送所述第二编辑信息;接收所述服务端响应于所述第二编辑信息反馈的所述待添加图像要素信息,并基于所述待添加图像要素信息,生成并展示所述待添加图像区域对应的第二展示图像;其中,所述待添加图像要素信息为所述服务端基于所述第二编辑信息,生成的所述待添加图像区域与各个图像缩放等级相对应的图像要素信息。
该实施方式,基于输入的待添加图像区域,可以实现对电子地图中展示的图像区域的增加,进而,实现了对电子地图中展示的展示图像的更新。
在一种可能的实施方式中,在所述接收所述服务端响应于所述第二编辑信息反馈的所述待添加图像要素信息之后,还包括:基于所述待添加图像要素信息对应的各个所述待添加要素点的第二位置信息,确定所述待添加图像区域与各个所述图像缩放等级相对应的待删除要素信息;删除存储的所述待删除要素信息。
该实施方式,基于待添加要素点的第二位置信息,能够确定出待添加图像区域所影响的各个原始的图像区域,由于服务端将根据第二位置信息,对待添加图像区域所影响的各个原始的图像区域对应于各个图像缩放等级的图像要素信息的更新。从而,通过删除客户端存储的待添加图像区域与各个图像缩放等级相对应的待删除要素信息,可以实现利用从服务端获取的新的图像要素信息,对存储的待添加图像区域所影响的各个原始的图像区域的图像要素信息的更新。
在一种可能的实施方式中,所述第二子操作至少包括以下一种:要素点删除操作和要素点移动操作。
该实施方式,根据第二子操作中的任意一种或多种操作,能够实现对目标图像区域对应的初始图像要素信息的调整。
本公开实施例还提供一种地图编辑方法,应用于服务端,包括:接收客户端发送的第一编辑信息,所述第一编辑信息为所述客户端响应于对显示的电子地图上的目标图像区域的编辑操作生成的;基于所述第一编辑信息调整所述目标图像区域对应的初始图像要素信息,得到所述目标图像区域对应的目标图像要素信息;向所述客户端发送所述目标图像要素信息;其中,所述目标图像要素信息用于所述客户端对所述目标图像区域对应的第一展示图像进行更新,以得到编辑后的所述电子地图。
该实施方式,服务端在接收到客户端发送的第一编辑信息之后,可以基于第一编辑信息实现对目标图像区域对应的初始图像要素信息进行自动调整,提升了图像要素信息调整的及时性和效率,并在将目标图像要素信息发送至客户端之后,客户端可以直接基于该目标图像要素信息对目标图像区域对应的初始图像要素信息的更新的方式,提高了客户端进行数据处理的便利性和效率。
本公开实施例还提供了一种地图编辑系统,包括客户端和服务端,其中:所述客户 端,配置为响应于对显示的电子地图上的目标图像区域的编辑操作,生成第一编辑信息;向服务端发送所述第一编辑信息;接收所述服务端响应于所述第一编辑信息反馈的目标图像要素信息,并基于所述目标图像要素信息,更新所述目标图像区域对应的第一展示图像,得到编辑后的所述电子地图;
所述服务端,配置为接收客户端发送的所述第一编辑信息;基于所述第一编辑信息调整所述目标图像区域对应的初始图像要素信息,得到所述目标图像区域对应的目标图像要素信息;向所述客户端发送所述目标图像要素信息。
本公开实施例还提供一种地图编辑装置,应用于客户端,包括:生成模块,配置为响应于对显示的电子地图上的目标图像区域的编辑操作,生成第一编辑信息;发送模块,配置为向服务端发送所述第一编辑信息;更新模块,配置为接收所述服务端响应于所述第一编辑信息反馈的目标图像要素信息,并基于所述目标图像要素信息,更新所述目标图像区域对应的第一展示图像,得到编辑后的所述电子地图;其中,所述目标图像要素信息为所述服务端基于所述第一编辑信息调整所述目标图像区域对应的初始图像要素信息得到的。
本公开实施例还提供一种地图编辑装置,应用于服务端,包括:接收模块,配置为接收客户端发送的第一编辑信息,所述第一编辑信息为所述客户端响应于对显示的电子地图上的目标图像区域的编辑操作生成的;调整模块,配置为基于所述第一编辑信息调整所述目标图像区域对应的初始图像要素信息,得到所述目标图像区域对应的目标图像要素信息;反馈模块,配置为向所述客户端发送所述目标图像要素信息;其中,所述目标图像要素信息用于所述客户端对所述目标图像区域对应的第一展示图像进行更新,以得到编辑后的所述电子地图。
本公开实施例可选实现方式还提供一种计算机设备,包括:处理器、存储器,所述存储器存储有所述处理器可执行的机器可读指令,所述处理器配置为执行所述存储器中存储的机器可读指令,所述机器可读指令被所述处理器执行时,所述机器可读指令被所述处理器执行时执行上述方法,或所述方法中任一种可能的实施方式中的步骤。
本公开实施例还提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如本公开实施例中所描述的部分或全部步骤。
本公开实施例可选实现方式还提供一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被运行时执行上述方法,或所述方法中任一种可能的实施方式中的步骤,或者,所述机器可读指令被所述处理器执行时执行上述应用于服务端的地图编辑方法。
关于上述地图编辑系统、装置、计算机设备、及计算机可读存储介质的效果描述参见上述地图编辑方法的说明。
为使本公开实施例的上述目的、特征和优点能更明显易懂,下文说明部分示例性实施例,并配合所附附图,作详细说明如下。
附图说明
为了更清楚地说明本公开实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,此处的附图被并入说明书中并构成本说明书中的一部分,这些附图示出了符合本公开的实施例,并与说明书一起用于说明本公开的技术方案。应当理解,以下附图仅示出了本公开的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。
图1为本公开实施例所提供的应用于客户端的地图编辑方法的实现流程示意图;
图2为本公开实施例所提供的目标图像区域包括多个矢量瓦片的应用场景示意图;
图3为本公开实施例所提供的目标图像区域和初始图像要素信息的应用场景示意图;
图4为本公开实施例所提供的应用于服务端的地图编辑方法的实现流程示意图;
图5为本公开实施例所提供的地图编辑系统的示意图;
图6为本公开实施例所提供的应用于客户端的地图编辑装置的组成结构示意图;
图7为本公开实施例所提供的应用于服务端的地图编辑装置的组成结构示意图;
图8为本公开实施例所提供的计算机设备的组成结构示意图。
具体实施方式
为使本公开实施例的目的、技术方案和优点更加清楚,下面将结合本公开实施例中附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本公开一部分实施例,而不是全部的实施例。通常在此处描述和示出的本公开实施例的组件可以以各种不同的配置来布置和设计。因此,以下对本公开的实施例的详细描述并非旨在限制要求保护的本公开的范围,而是仅仅表示本公开的选定实施例。基于本公开的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本公开保护的范围。
另外,本公开实施例中的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。
经研究发现,电子地图作为一种便捷的地理信息获取手段,在人们的生活中发挥着重要的作用。现有的电子地图展示技术,通过服务端将真实的地理信息转化为矢量数据,再由客户端对矢量数据进行渲染,得到渲染后的矢量数据,并将其展示在电子地图中。
通常情况下,电子地图中展示的渲染后的矢量数据的数据量巨大,而针对海量的矢 量数据的编辑问题,现有的编辑技术,常常受限于如网络带宽、客户端渲染能力等的影响,导致矢量数据的编辑过程出现卡顿等问题,从而,降低了矢量数据编辑的效率。
基于上述研究,本公开提供了一种地图编辑方法、系统、装置、计算设备和存储介质,不同的目标图像区域对应于不同数据量的矢量数据,多个目标图像区域对应于电子地图全部的矢量数据,基于对目标图像区域的编辑操作,可以实现根据编辑需求,对全部的矢量数据中目标图像区域对应的部分矢量数据的编辑,减少了需要处理的数据量,有利于提高编辑效率。同时,通过将生成的第一编辑信息发送给服务端以使服务端完成对目标图像区域对应的初始图像要素信息的更新的方式,用户只需要在客户端执行操作就可以实现对展示在客户端中的电子地图对应的矢量数据的编辑,提升了数据处理的便利性。
针对现有实现方案所存在的缺陷,均是发明人在经过实践并仔细研究后得出的结果,因此,上述问题的发现过程以及下文中本公开针对上述问题所提出的解决方案,都应该是发明人在本公开过程中对本公开做出的贡献。
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,在随后的附图中不需要对其进行进一步定义和解释。
需要说明的是,本公开实施例中所提到的特定名词包括:
矢量瓦片:矢量瓦片数据以矢量形式存在,是将矢量数据通过不同的描述文件来组织和定义,并在客户端实时解析数据和完成绘制。即当客户端通过分布式网络获取矢量瓦片、地图标注字体、图标、样式文件等数据后,最终在客户端进行渲染输出地图。相较于传统的栅格瓦片而言,矢量瓦片体积小,可高度压缩,占用的存储空间小,数据传输体量小,且地图更新的代价小。
为便于对本实施例进行理解,首先对本公开实施例所公开的一种地图编辑方法进行详细介绍,本公开实施例所提供的地图编辑方法的执行主体一般为具有一定计算能力的计算机设备,在一些可能的实现方式中,该地图编辑方法可以通过处理器调用存储器中存储的计算机可读指令的方式来实现。
下面以执行主体为客户端为例对本公开实施例提供的地图编辑方法加以说明。
如图1所示,为本公开实施例提供的一种应用于客户端的地图编辑方法的流程图,可以包括以下步骤:
S101:响应于对显示的电子地图上的目标图像区域的编辑操作,生成第一编辑信息。
这里,客户端可以为任一个具有加载电子地图的能力的移动终端,例如,客户端可以为在导航场景下用于展示电子地图的用户手机、平板电脑、个人数字处理(Personal Digital Assistant,PDA)、手持设备、计算设备等;也可以为在驾驶场景下用于展示电子地图的车载设备(如车载显示屏设备)等。
电子地图可以为采用矢量瓦片技术生成的地图,电子地图中可以包括至少一个矢量 瓦片,一个矢量瓦片中包括至少一条矢量数据,每条矢量数据根据真实的地理空间信息生成。
第一编辑信息为用于对电子地图进行编辑的信息。
矢量瓦片对应于电子地图中的目标图像区域,电子地图中可以包括至少一个目标图像区域,不同的目标图像区域在电子地图中不存在重叠,每个目标图像区域在电子地图中对应于一个展示图像,不同的展示图像的图像形状可以存在差异,例如,目标图像区域Q1对应的展示图像的图像形状可以为矩形,目标图像区域Q2对应的展示图像的图像形状可以为不规则多边形。
编辑操作可以为对电子地图中的矢量瓦片存在编辑需求的用户在展示电子地图的客户端执行的,由于矢量瓦片对应于电子地图中的目标图像区域,所以针对用户而言,对矢量瓦片的编辑需求即为对目标图像区域的编辑需求。
在实施时,在客户端加载有矢量瓦片服务的前提下,可以基于对从服务端获取的矢量瓦片的渲染,得到电子地图并展示在客户端,其中,电子地图中可以包括至少一个目标图像区域。
进而,用户可以选取待编辑的目标图像区域,并对该目标图像区域执行编辑操作,例如,改变目标图像区域的位置,改变目标图像区域的区域范围等。然后,客户端可以接收到用户执行的编辑操作,并响应于编辑操作,根据待编辑的目标图像区域和编辑后的目标图像区域,生成第一编辑信息。示例性地,客户端可以根据编辑后的目标图像区域对应的区域图形及其对应的各个目标矢量瓦片的位置信息,生成上述第一编辑信息。或者,也可以直接根据编辑后的目标图像区域对应的区域图形的位置信息生成第一编辑信息。
S102:向服务端发送第一编辑信息。
这里,服务端为电子地图对应的生成端,可以与使用电子地图功能的每个客户端进行通信连接,以实现对客户端展示的电子地图的更新。
初始图像要素信息为目标图像区域对应的可编辑信息,示例性地,可编辑信息可以包括能够表征目标图像区域的区域范围大小的可编辑区域图形、能够表征目标图像区域的区域范围大小的可编辑要素点等信息,其中,可编辑要素点可以为可编辑区域图形对应的部分重要关键点,以可编辑区域图形为矩形为例,可编辑要素点可以为该矩形对应的四个顶点以及该矩形各个边的中点,可编辑要素点即为可编辑的各个要素点。初始图像要素信息既能够表征目标图像区域,又可以用于对目标图像区域的编辑,在实施时,用户可以通过对目标图像区域对应的初始图像要素信息的调整,实现对目标图像区域的编辑。以初始图像要素信息对应的可编辑区域图形为矩形,可编辑要素点为该矩形对应的四个顶点以及该矩形各个边的中点为例,对初始图像要素信息的调整可以为用户对各个可编辑要素点的位置移动操作、以及对矩形的各个边的移动操作。
目标图像区域对应的初始图像要素信息可以由服务端生成并发送给客户端,客户端可以将接收到的初始图像要素信息存储,并利用初始图像要素信息,生成电子地图对应的目标图像区域并展示。并且,服务端在生成初始图像要素信息之后,也可以将其存储在服务端对应的数据库中。也即,客户端展示的电子地图中的每个目标图像区域对应的初始图像要素信息,在服务端和客户端都有存储。
目标图像要素信息为编辑后的目标图像区域对应的图像要素信息,为服务端新生成的图像要素信息。
本步骤中,客户端在生成第一编辑信息之后,可以通过通信网络向服务端发送第一编辑信息,进而,服务端可以在接收到第一编辑信息之后,根据第一编辑信息,生成目标图像区域对应的目标图像要素信息。
示例性地,服务端在接收到第一编辑信息之后,可以先根据第一编辑信息中的编辑后的目标图像区域对应的各个矢量瓦片的位置信息,确定各个待操作的目标矢量瓦片,然后可以获取存储在数据库中的各个待操作的目标矢量瓦片对应的初始图像要素信息和矢量数据。
或者,在第一编辑信息中仅包括编辑后的目标图像区域对应的区域图形的位置信息的情况下,可以根据该区域图形的位置信息以及电子地图对应的、已生成的各个矢量瓦片的位置信息,确定存在位置信息与区域图形的位置信息相重叠的重叠矢量瓦片,将重叠矢量瓦片作为确定的目标矢量瓦片。
之后,服务端可以基于各个目标矢量瓦片的矢量数据,以及上述区域图形,分别对各个目标矢量瓦片对应的初始图像要素信息进行调整,得到各个目标矢量瓦片对应的目标图像要素信息,也即,生成编辑后的目标图像区域对应的新的矢量瓦片。这里,生成的新的矢量瓦片为预设格式的文件,其中,预设格式可以为Mapbox矢量瓦片标准的文件格式。
并且,服务端在生成目标图像要素信息之后,可以将存储的各个目标矢量瓦片对应的初始图像要素信息删除,并存储新生成的目标图像要素信息,从而,实现对服务端存储的数据的更新。
S103:接收服务端响应于第一编辑信息反馈的目标图像要素信息,并基于目标图像要素信息,更新目标图像区域对应的第一展示图像,得到编辑后的电子地图。
其中,目标图像要素信息为服务端基于第一编辑信息调整目标图像区域对应的初始图像要素信息得到的。
这里,每个矢量瓦片可以对应于一个展示图像,第一展示图像可以包括编辑后的目标图像区域对应的各个目标矢量瓦片中的每个目标矢量瓦片对应的展示图像。
在实施时,服务端可以通过通信网络向客户端发送生成的目标图像要素信息,从而,客户端可以在接收到服务端反馈的目标图像要素信息之后,对目标图像要素信息对应的 新的矢量瓦片进行渲染,得到渲染后的新的展示图像,并利用得到的新的展示图像,对目标图像区域对应的第一展示图像进行更新,从而得到编辑后的、更新后的电子地图。
或者,客户端也可以根据编辑后的目标图像区域对应的各个目标矢量瓦片的位置信息,向服务端发起获取各个目标矢量瓦片对应的目标图像要素信息的请求,之后,服务端可以响应于该请求,将目标图像要素信息发送给客户端,进而,完成对目标图像区域对应的第一展示图像的更新。
这样,不同的目标图像区域对应于不同数据量的矢量数据,多个目标图像区域对应于电子地图全部的矢量数据,基于对目标图像区域的编辑操作,可以实现根据编辑需求,对全部的矢量数据中目标图像区域对应的部分矢量数据的编辑,减少了需要处理的数据量,有利于提高编辑效率。同时,通过将生成的第一编辑信息发送给服务端以使服务端完成对目标图像区域对应的初始图像要素信息的更新的方式,用户只需要在客户端执行操作就可以实现对展示在客户端中的电子地图对应的矢量数据的编辑,提升了数据处理的便利性。
在一种实施例中,目标图像区域包括电子地图对应的至少一个矢量瓦片,即一个目标图像区域可以包括至少一个矢量瓦片,这样,基于对目标图像区域的编辑操作,可以实现同步对多个矢量瓦片的编辑,例如,在编辑后的一个矢量瓦片与其他矢量瓦片存在重叠的情况下,服务端可以自适应的对存在重叠的其他矢量瓦片进行编辑,实现了对一个矢量瓦片的编辑会同步到对存在重叠的其他矢量瓦片的编辑,提高了编辑效率。如图2所示,为本公开实施例所提供的一种目标图像区域包括多个矢量瓦片的示意图,其中,目标图像区域A中包括多个矢量瓦片,包括矢量瓦片V1,矢量瓦片V2和矢量瓦片V3。
在一种实施例中,编辑操作包括第一子操作和第二子操作。
这里,第一子操作为针对电子地图中的目标图像区域的操作,由上述实施例可知,目标图像区域对应于一定图像形状的展示图像,所以在实施时,第一子操作可以是用户点击目标图像区域对应的展示图像的操作。
第二子操作为针对目标图像区域对应的初始图像要素信息的操作。
针对S101,可以按照以下步骤实施:
步骤一、响应于对显示的电子地图上的目标图像区域的第一子操作,从客户端中获取目标图像区域对应的初始图像要素信息。
这里,客户端中存储有电子地图中的各个目标图像区域对应的初始图像要素信息。初始图像要素信息包括围成目标图像区域的各个要素点,不同的目标图像区域对应的要素点位置和数量不同。
电子地图中的各个目标图像区域对应的矢量瓦片可以以不同的图像缩放等级进行展示,在每个图像缩放等级中,电子地图中的矢量瓦片的数量和位置一定,但每个矢量瓦片对应的初始图像要素信息的数据量的多少,与图像缩放等级存在关联关系。示例性 地,针对同一矢量瓦片,图像缩放等级越低,电子地图中该矢量瓦片对应的初始图像要素信息的数据量越少,该矢量瓦片对应的初始图像要素信息中的要素点越少,反之,该矢量瓦片对应的数据量越多,该矢量瓦片对应的初始图像要素信息中的要素点也越多。
在实施时,客户端和服务端中均存储有电子地图中的所有矢量瓦片中每个矢量瓦片对应于各个图像缩放等级的初始图像要素信息。
针对本步骤,客户端可以响应于用户对显示的电子地图上的目标图像区域对应的展示图像的点击操作,确定该目标图像区域对应的矢量瓦片,以及执行点击操作时电子地图对应的图像缩放等级。然后,客户端可以从本地存储的该矢量瓦片对应于各个图像缩放等级的初始图像要素信息中,获取与该图像缩放等级相对应的初始图像要素信息。
步骤二、通过客户端展示初始图像要素信息,并基于对初始图像要素信息对应的要素点的第二子操作,确定要素点的至少部分要素点中每个要素点的第一位置信息。
在实施时,在获取到初始图像信息之后,可以将初始图像要素信息展示在客户端,即将目标图像区域对应的各个可编辑的要素点展示给用户。如图3所示,为本公开实施例所提供的一种目标图像区域和初始图像要素信息的示意图,其中,初始图像要素信息对应于要素点a、要素点b、要素点c、要素点d、要素点e、要素点f、要素点g、要素点h和要素点i。
进而,用户可以对展示的初始图像要素信息对应的每个要素点中的至少部分要素点执行第二子操作,以实现对目标图像区域的编辑。
在一种实施例中,第二子操作可以包括要素点删除操作和/或要素点移动操作。示例性地,用户可以对展示的至少部分要素点执行上述两种第二子操作中的至少一种子操作,从而实现对初始图像要素信息对应的目标图像区域的区域范围的编辑。
客户端可以在用户执行第二子操作后,确定操作后的初始图像要素信息对应的要素点中的至少部分要素点中的每个要素点在电子地图中对应的第一位置信息,其中,第一位置信息可以为各个像素点的地图坐标。
步骤三、基于确定的第一位置信息,生成第一编辑信息。
这里,基于确定的第一位置信息和客户端存储的各个矢量瓦片对应的位置信息,确定位置信息与第一位置信息存在重叠的各个目标矢量瓦片,之后,可以确定各个目标矢量瓦片的标识信息,示例性地,标识信息可以每个目标矢量瓦片在电子地图中的行列值。
进一步的,可以根据各个目标矢量瓦片的标识信息和第一位置信息,生成第一编辑信息。这里,第一编辑信息可以是对应于各个图像缩放等级的编辑信息,因为各个图像缩放等级对应的矢量瓦片的位置信息和标识信息均相同,所以服务端在获取第一编辑信息之后,可以根据第一编辑信息,确定编辑后的目标图像区域对应的各个目标矢量瓦片的标识信息和位置信息,从而,可以根据该标识信息和该位置信息,从存储的矢量瓦片中,确定各个图像缩放等级中与该标识信息和该位置信息相对应的目标矢量瓦片,并在 生成各个图像缩放等级的目标矢量瓦片对应的目标图像要素信息之后,删除服务端存储的各个图像缩放等级对应的目标矢量瓦片及其对应的初始图像要素信息,实现对服务端对应的数据的更新。
在一种实施例中,客户端在接收服务端响应于第一编辑信息反馈的目标图像要素信息之后,还可以先基于确定的调整后的要素点的第一位置信息,确定目标图像区域对应的待调整图像区域。这里,待调整图像区域即为与调整后的目标图像区域相对应的各个目标矢量瓦片所属的图像区域。
示例性地,可以根据调整后的各个要素点的第一位置信息,确定各个第一位置信息对应的目标矢量瓦片,进而,可以将各个目标矢量瓦片对应的图像区域作为待调整图像区域。
并且,还可以根据待调整图像区域对应的目标矢量瓦片的标识信息和位置信息,确定各个图像缩放等级对应的目标矢量瓦片。之后,可以删除存储在客户端的、待调整图像区域与各个图像缩放等级相对应的目标矢量瓦片的初始图像要素信息。并将获取的目标图像要素信息存储在客户端,这里,服务端反馈的目标图像要素信息为服务端基于第一编辑信息,新生成的各个图像缩放等级对应的目标矢量瓦片的目标图像要素信息。
在一种实施例中,在响应于对显示电子地图上的目标图像区域的编辑操作之前,还需要响应于用户发起的地图编辑请求,例如,响应于用户在客户端点击编辑组件的操作,通过客户端展示电子地图对应的地图编辑页面。其中,地图编辑页面中包括至少一个目标图像区域。
示例性的,用户可以点击电子地图页面的预设位置处的地图编辑组件,然后客户端可以响应于用户的点击操作,确定用户发起了地图编辑请求,之后,响应于地图编辑请求,获取地图编辑页面以及电子地图对应的目标图像区域并展示给用户。
其中,在获取电子地图对应的目标图像区域的过程中,可以获取电子地图对应的所有的目标图像区域,也可以基于当前展示的电子地图的图像缩放等级和客户端当前展示的各个矢量瓦片,获取当前展示的各个矢量瓦片与当前的图像缩放等级相对应的目标图像区域,也即,获取的目标图像区域的数量和当前展示的各个矢量瓦片的数量一致,每个目标图像区域的大小与图像缩放等级相对应。
在一种实施例中,在通过客户端展示电子地图对应的地图编辑页面之后,还可以按照以下步骤更新电子地图中展示的矢量瓦片:
P1:确定在地图编辑页面上输入的待添加图像区域。
这里,待添加图像区域包括用户指定的多个待添加要素点。
在将地图编辑页面展示在客户端之后,用户可以在地图编辑页面中的任一位置处输入的待添加图像区域,其中,待添加图像区域和地图编辑页面已展示的目标图像区域之间可以存在重叠,也可以相互独立。
在实施时,用户可以在地图编辑页面中绘制任意形状的目标图像,之后,客户端可以将该目标图像对应的区域范围作为待添加图像区域。
P2:基于待添加图像区域中各个待添加要素点对应的第二位置信息,生成第二编辑信息。
本步骤中,在确定待添加图像区域之后,可以获取待添加图像区域中各个待添加要素点的第二位置信息,进而,可以根据第二位置信息和待添加图像区域对应的目标图像,生成第二编辑信息。
P3:向服务端发送第二编辑信息。
本步骤中,客户端可以通过通信网络向服务端发送生成的第二编辑信息,服务端在接收到第二编辑信息之后,可以根据第二编辑信息对应的各个第二位置信息以及已生成的各个矢量瓦片的位置信息,从已生成的各个矢量瓦片中确定位置信息与第二位置信息相对应的待编辑矢量瓦片。其中,待编辑瓦片中包括待添加图像区域与各个图像缩放等级相对应的矢量瓦片。
进而,可以根据每个图像缩放等级对应的待编辑矢量瓦片的矢量数据和第二编辑信息对应的目标图像,分别生成每个图像缩放等级对应的新的矢量瓦片的待添加图像要素信息。
然后,服务端可以将生成的每个图像缩放等级对应的待添加图像要素信息反馈给客户端。
并且,在生成每个图像缩放等级对应的新的矢量瓦片的待添加图像要素信息之后,服务端可以将存储在本地数据库中的每个图像缩放等级对应的待编辑矢量瓦片对应的初始图像要素信息删除,并存储新的矢量瓦片的待添加图像要素信息。示例性地,可以直接将待编辑矢量瓦片删除,存储新的矢量瓦片。
P4:接收服务端响应于第二编辑信息反馈的待添加图像要素信息,并基于待添加图像要素信息,生成并展示待添加图像区域对应的第二展示图像。
其中,待添加图像要素信息为服务端基于第二编辑信息,生成的待添加图像区域与各个图像缩放等级相对应的图像要素信息。
在实施时,针对每个图像放缩等级,客户端在接收到服务端响应于第二编辑信息反馈的待添加图像要素信息之后,可以根据接收到的该图像放缩等级对应的待添加图像要素信息和矢量数据,生成该图像放缩等级对应的第二展示图像。
然后,客户端可以根据生成第二编辑信息时电子地图对应的图像缩放等级,将该图像缩放等级对应的第二展示图像展示在客户端中的电子地图中。示例性地,可以利用该图像缩放等级对应的第二展示图像替换在客户端中展示的待编辑矢量瓦片对应的展示图像,将上述第二展示图像展示给用户,从而,完成对客户端中展示的电子地图的更新。
在一种实施例中,在接收服务端响应于第二编辑信息反馈的待添加图像要素信息之 后,客户端可以根据待添加图像要素信息对应的各个待添加要素点的第二位置信息,以及存储在本地的每个图像缩放等级对应的已生成的矢量瓦片的位置信息,分别确定每个图像缩放等级对应的待编辑矢量瓦片,然后,将每个图像缩放等级对应的待编辑矢量瓦片的初始图像要素信息作为该图像缩放等级对应的待删除要素信息。
进而,客户端可以将各个图像缩放等级对应的待删除要素信息删除,也即将各个图像缩放等级对应的待编辑矢量瓦片删除,并存储获取的待添加图像要素信息,完成对将客户端存储的数据信息的更新。
或者,服务端在发送待添加图像要素信息的同时,还可以发送其确定的每个待编辑矢量瓦片的标识信息,客户端在接收到上述信息并生成待添加图像要素信息之后,可以直接将存储在本地的与标识信息相匹配的已生成的矢量瓦片删除,并存储待添加图像要素信息,完成数据更新。这样,客户端省略了根据第二位置信息确定待编辑矢量瓦片的步骤,提高了数据更新的速度。
另外,本公开实例还提供了一种与应用于客户端的地图编辑方法相对应的应用于服务端的地图编辑方法,通过客户端与服务端之间的交互,完成对展示在客户端的电子地图的更新。
如图4所示,为本公开实施例提供的一种应用于服务端的地图编辑方法的流程图,可以包括以下步骤:
S401:接收客户端发送的第一编辑信息。
其中,第一编辑信息为客户端响应于对显示的电子地图上的目标图像区域的编辑操作生成的。
这里,由上述实施例可知,客户端可以响应于对显示的电子地图上的目标图像区域的编辑操作,生成第一编辑信息,并利用通信网络向服务端发送第一编辑信息。进而,服务端可以接收到客户端发送的第一编辑信息。
S402:基于第一编辑信息调整目标图像区域对应的初始图像要素信息,得到目标图像区域对应的目标图像要素信息。
这里,服务端可以在接收到第一编辑信息之后,根据第一编辑信息,生成目标图像区域对应的目标图像要素信息。
示例性地,服务端在接收到第一编辑信息之后,可以先根据第一编辑信息中的编辑后的目标图像区域对应的各个矢量瓦片的位置信息,确定各个待操作的目标矢量瓦片,然后可以获取存储在数据库中的各个待操作的目标矢量瓦片对应的初始图像要素信息和矢量数据。
或者,在第一编辑信息中仅包括编辑后的目标图像区域对应的区域图形的位置信息的情况下,可以根据该区域图形的位置信息以及电子地图对应的、已生成的各个矢量瓦片的位置信息,确定存在位置信息与区域图形的位置信息相重叠的重叠矢量瓦片,将重 叠矢量瓦片作为确定的目标矢量瓦片。
之后,服务端可以基于各个目标矢量瓦片的矢量数据,以及上述区域图形,分别对各个目标矢量瓦片对应的初始图像要素信息进行调整,得到各个目标矢量瓦片对应的目标图像要素信息,也即,生成编辑后的目标图像区域对应的新的矢量瓦片。这里,生成的新的矢量瓦片为预设格式的文件,其中,预设格式可以为Mapbox矢量瓦片标准的文件格式。
并且,服务端在生成目标图像要素信息之后,可以将存储的各个目标矢量瓦片对应的初始图像要素信息删除,并存储新生成的目标图像要素信息,从而,实现对服务端存储的数据的更新。
S403:向客户端发送目标图像要素信息。
其中,目标图像要素信息用于客户端对目标图像区域对应的第一展示图像进行更新,以得到编辑后的电子地图。
这里,服务端可以向客户端发送生成的目标图像要素信息,以使基于目标图像要素信息,更新目标图像区域对应的第一展示图像,得到编辑后的电子地图。
关于S401~S403的实施步骤,可以参照上述关于应用于客户端的地图编辑方法的各实施例的介绍。
另外,本公开实例还提供了一种地图编辑系统,包括客户端和服务端,其中:客户端,配置为响应于对显示的电子地图上的目标图像区域的编辑操作,生成第一编辑信息;向服务端发送第一编辑信息;接收服务端响应于第一编辑信息反馈的目标图像要素信息,并基于目标图像要素信息,更新目标图像区域对应的第一展示图像,得到编辑后的电子地图;
服务端,配置为接收客户端发送的第一编辑信息;基于第一编辑信息调整目标图像区域对应的初始图像要素信息,得到目标图像区域对应的目标图像要素信息;向客户端发送所述目标图像要素信息。
关于客户端和服务端之间的交互流程,可以参照上述各实施例的介绍。
如图5所示,为本公开实施例所提供的一种地图编辑系统的示意图,包括客户端501和服务端502和用户503,其中,客户端501,可以响应于用户503对显示的电子地图上的目标图像区域的编辑操作,生成第一编辑信息,并通过通信网络向服务端502发送第一编辑信息。进而,服务端502可以接收到客户端501发送的第一编辑信息,并基于第一编辑信息调整目标图像区域对应的初始图像要素信息,得到目标图像区域对应的目标图像要素信息,之后,可以通过通信网络向客户端501发送生成的目标图像要素信息。
在一些实施例中,客户端501可以接收服务端502反馈的目标图像要素信息,并基于目标图像要素信息,更新目标图像区域对应的第一展示图像,从而得到编辑后的电子地图,并将该电子地图展示给用户503。
本领域技术人员可以理解,在实施方式的上述方法中,各步骤的撰写顺序并不意味着严格的执行顺序而对实施过程构成任何限定,各步骤的执行顺序应当以其功能和可能的内在逻辑确定。
基于同一发明构思,本公开实施例中还提供了与应用于客户端的地图编辑方法对应的应用于客户端的地图编辑装置,由于本公开实施例中的装置解决问题的原理与本公开实施例上述应用于客户端的地图编辑方法相似,因此装置的实施可以参见方法的实施。
如图6所示,为本公开实施例提供的一种应用于客户端的地图编辑装置的示意图,包括:
生成模块601,配置为响应于对显示的电子地图上的目标图像区域的编辑操作,生成第一编辑信息;
发送模块602,配置为向服务端发送所述第一编辑信息;
更新模块603,配置为接收所述服务端响应于所述第一编辑信息反馈的目标图像要素信息,并基于所述目标图像要素信息,更新所述目标图像区域对应的第一展示图像,得到编辑后的所述电子地图;
其中,所述目标图像要素信息为所述服务端基于所述第一编辑信息调整所述目标图像区域对应的初始图像要素信息得到的。
在一种可能的实施方式中,所述目标图像区域包括所述电子地图对应的至少一个矢量瓦片。
在一种可能的实施方式中,所述编辑操作包括第一子操作和第二子操作;
所述生成模块601,配置为响应于对显示的电子地图上的目标图像区域的第一子操作,从所述客户端中获取所述目标图像区域对应的初始图像要素信息;
通过所述客户端展示所述初始图像要素信息,并基于对所述初始图像要素信息对应的要素点的第二子操作,确定所述要素点的至少部分要素点中每个要素点的第一位置信息;
基于确定的所述第一位置信息,生成所述第一编辑信息。
在一种可能的实施方式中,所述装置还包括:
第一删除模块604,配置为在所述接收所述服务端响应于所述第一编辑信息反馈的目标图像要素信息之后,基于确定的所述第一位置信息,确定所述目标图像区域对应的待调整图像区域;
删除所述待调整图像区域与各个所述图像缩放等级相对应的初始图像要素信息。
在一种可能的实施方式中,所述装置还包括:
展示模块605,配置为在所述响应于对显示的电子地图上的目标图像区域的编辑操作之前,响应于地图编辑请求,通过所述客户端展示所述电子地图对应的地图编辑页面;其中,所述地图编辑页面包括至少一个所述目标图像区域。
在一种可能的实施方式中,所述生成模块601,还配置为在所述通过所述客户端展示所述电子地图对应的地图编辑页面展示之后,确定在所述地图编辑页面上输入的待添加图像区域;
基于所述待添加图像区域中各个待添加要素点对应的第二位置信息,生成第二编辑信息;
所述发送模块602,还配置为向所述服务端发送所述第二编辑信息;
所述更新模块603,还配置为接收所述服务端响应于所述第二编辑信息反馈的所述待添加图像要素信息,并基于所述待添加图像要素信息,生成并展示所述待添加图像区域对应的第二展示图像;
其中,所述待添加图像要素信息为所述服务端基于所述第二编辑信息,生成的所述待添加图像区域与各个图像缩放等级相对应的图像要素信息。
在一种可能的实施方式中,所述装置还包括:
第二删除模块606,配置为在所述接收所述服务端响应于所述第二编辑信息反馈的所述待添加图像要素信息之后,基于所述待添加图像要素信息对应的各个所述待添加要素点的第二位置信息,确定所述待添加图像区域与各个所述图像缩放等级相对应的待删除要素信息;
删除存储的所述待删除要素信息。
在一种可能的实施方式中,所述第二子操作包括要素点删除操作和/或要素点移动操作。
基于同一发明构思,本公开实施例中还提供了与应用于服务端的地图编辑方法对应的应用于服务端的地图编辑装置,由于本公开实施例中的装置解决问题的原理与本公开实施例上述应用于服务端的地图编辑方法相似,因此装置的实施可以参见方法的实施。
如图7所示,为本公开实施例提供的一种应用于服务端的地图编辑装置的示意图,包括:
接收模块701,配置为接收客户端发送的第一编辑信息,所述第一编辑信息为所述客户端响应于对显示的电子地图上的目标图像区域的编辑操作生成的;
调整模块702,配置为基于所述第一编辑信息调整所述目标图像区域对应的初始图像要素信息,得到所述目标图像区域对应的目标图像要素信息;
反馈模块703,配置为向所述客户端发送所述目标图像要素信息;
其中,所述目标图像要素信息用于所述客户端对所述目标图像区域对应的第一展示图像进行更新,以得到编辑后的所述电子地图。
关于装置中的各模块的处理流程、以及各模块之间的交互流程的描述可以参照上述方法实施例中的相关说明,这里不再详述。
本公开实施例还提供了一种计算机设备,如图8所示,为本公开实施例提供的一种 计算机设备结构示意图,包括:
处理器81和存储器82;所述存储器82存储有处理器81可执行的机器可读指令,处理器81配置为执行存储器82中存储的机器可读指令,所述机器可读指令被处理器81执行时,处理器81执行下述步骤:S101:响应于对显示的电子地图上的目标图像区域的编辑操作,生成第一编辑信息;S102:向服务端发送第一编辑信息以及S103:接收服务端响应于第一编辑信息反馈的目标图像要素信息,并基于目标图像要素信息,更新目标图像区域对应的第一展示图像,得到编辑后的电子地图。
上述存储器82包括内存821和外部存储器822;这里的内存821也称内存储器,配置为暂时存放处理器81中的运算数据,以及与硬盘等外部存储器822交换的数据,处理器81通过内存821与外部存储器822进行数据交换。
上述指令的执行过程可以参考本公开实施例中所述的地图编辑方法的步骤。
本公开实施例还提供一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器运行时执行上述方法实施例中所述的地图编辑方法的步骤。其中,该存储介质可以是易失性或非易失的计算机可读取存储介质。
本公开实施例所提供的地图编辑方法的计算机程序产品,包括存储了程序代码的计算机可读存储介质,所述程序代码包括的指令可用于执行上述方法实施例中所述的地图编辑方法的步骤,可参见上述方法实施例。
该计算机程序产品可以通过硬件、软件或其结合的方式实现。在一个可选实施例中,所述计算机程序产品体现为计算机存储介质,在另一个可选实施例中,计算机程序产品体现为软件产品,例如软件开发包(Software Development Kit,SDK)等等。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置的工作过程,可以参考前述方法实施例中的对应过程。在本公开所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,又例如,多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些通信接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本公开各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个处理器可执行的非易失的计算机可读取存储介质中。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务端,或者网络设备等)执行本公开各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
最后应说明的是:以上所述实施例,仅为本公开的实施方式,用以说明本公开的技术方案,而非对其限制,本公开的保护范围并不局限于此,尽管参照前述实施例对本公开进行了详细的说明,本领域的普通技术人员应当理解:任何熟悉本技术领域的技术人员在本公开揭露的技术范围内,其依然可以对前述实施例所记载的技术方案进行修改或可轻易想到变化,或者对其中部分技术特征进行等同替换;而这些修改、变化或者替换,并不使相应技术方案的本质脱离本公开实施例技术方案的精神和范围,都应涵盖在本公开的保护范围之内。
工业实用性
本公开实施例中,通过不同的目标图像区域对应于不同数据量的矢量数据,多个目标图像区域对应于电子地图全部的矢量数据,基于对目标图像区域的编辑操作,可以实现根据编辑需求,对全部的矢量数据中目标图像区域对应的部分矢量数据的编辑,减少了需要处理的数据量,有利于提高编辑效率。同时,通过将生成的第一编辑信息发送给服务端以使服务端完成对目标图像区域对应的初始图像要素信息的更新的方式,用户只需要在客户端执行操作就可以实现对展示在客户端中的电子地图对应的矢量数据的编辑,提高电子地图的编辑效率,提升了地图编辑和数据处理的便利性。

Claims (15)

  1. 一种地图编辑方法,应用于客户端,包括:
    响应于对显示的电子地图上的目标图像区域的编辑操作,生成第一编辑信息;
    向服务端发送所述第一编辑信息;
    接收所述服务端响应于所述第一编辑信息反馈的目标图像要素信息,并基于所述目标图像要素信息,更新所述目标图像区域对应的第一展示图像,得到编辑后的所述电子地图;
    其中,所述目标图像要素信息为所述服务端基于所述第一编辑信息调整所述目标图像区域对应的初始图像要素信息得到的。
  2. 根据权利要求1所述的方法,其中,所述目标图像区域包括所述电子地图对应的至少一个矢量瓦片。
  3. 根据权利要求1或2所述的方法,其中,所述编辑操作包括第一子操作和第二子操作;
    所述响应于对显示的电子地图上的目标图像区域的编辑操作,生成第一编辑信息,包括:
    响应于对显示的电子地图上的目标图像区域的第一子操作,从所述客户端中获取所述目标图像区域对应的初始图像要素信息;
    通过所述客户端展示所述初始图像要素信息,并基于对所述初始图像要素信息对应的要素点的第二子操作,确定所述要素点的至少部分要素点中每个要素点的第一位置信息;
    基于确定的所述第一位置信息,生成所述第一编辑信息。
  4. 根据权利要求3所述的方法,其中,在所述接收所述服务端响应于所述第一编辑信息反馈的目标图像要素信息之后,还包括:
    基于确定的所述第一位置信息,确定所述目标图像区域对应的待调整图像区域;
    删除所述待调整图像区域与各个图像缩放等级相对应的初始图像要素信息。
  5. 根据权利要求1至4任一项所述的方法,其中,在所述响应于对显示的电子地图上的目标图像区域的编辑操作之前,还包括:
    响应于地图编辑请求,通过所述客户端展示所述电子地图对应的地图编辑页面;其中,所述地图编辑页面包括至少一个所述目标图像区域。
  6. 根据权利要求5所述的方法,其中,在所述通过所述客户端展示所述电子地图对应的地图编辑页面之后,还包括:
    确定在所述地图编辑页面上输入的待添加图像区域;
    基于所述待添加图像区域中各个待添加要素点对应的第二位置信息,生成第二编辑信息;
    向所述服务端发送所述第二编辑信息;
    接收所述服务端响应于所述第二编辑信息反馈的所述待添加图像要素信息,并基于所述待添加图像要素信息,生成并展示所述待添加图像区域对应的第二展示图像;
    其中,所述待添加图像要素信息为所述服务端基于所述第二编辑信息,生成的所述待添加图像区域与各个图像缩放等级相对应的图像要素信息。
  7. 根据权利要求6所述的方法,其中,在所述接收所述服务端响应于所述第二编辑信息反馈的所述待添加图像要素信息之后,还包括:
    基于所述待添加图像要素信息对应的各个所述待添加要素点的第二位置信息,确定所述待添加图像区域与各个所述图像缩放等级相对应的待删除要素信息;
    删除存储的所述待删除要素信息。
  8. 根据权利要求3所述的方法,其中,所述第二子操作至少包括以下一种:要素点删除操作和要素点移动操作。
  9. 一种地图编辑方法,应用于服务端,包括:
    接收客户端发送的第一编辑信息,所述第一编辑信息为所述客户端响应于对显示的电子地图上的目标图像区域的编辑操作生成的;
    基于所述第一编辑信息调整所述目标图像区域对应的初始图像要素信息,得到所述目标图像区域对应的目标图像要素信息;
    向所述客户端发送所述目标图像要素信息;
    其中,所述目标图像要素信息用于所述客户端对所述目标图像区域对应的第一展示图像进行更新,得到编辑后的所述电子地图。
  10. 一种地图编辑系统,包括客户端和服务端,其中:
    所述客户端,配置为响应于对显示的电子地图上的目标图像区域的编辑操作,生成第一编辑信息;向服务端发送所述第一编辑信息;接收所述服务端响应于所述第一编辑信息反馈的目标图像要素信息,并基于所述目标图像要素信息,更新所述目标图像区域对应的第一展示图像,得到编辑后的所述电子地图;
    所述服务端,配置为接收客户端发送的所述第一编辑信息;基于所述第一编辑信息调整所述目标图像区域对应的初始图像要素信息,得到所述目标图像区域对应的目标图像要素信息;向所述客户端发送所述目标图像要素信息。
  11. 一种地图编辑装置,应用于客户端,包括:
    生成模块,配置为响应于对显示的电子地图上的目标图像区域的编辑操作,生成第一编辑信息;
    发送模块,配置为向服务端发送所述第一编辑信息;
    更新模块,配置为接收所述服务端响应于所述第一编辑信息反馈的目标图像要素信息,并基于所述目标图像要素信息,更新所述目标图像区域对应的第一展示图像,得到 编辑后的所述电子地图;
    其中,所述目标图像要素信息为所述服务端基于所述第一编辑信息调整所述目标图像区域对应的初始图像要素信息得到的。
  12. 一种地图编辑装置,应用于服务端,包括:
    接收模块,配置为接收客户端发送的第一编辑信息,所述第一编辑信息为所述客户端响应于对显示的电子地图上的目标图像区域的编辑操作生成的;
    调整模块,配置为基于所述第一编辑信息调整所述目标图像区域对应的初始图像要素信息,得到所述目标图像区域对应的目标图像要素信息;
    反馈模块,配置为向所述客户端发送所述目标图像要素信息;
    其中,所述目标图像要素信息用于所述客户端对所述目标图像区域对应的第一展示图像进行更新,得到编辑后的所述电子地图。
  13. 一种计算机设备,包括:处理器、存储器,所述存储器存储有所述处理器可执行的机器可读指令,所述处理器配置为执行所述存储器中存储的机器可读指令,所述机器可读指令被所述处理器执行时,所述处理器执行如权利要求1至9任意一项所述的地图编辑方法的步骤。
  14. 一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被计算机设备运行时,所述计算机设备执行如权利要求1至9任意一项所述的地图编辑方法的步骤。
  15. 一种计算机程序产品,包括计算机可读代码,在所述计算机可读代码在电子设备中运行的情况下,所述电子设备中的处理器执行如权利要求1至9任意一项所述的地图编辑方法的步骤。
PCT/CN2022/083703 2021-09-29 2022-03-29 地图编辑方法、系统、装置、计算设备、程序产品和存储介质 WO2023050744A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111152777.6 2021-09-29
CN202111152777.6A CN113888673A (zh) 2021-09-29 2021-09-29 地图编辑方法、系统、装置、计算设备和存储介质

Publications (1)

Publication Number Publication Date
WO2023050744A1 true WO2023050744A1 (zh) 2023-04-06

Family

ID=79008164

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/083703 WO2023050744A1 (zh) 2021-09-29 2022-03-29 地图编辑方法、系统、装置、计算设备、程序产品和存储介质

Country Status (2)

Country Link
CN (1) CN113888673A (zh)
WO (1) WO2023050744A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113888673A (zh) * 2021-09-29 2022-01-04 上海商汤智能科技有限公司 地图编辑方法、系统、装置、计算设备和存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010191889A (ja) * 2009-02-20 2010-09-02 Mitsubishi Electric Corp 地図データ編集装置及び地図データ編集装置用サーバ
US20150170385A1 (en) * 2012-06-22 2015-06-18 Google Inc. Editing a feature within a map
JP2017204148A (ja) * 2016-05-11 2017-11-16 株式会社パスコ 地図情報処理システム、地図情報処理方法、サーバ、及びプログラム
CN111090657A (zh) * 2019-10-28 2020-05-01 武大吉奥信息技术有限公司 一种矢量瓦片自动更新与即时服务系统
CN112559667A (zh) * 2021-02-23 2021-03-26 北京简巨科技有限公司 地图编辑器、地图引擎、地图编辑系统、方法及存储介质
CN113888673A (zh) * 2021-09-29 2022-01-04 上海商汤智能科技有限公司 地图编辑方法、系统、装置、计算设备和存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010191889A (ja) * 2009-02-20 2010-09-02 Mitsubishi Electric Corp 地図データ編集装置及び地図データ編集装置用サーバ
US20150170385A1 (en) * 2012-06-22 2015-06-18 Google Inc. Editing a feature within a map
JP2017204148A (ja) * 2016-05-11 2017-11-16 株式会社パスコ 地図情報処理システム、地図情報処理方法、サーバ、及びプログラム
CN111090657A (zh) * 2019-10-28 2020-05-01 武大吉奥信息技术有限公司 一种矢量瓦片自动更新与即时服务系统
CN112559667A (zh) * 2021-02-23 2021-03-26 北京简巨科技有限公司 地图编辑器、地图引擎、地图编辑系统、方法及存储介质
CN113888673A (zh) * 2021-09-29 2022-01-04 上海商汤智能科技有限公司 地图编辑方法、系统、装置、计算设备和存储介质

Also Published As

Publication number Publication date
CN113888673A (zh) 2022-01-04

Similar Documents

Publication Publication Date Title
CN113368492A (zh) 渲染的方法、装置
CN109213316B (zh) 自动布局引擎
WO2023050744A1 (zh) 地图编辑方法、系统、装置、计算设备、程序产品和存储介质
CN111223155A (zh) 图像数据处理方法、装置、计算机设备和存储介质
CN112162668B (zh) 界面更新方法和监控终端
CN109598672B (zh) 一种地图道路渲染方法及装置
CN113705156A (zh) 字符处理方法及装置
JP7007168B2 (ja) プログラム、情報処理方法、及び情報処理装置
CN113536755A (zh) 用于生成海报的方法、装置、电子设备、存储介质及产品
US11436764B2 (en) Dynamic generation and delivery of scalable graphic images in web applications
JP2005055573A (ja) 高速表示処理装置
CN111506841B (zh) 网页展示方法、装置、设备及可读存储介质
CN109213981B (zh) 各种电子设备的演示协作
KR101870423B1 (ko) 지오태깅 정보를 이용한 지도 정보 제공방법 이를 위한 컴퓨터 프로그램 및 기록매체
JP2013120201A (ja) 情報処理装置及び方法
CN113419806B (zh) 图像处理方法、装置、计算机设备和存储介质
CN114371838A (zh) 一种小程序画布渲染方法、装置、设备及存储介质
US10455056B2 (en) Cloud-based storage and interchange mechanism for design elements
CN114489910A (zh) 一种视频会议数据显示方法、装置、设备及介质
CN112614049A (zh) 图像处理方法、装置、存储介质以及终端
US10496241B2 (en) Cloud-based inter-application interchange of style information
CN110851521A (zh) 数据可视化的方法、装置和存储介质
CN112199538B (zh) 图片处理方法、装置、电子设备、系统及存储介质
CN112445394B (zh) 一种截图方法和装置
US10831855B2 (en) Adaptive images

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22874145

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE