Map scale adjustment method, device, storage medium and apparatus

By only requesting the required incremental data for scale adjustment when adjusting the map scale, the problem of large amount and slow data caused by data packet retransmission in the prior art is solved, and a more efficient map display is achieved.

CN112614054BActive Publication Date: 2025-04-29BEIJING 360 INTELLIGENT TECHNOLOGY CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202011610269.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-29
Publication Date
2025-04-29
Estimated Expiration
2040-12-29

AI Technical Summary

Technical Problem

In the prior art, when adjusting the map scale, it is necessary to re-request data packets of the entire map, resulting in large amounts of data transmission and slow display speed.

Method used

By receiving the scale adjustment request, determine the target scale and target map key points, obtain the current scale and current map key points, determine the data to be requested and send it to the preset server, receive the incremental data and adjust the scale to obtain the target map.

Benefits of technology

Reduce the amount of data transmitted, improve the map display speed, and optimize the scale adjustment process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112614054B_ABST
    Figure CN112614054B_ABST
Patent Text Reader

Abstract

The present invention discloses a map scale adjustment method, equipment, storage medium and device. The method comprises: determining a target scale according to a scale adjustment request, searching for a target map key point corresponding to the target scale, obtaining the current scale of the map to be adjusted, searching for the current map key point corresponding to the current scale, determining a data identifier to be requested according to the current map key point and the target map key point, requesting incremental data corresponding to the data identifier to be requested from a preset server, and adjusting the scale of the map to be adjusted according to the incremental data; compared with the existing method of re-requesting an update data packet of the entire map from a background server when scaling a map, and using the update data packet to overwrite the current data packet, in the present invention, only the incremental data corresponding to the added map key point needs to be requested from the server to complete the map scale adjustment, thereby reducing the amount of transmitted data and improving the map display speed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of map technology, and in particular to a map scale adjustment method, equipment, storage medium and device. Background Art

[0002] Currently, when zooming in or out on a map, since the map scale changes, the user end will re-request an update data packet of the entire map from the backend server and use the update data packet to overwrite the current data packet, thereby adjusting the map scale.

[0003] However, the above method requires re-requesting the data packet of the entire map, which results in a large amount of transmitted data and a slow display speed.

[0004] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention

[0005] The main purpose of the present invention is to provide a map scale adjustment method, device, storage medium and apparatus, aiming to solve the technical problem of how to optimize the map scale adjustment process.

[0006] To achieve the above object, the present invention provides a map scale adjustment method, which comprises the following steps:

[0007] When receiving a scale adjustment request, determining a target scale according to the scale adjustment request, and searching for a target map key point corresponding to the target scale;

[0008] Obtain the current scale of the map to be adjusted, and find the key points of the current map corresponding to the current scale;

[0009] Determine the identifier of the data to be requested according to the current map key point and the target map key point, and send the identifier of the data to be requested to a preset server;

[0010] The incremental data fed back by the preset server according to the identifier of the data to be requested is received, and the scale of the map to be adjusted is adjusted according to the incremental data to obtain a target map.

[0011] Optionally, the step of determining the identifier of the data to be requested according to the current map key point and the target map key point, and sending the identifier of the data to be requested to a preset server specifically includes:

[0012] Matching the current map key point with the target map key point, and determining the map key point to be requested according to the matching result;

[0013] The requested data identifier corresponding to the requested map key point is searched, and the requested data identifier is sent to a preset server.

[0014] Optionally, the step of matching the current map key point with the target map key point and determining the map key point to be requested according to the matching result specifically includes:

[0015] Traversing the target map key points, and using the traversed target map key points as the map key points to be matched;

[0016] Matching the to-be-matched map key point with the current map key point to obtain a matching result;

[0017] After the traversal of the target map key points is completed, the target map key points that failed to match are used as the map key points to be requested.

[0018] Optionally, the step of receiving the incremental data fed back by the preset server according to the identifier of the data to be requested, and adjusting the scale of the map to be adjusted according to the incremental data to obtain the target map specifically includes:

[0019] Receiving incremental data fed back by the preset server according to the identifier of the data to be requested;

[0020] Determining the reserved map data according to the current map key points, and determining the target map data according to the reserved map data and the incremental data;

[0021] The scale of the map to be adjusted is adjusted according to the target map data to obtain a target map.

[0022] Optionally, the step of determining the reserved map data according to the current map key points, and determining the target map data according to the reserved map data and the incremental data specifically includes:

[0023] Screening the current map key points according to the matching results to obtain the reserved map key points;

[0024] The reserved map data is determined according to the reserved map key points, and the target map data is determined according to the reserved map data and the incremental data.

[0025] Optionally, before the step of determining the identifier of the data to be requested according to the current map key point and the target map key point, and sending the identifier of the data to be requested to a preset server, the map scale adjustment method further includes:

[0026] Determine whether the target scale is greater than the current scale;

[0027] Accordingly, the step of determining the identifier of the data to be requested according to the current map key point and the target map key point, and sending the identifier of the data to be requested to the preset server specifically includes:

[0028] When the target scale is larger than the current scale, a to-be-requested data identifier is determined according to the current map key points and the target map key points, and the to-be-requested data identifier is sent to a preset server.

[0029] Optionally, after the step of determining whether the target scale is greater than the current scale, the map scale adjustment method further includes:

[0030] When the target scale is less than or equal to the current scale, determining the display map key points according to the current map key points and the target map key points;

[0031] The scale of the map to be adjusted is adjusted according to the key points of the displayed map to obtain a target map.

[0032] Optionally, when the target scale is less than or equal to the current scale, the step of determining the display map key points according to the current map key points and the target map key points specifically includes:

[0033] When the target scale is greater than or equal to the current scale, matching the current map key points with the target map key points;

[0034] The current map key point that is successfully matched is used as the display map key point.

[0035] Optionally, when receiving the scale adjustment request, determining the target scale according to the scale adjustment request, and searching for the target map key points corresponding to the target scale specifically include:

[0036] When receiving a scale adjustment request, extracting an identifier of the scale adjustment request to obtain an information identifier;

[0037] Extracting the scale adjustment request according to the information identifier to obtain a target scale;

[0038] Find the target map key points corresponding to the target scale.

[0039] Optionally, the step of searching for key points of the target map corresponding to the target scale specifically includes:

[0040] Searching for a to-be-displayed picture corresponding to the target scale, and performing image recognition on the to-be-displayed picture to obtain a recognition result;

[0041] Determine the line segment to be displayed according to the recognition result, and obtain the map coordinates of the line segment to be displayed;

[0042] The line segments to be displayed are extracted according to the map coordinates through a preset Douglas model to obtain target map key points.

[0043] Optionally, the step of receiving the incremental data fed back by the preset server according to the identifier of the data to be requested, and adjusting the scale of the map to be adjusted according to the incremental data to obtain the target map specifically includes:

[0044] receiving usage information fed back by the user based on the target map, and judging whether the target map is displayed normally based on the usage information;

[0045] When the target map displays abnormally, generating a pending data packet identifier according to the target scale, and sending the pending data packet identifier to the preset server;

[0046] Receiving a target display data packet fed back by the preset server according to the identifier of the data packet to be requested;

[0047] The scale of the map to be adjusted is adjusted according to the target display data packet to obtain a target map.

[0048] Optionally, the step of adjusting the scale of the map to be adjusted according to the target display data packet to obtain the target map specifically includes:

[0049] Obtaining a currently displayed data packet corresponding to the map to be adjusted;

[0050] The current display data packet is replaced with the target display data packet, and a target map is generated according to the target display data packet.

[0051] In addition, to achieve the above-mentioned purpose, the present invention also proposes a map scale adjustment device, which includes a memory, a processor, and a map scale adjustment program stored in the memory and executable on the processor, and the map scale adjustment program is configured to implement the steps of the map scale adjustment method described above.

[0052] In addition, to achieve the above purpose, the present invention also proposes a storage medium, on which a map scale adjustment program is stored, and when the map scale adjustment program is executed by a processor, the steps of the map scale adjustment method described above are implemented.

[0053] In addition, to achieve the above-mentioned purpose, the present invention also proposes a map scale adjustment device, which includes: a search module, an acquisition module, a determination module and an adjustment module;

[0054] The search module is used to determine the target scale according to the scale adjustment request when receiving the scale adjustment request, and search for the target map key point corresponding to the target scale;

[0055] The acquisition module is used to acquire the current scale of the map to be adjusted, and find the key points of the current map corresponding to the current scale;

[0056] The determination module is used to determine the identifier of the data to be requested according to the current map key point and the target map key point, and send the identifier of the data to be requested to a preset server;

[0057] The adjustment module is used to receive the incremental data fed back by the preset server according to the identifier of the data to be requested, and to adjust the scale of the map to be adjusted according to the incremental data to obtain a target map.

[0058] Optionally, the determination module is further used to match the current map key point with the target map key point, and determine the map key point to be requested according to the matching result;

[0059] The determination module is further used to find the identifier of the data to be requested corresponding to the key point of the map to be requested, and send the identifier of the data to be requested to a preset server.

[0060] Optionally, the determination module is further used to traverse the target map key points, and use the traversed target map key points as the map key points to be matched;

[0061] The determination module is further used to match the to-be-matched map key point with the current map key point to obtain a matching result;

[0062] The determination module is further configured to, after the traversal of the target map key points is completed, use the target map key points that failed to match as the map key points to be requested.

[0063] Optionally, the adjustment module is further used to receive incremental data fed back by the preset server according to the identifier of the data to be requested;

[0064] The adjustment module is further used to determine the reserved map data according to the current map key points, and determine the target map data according to the reserved map data and the incremental data;

[0065] The adjustment module is further used to adjust the scale of the map to be adjusted according to the target map data to obtain the target map.

[0066] Optionally, the adjustment module is further used to screen the current map key points according to the matching results to obtain the retained map key points;

[0067] The adjustment module is further used to determine the reserved map data according to the reserved map key points, and to determine the target map data according to the reserved map data and the incremental data.

[0068] Optionally, the map scale adjustment device further includes: a judgment module;

[0069] The judging module is used to judge whether the target scale is greater than the current scale;

[0070] Correspondingly, the determination module is further configured to determine the identifier of the data to be requested according to the current map key points and the target map key points when the target scale is larger than the current scale, and send the identifier of the data to be requested to a preset server.

[0071] In the present invention, when a scale adjustment request is received, the target scale is determined according to the scale adjustment request, and the target map key points corresponding to the target scale are searched, the current scale of the map to be adjusted is obtained, and the current map key points corresponding to the current scale are searched, and the data identifier to be requested is determined according to the current map key points and the target map key points, and the data identifier to be requested is sent to the preset server, and the incremental data fed back by the preset server according to the data identifier to be requested is received, and the scale of the map to be adjusted is adjusted according to the incremental data to obtain the target map; compared with the existing method of re-requesting the update data packet of the entire map from the background server when scaling the map, and using the update data packet to overwrite the current data packet, in the present invention, only the incremental data corresponding to the added map key points need to be requested from the server to complete the map scale adjustment, thereby reducing the amount of transmitted data. Improve the map display speed. BRIEF DESCRIPTION OF THE DRAWINGS

[0072] Figure 1 It is a structural schematic diagram of a map scale adjustment device in a hardware operating environment involved in an embodiment of the present invention;

[0073] Figure 2 It is a flowchart of a first embodiment of a method for adjusting a map scale according to the present invention;

[0074] Figure 3 It is a flowchart of a second embodiment of a method for adjusting a map scale according to the present invention;

[0075] Figure 4 A schematic diagram of a flow chart of a third embodiment of a method for adjusting a map scale according to the present invention;

[0076] Figure 5 A schematic diagram of a flow chart of a fourth embodiment of a method for adjusting a map scale according to the present invention;

[0077] Figure 6 It is a structural block diagram of the first embodiment of the map scale adjustment device of the present invention.

[0078] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0079] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0080] Reference Figure 1 , Figure 1 The present invention is a schematic diagram of a map scale adjustment device structure in a hardware operating environment according to an embodiment of the present invention.

[0081] like Figure 1 As shown, the map scale adjustment device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), and the user interface 1003 may also include a standard wired interface and a wireless interface. The wired interface of the user interface 1003 may be a USB interface in the present invention. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (WIreless-FIdelity, WI-FI) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) memory, or a stable memory (Non-volatile Memory, NVM), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0082] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the map scale adjustment device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0083] like Figure 1As shown, the memory 1005 identified as a computer storage medium may include an operating system, a network communication module, a user interface module, and a map scale adjustment program.

[0084] exist Figure 1 In the map scale adjustment device shown, the network interface 1004 is mainly used to connect to the background server and communicate data with the background server; the user interface 1003 is mainly used to connect to the user device; the map scale adjustment device calls the map scale adjustment program stored in the memory 1005 through the processor 1001, and executes the map scale adjustment method provided by the embodiment of the present invention.

[0085] Based on the above hardware structure, an embodiment of the map scale adjustment method of the present invention is proposed.

[0086] Reference Figure 2 , Figure 2 The figure is a flow chart of the first embodiment of the map scale adjustment method of the present invention, and provides the first embodiment of the map scale adjustment method of the present invention.

[0087] In a first embodiment, the map scale adjustment method comprises the following steps:

[0088] Step S10: when a scale adjustment request is received, a target scale is determined according to the scale adjustment request, and a target map key point corresponding to the target scale is searched.

[0089] It should be understood that the executor of this embodiment is the map scale adjustment device, wherein the map scale adjustment device can be an electronic device such as a computer or a mobile phone, or other devices that can achieve the same or similar functions. This embodiment does not limit this. In this embodiment, the map scale adjustment device is taken as an example.

[0090] It should be noted that the scale adjustment request may be a control request input by a user through a user interaction interface of the map scale adjustment device, and this embodiment does not impose any limitation on this.

[0091] In a specific implementation, for example, a user may initiate a scale adjustment request by zooming in or out on a map interface in a mobile phone.

[0092] It should be noted that the target scale may be a map scale that the user wants to achieve, and this embodiment does not impose any limitation on this.

[0093] It should be understood that searching for the target map key points corresponding to the target scale may be searching for the target map key points corresponding to the target scale in a preset key point table. The preset key point table includes the correspondence between the target scale and the target map key points. The correspondence between the target scale and the target map key points may be preset by the developer of the map scale adjustment device, and this embodiment does not limit this.

[0094] Step S20: obtaining the current scale of the map to be adjusted, and searching for key points of the current map corresponding to the current scale.

[0095] It should be noted that the current scale may be a map scale corresponding to the current display of the map, and this embodiment does not impose any limitation on this.

[0096] It should be understood that searching for the current map key point corresponding to the current scale may be searching for the current map key point corresponding to the current scale in a preset key point table. The preset key point table includes the correspondence between the current scale and the current map key point. The correspondence between the current scale and the current map key point may be preset by the developer of the map scale adjustment device, and this embodiment does not limit this.

[0097] In order to improve the reliability and accuracy of the key points of the current map, the obtaining of the current scale of the map to be adjusted and searching for the key points of the current map corresponding to the current scale include:

[0098] Obtain the currently displayed image, perform image recognition on the currently displayed image, obtain the current recognition result, determine the current line segment to be displayed based on the current recognition result, and obtain the current map coordinates of the current line segment to be displayed, extract the current line segment to be displayed through the preset Douglas model based on the current map coordinates, and obtain the current map key points.

[0099] Step S30: determining the identifier of the data to be requested according to the current map key point and the target map key point, and sending the identifier of the data to be requested to a preset server.

[0100] It should be noted that the identifier of the data to be requested may be identification information used to indicate the data to be requested, and this embodiment does not impose any limitation on this.

[0101] It should be understood that determining the data identifier to be requested based on the current map key point and the target map key point, and sending the data identifier to be requested to the preset server can be: matching the current map key point with the target map key point, and determining the map key point to be requested based on the matching result, searching for the data identifier to be requested corresponding to the map key point to be requested, and sending the data identifier to be requested to the preset server.

[0102] Step S40: receiving the incremental data fed back by the preset server according to the identifier of the data to be requested, and adjusting the scale of the map to be adjusted according to the incremental data to obtain a target map.

[0103] It can be understood that the incremental data fed back by the preset server according to the data identifier to be requested is received, and the scale of the map to be adjusted is adjusted according to the incremental data to obtain the target map. The incremental data fed back by the preset server according to the data identifier to be requested is received, and the incremental data is added to the original map data to obtain the target map data, and the map is loaded according to the target map data to obtain the target map.

[0104] In a specific implementation, for example, the key points of a map with scale A0 are L1, L5, L10, and Ln; the key points of a map with scale A1 are L1, L4, L5, L8, L10, L13, and Ln; the key points of a map with scale A2 are L1, L3, L4, L5, L8, L10, L13, L18, L32, and Ln; <A1<A2。

[0105] When the user enlarges the map scale from A0 to A1, it is necessary to request the map key points L4, L8, and L13 from the map server, insert the original map key points L1, L5, L10, and Ln, and then display the map based on the updated map key points to achieve map scale adjustment.

[0106] In the first embodiment, when a scale adjustment request is received, the target scale is determined according to the scale adjustment request, and the target map key points corresponding to the target scale are searched, the current scale of the map to be adjusted is obtained, and the current map key points corresponding to the current scale are searched, and the data identifier to be requested is determined according to the current map key points and the target map key points, and the data identifier to be requested is sent to the preset server, and the incremental data fed back by the preset server according to the data identifier to be requested is received, and the scale of the map to be adjusted is adjusted according to the incremental data to obtain the target map; compared with the existing method of re-requesting the update data packet of the entire map from the background server when scaling the map, and using the update data packet to overwrite the current data packet, in this embodiment, only the incremental data corresponding to the added map key points need to be requested from the server to complete the map scale adjustment, thereby reducing the amount of transmitted data. Improve the map display speed.

[0107] Reference Figure 3 , Figure 3 This is a flow chart of a second embodiment of a method for adjusting a map scale according to the present invention. Figure 2 The first embodiment shown provides a second embodiment of the map scale adjustment method of the present invention.

[0108] In the second embodiment, the step S10 includes:

[0109] Step S101: when receiving a scale adjustment request, extracting an identifier of the scale adjustment request to obtain an information identifier.

[0110] It should be noted that the scale adjustment request may be a control request input by a user through a user interaction interface of the map scale adjustment device, and this embodiment does not impose any limitation on this.

[0111] In a specific implementation, for example, a user may initiate a scale adjustment request by zooming in or out on a map interface in a mobile phone.

[0112] It should be noted that the information identifier may be an identifier used to indicate the type of information, and this embodiment does not impose any limitation on this.

[0113] Step S102: extracting the scale adjustment request according to the information identifier to obtain a target scale.

[0114] It should be noted that the target scale may be a map scale that the user wants to achieve, and this embodiment does not impose any limitation on this.

[0115] It should be understood that extracting the scale adjustment request according to the information identifier and obtaining the target scale may be to classify the scale adjustment request according to the information identifier and determine the target scale according to the classification result.

[0116] Step S103: Find the target map key points corresponding to the target scale.

[0117] It should be understood that searching for the target map key points corresponding to the target scale may be searching for the target map key points corresponding to the target scale in a preset key point table. The preset key point table includes the correspondence between the target scale and the target map key points. The correspondence between the target scale and the target map key points may be preset by the developer of the map scale adjustment device, and this embodiment does not limit this.

[0118] Furthermore, in order to improve the reliability and accuracy of the key points of the target map, the step S103 includes:

[0119] Searching for a to-be-displayed picture corresponding to the target scale, and performing image recognition on the to-be-displayed picture to obtain a recognition result;

[0120] Determine the line segment to be displayed according to the recognition result, and obtain the map coordinates of the line segment to be displayed;

[0121] The line segments to be displayed are extracted according to the map coordinates through a preset Douglas model to obtain target map key points.

[0122] It should be noted that searching for the image to be displayed corresponding to the target scale may be searching for the image to be displayed corresponding to the target scale in a preset image library. The preset image library contains the correspondence between the target scale and the image to be displayed. The correspondence between the target scale and the image to be displayed may be preset by the developer of the map scale adjustment device, and this embodiment does not limit this.

[0123] It should be understood that performing image recognition on the picture to be displayed may be performing line segment recognition on the picture to be displayed to obtain a recognition result.

[0124] It is understandable that obtaining the map coordinates of the line segment to be displayed may be searching for the map coordinates of the line segment to be displayed in a preset database; or a coordinate system may be established in real time and the map coordinates of the line segment to be displayed may be determined according to the coordinate system, which is not limited in this embodiment.

[0125] It should be noted that the preset Douglas model may be preset by the developer of the map scale adjustment device, and this embodiment does not limit this. The preset Douglas model may be an algorithm model based on the Larmer-Douglas-Peucker algorithm, and this embodiment does not limit this.

[0126] It should be understood that map data is mainly composed of line and surface data, and lines and surfaces are composed of continuous points. Therefore, after determining the key points of the map, a map can be generated based on the key points of the map.

[0127] In the second embodiment, when a scale adjustment request is received, an identifier is extracted for the scale adjustment request to obtain an information identifier, the scale adjustment request is extracted according to the information identifier to obtain the target scale, and the target map key points corresponding to the target scale are searched, so that the target scale corresponding to the scale adjustment request can be accurately identified, and the target map key points can be determined according to the target scale, so that the reliability and accuracy of the target map key points can be improved.

[0128] In the second embodiment, the step S30 includes:

[0129] Step S301: Match the current map key point with the target map key point, and determine the map key point to be requested according to the matching result.

[0130] It should be noted that the map key points to be requested may be map key points that need to be supplemented, and this embodiment does not impose any limitation on this.

[0131] It should be understood that determining the map key point to be requested according to the matching result may be to use the target map key point that fails to match as the map key point to be requested, and this embodiment does not impose any limitation on this.

[0132] Furthermore, in order to ensure that all target map key points can be matched, step S301 includes:

[0133] Traversing the target map key points, and using the traversed target map key points as the map key points to be matched;

[0134] Matching the to-be-matched map key point with the current map key point to obtain a matching result;

[0135] After the traversal of the target map key points is completed, the target map key points that failed to match are used as the map key points to be requested.

[0136] It should be understood that the traversal of the target map key points may be performed randomly, or the traversal of the target map key points may be performed in the order in which the target map key points are stored, and this embodiment does not impose any limitation on this.

[0137] Step S302: searching for the data identifier to be requested corresponding to the key point of the map to be requested, and sending the data identifier to be requested to a preset server.

[0138] It should be noted that the identifier of the data to be requested may be identification information used to indicate the data to be requested, and this embodiment does not impose any limitation on this.

[0139] It should be understood that searching for the data identifier to be requested corresponding to the key map point to be requested may be searching for the data identifier to be requested corresponding to the key map point to be requested in a preset identifier table. The preset identifier table includes the correspondence between the key map point to be requested and the data identifier to be requested. The correspondence between the key map point to be requested and the data identifier to be requested may be preset by the developer of the map scale adjustment device, and this embodiment does not limit this.

[0140] In the specific implementation, for example, the user needs to enlarge the scale of the map from A1 to A2, the map key points corresponding to A1 are L1, L4, L5, L8, L10, L13, Ln, and the map key points corresponding to A2 are L1, L3, L4, L5, L8, L10, L13, L18, L32, Ln, the map key points corresponding to A1 are matched with the map key points corresponding to A2, and the map key points L3, L18, L32 corresponding to A2 that fail to match are used as the map key points to be requested, and the data identifiers D3, D18, D32 to be requested corresponding to L3, L18, L32 are searched.

[0141] In the second embodiment, by matching the current map key point with the target map key point, determining the requested map key point based on the matching result, searching for the requested data identifier corresponding to the requested map key point, and sending the requested data identifier to the preset server, the accuracy and reliability of the requested data identifier can be improved.

[0142] In the second embodiment, the step S40 includes:

[0143] Step S401: receiving incremental data fed back by the preset server according to the identifier of the data to be requested.

[0144] It should be noted that the preset server may be a server corresponding to the map scale adjustment device pre-set by a developer of the map scale adjustment device, and this embodiment does not impose any limitation on this.

[0145] The incremental data may be map data added on the basis of the original map data, and this embodiment does not impose any limitation on this.

[0146] Step S402: determining the reserved map data according to the current map key points, and determining the target map data according to the reserved map data and the incremental data.

[0147] It should be noted that the retained map data may be map data retained on the basis of original map data.

[0148] It should be understood that determining the reserved map data according to the current map key point may be to use the map data corresponding to the current map key point as the reserved map data.

[0149] It can be understood that determining the target map data according to the reserved map data and the incremental data may be to add the incremental data to the reserved map data to obtain the target map data.

[0150] Furthermore, in actual applications, there may be a situation where not all the key points of the current map are the key points of the target map. In order to avoid retaining unnecessary map data, the step S402 includes:

[0151] Screening the current map key points according to the matching results to obtain the reserved map key points;

[0152] The reserved map data is determined according to the reserved map key points, and the target map data is determined according to the reserved map data and the incremental data.

[0153] It should be understood that screening the current map key points according to the matching results may be to use the current map key points that have been successfully matched as the reserved map key points.

[0154] It can be understood that determining the reserved map data according to the reserved map key points may be to use the map data corresponding to the reserved map key points as the reserved map data.

[0155] Step S403: adjusting the scale of the map to be adjusted according to the target map data to obtain a target map.

[0156] It should be understood that the scale of the map to be adjusted is adjusted according to the target map data, and obtaining the target map may be performed by loading a map according to the target map data to obtain the target map.

[0157] In a specific implementation, for example, the incremental data fed back by the map server according to the requested data identifiers D3, D18, and D32 is received, and the incremental data is inserted into the retained map data corresponding to L1, L4, L5, L8, L10, L13, and Ln to obtain the target map data, and the scale of the map to be adjusted is adjusted according to the target map data to obtain the target map.

[0158] In a second embodiment, by receiving the incremental data fed back by the preset server according to the data identifier to be requested, determining the retained map data according to the current map key points, and determining the target map data according to the retained map data and the incremental data, the map to be adjusted is scaled according to the target map data to obtain the target map, thereby improving the speed of map scale adjustment.

[0159] Reference Figure 4 , Figure 4 This is a flow chart of a third embodiment of a method for adjusting a map scale according to the present invention. Figure 2 The first embodiment shown provides a third embodiment of the map scale adjustment method of the present invention.

[0160] In the third embodiment, before step S30, the method further includes:

[0161] Step S210: Determine whether the target scale is greater than the current scale.

[0162] It should be noted that the larger the scale, the more map key points are needed to display the map; the smaller the scale, the fewer map key points are needed to display the map.

[0163] In a specific implementation, for example, the key points of a map with scale A0 are L1, L5, L10, and Ln; the key points of a map with scale A1 are L1, L4, L5, L8, L10, L13, and Ln; the key points of a map with scale A2 are L1, L3, L4, L5, L8, L10, L13, L18, L32, and Ln; <A1<A2。

[0164] When the user enlarges the map scale from A0 to A1, it is necessary to request the map key points L4, L8, and L13 from the map server, insert the original map key points L1, L5, L10, and Ln, and then display the map based on the updated map key points, thereby achieving map scale adjustment;

[0165] When the user reduces the scale of the map from A2 to A1, since the map key points of A2 include the map key points of A1, there is no need to request data from the map server, and the map can be displayed based on the map key points of L1, L4, L5, L8, L10, L13, and Ln, thereby achieving map scale adjustment.

[0166] Accordingly, the step S30 includes:

[0167] Step S30: When the target scale is larger than the current scale, determine the identifier of the data to be requested according to the current map key points and the target map key points, and send the identifier of the data to be requested to a preset server.

[0168] It should be understood that when the target scale is larger than the current scale, the number of map key points increases, and at this time, it is necessary to request data from the preset server.

[0169] In the third embodiment, by judging whether the target scale is larger than the current scale, when the target scale is larger than the current scale, the identifier of the data to be requested is determined according to the current map key points and the target map key points, and the identifier of the data to be requested is sent to the preset server; in this embodiment, data is requested from the preset server only when the map key points are added, thereby reducing the amount of transmitted data and improving resource utilization efficiency.

[0170] In the third embodiment, after step S210, the method further includes:

[0171] Step S30': when the target scale is less than or equal to the current scale, determining the display map key points according to the current map key points and the target map key points.

[0172] It should be understood that when the target scale is larger than the current scale, the number of map key points decreases. At this time, there is no need to request data from the preset server, and the map key points can be directly selected and displayed from the current map key points.

[0173] Furthermore, in order to improve the reliability of displaying the key points of the map, the step S30' comprises:

[0174] When the target scale is greater than or equal to the current scale, matching the current map key points with the target map key points;

[0175] The current map key point that is successfully matched is used as the display map key point.

[0176] Step S40': adjusting the scale of the map to be adjusted according to the key points of the displayed map to obtain a target map.

[0177] It should be understood that the scale of the map to be adjusted is adjusted according to the key points of the displayed map, and obtaining the target map may be performed by loading the map according to the key points of the displayed map to obtain the target map.

[0178] In a specific implementation, for example, the key points of a map with scale A0 are L1, L5, L10, and Ln; the key points of a map with scale A1 are L1, L4, L5, L8, L10, L13, and Ln; the key points of a map with scale A2 are L1, L3, L4, L5, L8, L10, L13, L18, L32, and Ln; <A1<A2。

[0179] When zooming out from A2 to A1, since the map key points of A2 include the map key points of A1, there is no need to request data from the map server. Instead, the map key points L1, L4, L5, L8, L10, L13, and Ln are used as the map key points for display, thereby achieving map scale adjustment.

[0180] In a third embodiment, when the target scale is less than or equal to the current scale, display map key points are determined according to the current map key points and the target map key points, and the scale of the map to be adjusted is adjusted according to the display map key points to obtain a target map; this embodiment directly selects display map key points from the current map key points for map display when the target scale is less than or equal to the current scale, thereby improving the display speed by not requesting data from a preset server when the map scale is reduced.

[0181] Reference Figure 5 , Figure 5 This is a flow chart of a fourth embodiment of a method for adjusting a map scale according to the present invention. Figure 2 The first embodiment shown provides a fourth embodiment of the map scale adjustment method of the present invention.

[0182] In the fourth embodiment, after step S40, the method further includes:

[0183] Step S50: receiving usage information fed back by the user based on the target map, and determining whether the target map is displayed normally based on the usage information.

[0184] It should be understood that judging whether the target map is displayed normally based on the usage information may be to match the usage information with preset abnormality information, and when the match is successful, the target map is judged to be displayed normally; when the match fails, the target map is judged to be displayed abnormally.

[0185] Step S60: when the target map is displayed abnormally, generating a pending data packet identifier according to the target scale, and sending the pending data packet identifier to the preset server.

[0186] It should be noted that the identifier of the data packet to be requested may be an identifier used to indicate that a scale data packet needs to be requested, and this embodiment does not impose any limitation on this.

[0187] Step S70: receiving the target display data packet fed back by the preset server according to the identifier of the data packet to be requested.

[0188] It should be noted that the target display data packet may be a complete map data packet corresponding to the target scale, and this embodiment does not impose any limitation on this.

[0189] Step S80: adjusting the scale of the map to be adjusted according to the target display data packet to obtain a target map.

[0190] It should be understood that the scale of the map to be adjusted is adjusted according to the target display data packet, and obtaining the target map can be to obtain the current display data packet corresponding to the map to be adjusted, replace the current display data packet with the target display data packet, and generate the target map according to the target display data packet.

[0191] In a fourth embodiment, usage information fed back by a user based on the target map is received, and whether the target map is displayed normally is determined based on the usage information; when the target map is displayed abnormally, a pending data packet identifier is generated based on the target scale, and the pending data packet identifier is sent to the preset server, a target display data packet fed back by the preset server based on the pending data packet identifier is received, and the scale of the map to be adjusted is adjusted based on the target display data packet to obtain a target map; in this embodiment, the map scale is adjusted by resending the target display data packet corresponding to the target scale after a failure in updating the map key point data, thereby avoiding the situation where the map cannot be displayed after a failure in adjusting the map scale through the map key points, thereby improving the reliability of the map scale adjustment.

[0192] In addition, an embodiment of the present invention further provides a storage medium, on which a map scale adjustment program is stored. When the map scale adjustment program is executed by a processor, the steps of the map scale adjustment method described above are implemented.

[0193] In addition, refer to Figure 6 , the embodiment of the present invention also provides a map scale adjustment device, the map scale adjustment device comprises: a search module 10, an acquisition module 20, a determination module 30 and an adjustment module 40;

[0194] The search module 10 is used to determine the target scale according to the scale adjustment request when receiving the scale adjustment request, and search for the target map key point corresponding to the target scale.

[0195] The acquisition module 20 is used to acquire the current scale of the map to be adjusted, and to find the key points of the current map corresponding to the current scale.

[0196] The determination module 30 is used to determine the identifier of the data to be requested according to the current map key point and the target map key point, and send the identifier of the data to be requested to a preset server.

[0197] The adjustment module 40 is used to receive the incremental data fed back by the preset server according to the identifier of the data to be requested, and to adjust the scale of the map to be adjusted according to the incremental data to obtain a target map.

[0198] In this embodiment, when a scale adjustment request is received, the target scale is determined according to the scale adjustment request, and the target map key points corresponding to the target scale are searched, the current scale of the map to be adjusted is obtained, and the current map key points corresponding to the current scale are searched, and the data identifier to be requested is determined according to the current map key points and the target map key points, and the data identifier to be requested is sent to the preset server, and the incremental data fed back by the preset server according to the data identifier to be requested is received, and the scale of the map to be adjusted is adjusted according to the incremental data to obtain the target map; compared with the existing method of re-requesting the update data packet of the entire map from the background server when scaling the map, and using the update data packet to overwrite the current data packet, in this embodiment, only the incremental data corresponding to the added map key points need to be requested from the server to complete the map scale adjustment, thereby reducing the amount of transmitted data. Improve the map display speed.

[0199] Other embodiments or specific implementations of the map scale adjustment device of the present invention can refer to the above-mentioned method embodiments, which will not be described in detail here.

[0200] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0201] The serial numbers of the embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments. In a unit claim that lists several means, several of these means may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order and these words may be interpreted as names.

[0202] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory image (ROM) / random access memory (RAM), a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0203] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A map scale adjustment method, characterized in that: The map scale adjustment method comprises the following steps: When receiving a scale adjustment request, determining a target scale according to the scale adjustment request, and searching for a target map key point corresponding to the target scale; Obtain the current scale of the map to be adjusted, and find the key points of the current map corresponding to the current scale; Determine the identifier of the data to be requested according to the current map key point and the target map key point, and send the identifier of the data to be requested to a preset server; Receiving the incremental data fed back by the preset server according to the identifier of the data to be requested, and adjusting the scale of the map to be adjusted according to the incremental data to obtain a target map; Wherein, before the step of determining the identifier of the data to be requested according to the current map key point and the target map key point, and sending the identifier of the data to be requested to the preset server, it also includes: Determine whether the target scale is greater than the current scale; Accordingly, the step of determining the identifier of the data to be requested according to the current map key point and the target map key point, and sending the identifier of the data to be requested to the preset server includes: When the target scale is larger than the current scale, determining the identifier of the data to be requested according to the current map key points and the target map key points, and sending the identifier of the data to be requested to a preset server; After the step of determining whether the target scale is greater than the current scale, the method further includes: When the target scale is less than or equal to the current scale, determining the display map key points according to the current map key points and the target map key points; The scale of the map to be adjusted is adjusted according to the key points of the displayed map to obtain a target map.

2. The map scale adjustment method according to claim 1, characterized in that: The step of determining the identifier of the data to be requested according to the current map key point and the target map key point, and sending the identifier of the data to be requested to the preset server specifically includes: Matching the current map key point with the target map key point, and determining the map key point to be requested according to the matching result; The requested data identifier corresponding to the requested map key point is searched, and the requested data identifier is sent to a preset server.

3. The map scale adjustment method according to claim 2, characterized in that: The step of matching the current map key point with the target map key point and determining the map key point to be requested according to the matching result specifically includes: Traversing the target map key points, and using the traversed target map key points as the map key points to be matched; Matching the to-be-matched map key point with the current map key point to obtain a matching result; After the traversal of the target map key points is completed, the target map key points that failed to match are used as the map key points to be requested.

4. The map scale adjustment method according to claim 3, characterized in that: The step of receiving the incremental data fed back by the preset server according to the identifier of the data to be requested, and adjusting the scale of the map to be adjusted according to the incremental data to obtain the target map specifically includes: Receiving incremental data fed back by the preset server according to the identifier of the data to be requested; Determining the reserved map data according to the current map key points, and determining the target map data according to the reserved map data and the incremental data; The scale of the map to be adjusted is adjusted according to the target map data to obtain a target map.

5. The map scale adjustment method according to claim 4, characterized in that: The step of determining the reserved map data according to the current map key points, and determining the target map data according to the reserved map data and the incremental data specifically includes: Screening the current map key points according to the matching results to obtain the reserved map key points; The reserved map data is determined according to the reserved map key points, and the target map data is determined according to the reserved map data and the incremental data.

6. The map scale adjustment method according to claim 1, characterized in that: The step of determining the display map key points according to the current map key points and the target map key points when the target scale is less than or equal to the current scale specifically includes: When the target scale is less than or equal to the current scale, matching the current map key points with the target map key points; The current map key point that is successfully matched is used as the display map key point.

7. The map scale adjustment method according to any one of claims 1 to 5, characterized in that: The step of determining the target scale according to the scale adjustment request and searching for the target map key points corresponding to the target scale when the scale adjustment request is received specifically includes: When receiving a scale adjustment request, extracting an identifier of the scale adjustment request to obtain an information identifier; Extracting the scale adjustment request according to the information identifier to obtain a target scale; Find the target map key points corresponding to the target scale.

8. The map scale adjustment method according to claim 7, characterized in that: The step of searching for the target map key points corresponding to the target scale specifically includes: Searching for a to-be-displayed picture corresponding to the target scale, and performing image recognition on the to-be-displayed picture to obtain a recognition result; Determine the line segment to be displayed according to the recognition result, and obtain the map coordinates of the line segment to be displayed; The line segments to be displayed are extracted according to the map coordinates through a preset Douglas model to obtain target map key points.

9. The map scale adjustment method according to any one of claims 1 to 5, characterized in that: The step of receiving the incremental data fed back by the preset server according to the identifier of the data to be requested, and adjusting the scale of the map to be adjusted according to the incremental data to obtain the target map specifically includes: receiving usage information fed back by the user based on the target map, and judging whether the target map is displayed normally based on the usage information; When the target map displays abnormally, generating a pending data packet identifier according to the target scale, and sending the pending data packet identifier to the preset server; Receiving a target display data packet fed back by the preset server according to the identifier of the data packet to be requested; The scale of the map to be adjusted is adjusted according to the target display data packet to obtain a target map.

10. The map scale adjustment method according to claim 9, characterized in that: The step of adjusting the scale of the map to be adjusted according to the target display data packet to obtain the target map specifically includes: Obtaining a currently displayed data packet corresponding to the map to be adjusted; The current display data packet is replaced with the target display data packet, and a target map is generated according to the target display data packet.

11. A map scale adjustment device, characterized in that: The map scale adjustment device comprises: a memory, a processor, and a map scale adjustment program stored in the memory and executable on the processor. When the map scale adjustment program is executed by the processor, the steps of the map scale adjustment method according to any one of claims 1 to 10 are implemented.

12. A storage medium, characterized in that: The storage medium stores a map scale adjustment program, and when the map scale adjustment program is executed by the processor, the steps of the map scale adjustment method according to any one of claims 1 to 10 are implemented.

13. A map scale adjustment device, characterized in that: The map scale adjustment device comprises: a search module, an acquisition module, a determination module and an adjustment module; The search module is used to determine the target scale according to the scale adjustment request when receiving the scale adjustment request, and search for the target map key point corresponding to the target scale; The acquisition module is used to acquire the current scale of the map to be adjusted, and find the key points of the current map corresponding to the current scale; The determination module is used to determine the identifier of the data to be requested according to the current map key point and the target map key point, and send the identifier of the data to be requested to a preset server; The adjustment module is used to receive the incremental data fed back by the preset server according to the identifier of the data to be requested, and to adjust the scale of the map to be adjusted according to the incremental data to obtain a target map; The map scale adjustment device further includes: a judgment module; The judging module is used to judge whether the target scale is greater than the current scale; Correspondingly, the determination module is further used to determine the identifier of the data to be requested according to the current map key point and the target map key point when the target scale is larger than the current scale, and send the identifier of the data to be requested to the preset server; The adjustment module is further used to determine the display map key points according to the current map key points and the target map key points when the target scale is less than or equal to the current scale; and adjust the scale of the map to be adjusted according to the display map key points to obtain the target map.

14. The map scale adjustment device according to claim 13, characterized in that: The determination module is further used to match the current map key point with the target map key point, and determine the map key point to be requested according to the matching result; The determination module is further used to find the identifier of the data to be requested corresponding to the key point of the map to be requested, and send the identifier of the data to be requested to a preset server.

15. The map scale adjustment device according to claim 14, characterized in that: The determination module is further used to traverse the target map key points and use the traversed target map key points as the map key points to be matched; The determination module is further used to match the to-be-matched map key point with the current map key point to obtain a matching result; The determination module is further configured to, after the traversal of the target map key points is completed, use the target map key points that failed to match as the map key points to be requested.

16. The map scale adjustment device according to claim 15, characterized in that: The adjustment module is further configured to receive the incremental data fed back by the preset server according to the identifier of the data to be requested; The adjustment module is further used to determine the reserved map data according to the current map key points, and determine the target map data according to the reserved map data and the incremental data; The adjustment module is further used to adjust the scale of the map to be adjusted according to the target map data to obtain the target map.

17. The map scale adjustment device according to claim 16, characterized in that: The adjustment module is further used to screen the current map key points according to the matching results to obtain the reserved map key points; The adjustment module is further used to determine the reserved map data according to the reserved map key points, and to determine the target map data according to the reserved map data and the incremental data.

Citation Information

Patent Citations

  • Apparatus for determining dot mark position in image terminal device, system and method thereof

    CN1459742A