A method, device, storage medium and terminal for mapping electronic maps

By constructing envelope polygons to provide a relative coordinate system, the problem of differences in road network detail between electronic maps is solved, the accuracy and efficiency of mapping are improved, and efficient data exchange across map providers is achieved.

CN114328771BActive Publication Date: 2024-09-10BEIJING PALMGO INFOTECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111357746.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-16
Publication Date
2024-09-10
Estimated Expiration
2041-11-16

AI Technical Summary

Technical Problem

Data mapping between existing electronic maps has differences in road network detail, which affects mapping accuracy and efficiency, and lacks a unified data standard and basic database exchange mechanism.

Method used

By constructing the envelope polygon of the electronic map, a relative coordinate system is provided to bridge the difference in detail of the road network, and a road segment result set is generated and mapped to improve the accuracy and efficiency of mapping.

Benefits of technology

It effectively solves the problem of differences in road network details when mapping between electronic maps, improves the accuracy and efficiency of mapping, and reduces interference from different road sections.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114328771B
    Figure CN114328771B
Patent Text Reader

Abstract

The present invention discloses a mapping method of an electronic map, comprising: obtaining nodes to be expanded existing in a map to be processed; judging whether each node to be expanded is a target node to be expanded; when the node to be expanded meets a preset condition set, determining the node to be expanded as a target node to be expanded, and constructing a first envelope polygon of the node according to the target node to be expanded; constructing a second envelope polygon of the map to be mapped according to the first envelope polygon; finding the incident road section or the exit road section directly connected to the envelope polygons of two maps, and generating a first road section result set and a second road section result set based on the incident road section or the exit road section; mapping the road section included in the first envelope polygon with the road section included in the second envelope polygon, and mapping the first road section set with the second road section set. Because the difference sections in the road network detail level of the two electronic maps are bridged by constructing their respective envelope polygons before mapping, the two electronic maps are not interfered by the difference sections during mapping, thereby improving the accuracy and efficiency of mapping the two electronic maps.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the fields of computer technology and intelligent transportation, and in particular to an electronic map mapping method, device, storage medium and terminal. Background Art

[0002] With the development of society and the improvement of living standards, the spatial scope of people's activities is constantly expanding, and maps play a vital role in people's lives. Especially in the Internet and mobile Internet era, electronic maps can help users find points of interest (POI), plan routes, view traffic information, etc., and have the advantages of easy search, easy to carry, and fast data update.

[0003] In recent years, the electronic map industry has achieved great development and progress, but there are also fundamental problems. The reason is that due to the lack of unified data standards and the uneven levels of production technology and platform construction of various electronic map manufacturers, it is impossible to achieve a basic database with data exchange. Therefore, for upper-level applications that rely on electronic maps, such as traffic information services, if they want to provide services and content across map vendors, they must complete the mapping between electronic maps of different vendors and different versions because the basic databases between map vendors cannot effectively exchange data. With the continuous increase in the frequency of road network updates, how to achieve efficient mapping between different electronic maps has become more prominent.

[0004] In this context, Chinese patents No. 201611262290.2, 201811496446.2, 202010171969.0 and other patents proposed a series of methods for automatically realizing electronic map mapping by computer. However, the differences in road network details, point and line locations, local road shape details, etc. of different electronic maps have posed considerable challenges to the automatic mapping of electronic maps. Figure 1 The figure shows the superposition effect of two electronic maps from different manufacturers. From the partial enlarged image on the right, we can see that the road network of electronic map B is more detailed than that of electronic map A. It not only contains many road sections that are not included in electronic map A (new road sections), but also some of the new road sections are spatially close to the road sections included in electronic map A (such as Figure 1 This will undoubtedly interfere with the normal mapping of electronic map B and electronic map A, affecting the accuracy and efficiency of electronic map mapping. Summary of the invention

[0005] The embodiments of the present application provide a method, device, storage medium and terminal for mapping an electronic map. In order to have a basic understanding of some aspects of the disclosed embodiments, a simple summary is given below. This summary is not a general review, nor is it intended to identify key / important components or describe the scope of protection of these embodiments. Its only purpose is to present some concepts in a simple form as a preface to the detailed description that follows.

[0006] In a first aspect, an embodiment of the present application provides a method for mapping an electronic map, the method comprising:

[0007] Determine a map to be processed and a map to be mapped, and obtain nodes to be expanded in the map to be processed; wherein the road network detail of the map to be processed is less than the road network detail of the map to be mapped;

[0008] Determine whether each of the nodes to be expanded is a target node to be expanded;

[0009] When the node to be expanded meets a preset condition set, the node to be expanded is determined as a target node to be expanded, and a first envelope polygon of the target node to be expanded is constructed according to the target node to be expanded;

[0010] Constructing a second envelope polygon of the map to be mapped according to the first envelope polygon;

[0011] Finding the incident path segment or the outgoing path segment directly connected to the first envelope polygon and the second envelope polygon respectively, and generating a first path segment result set and a second path segment result set based on the incident path segment or the outgoing path segment directly connected to the first envelope polygon and the second envelope polygon;

[0012] The road segments included in the first envelope polygon are mapped with the road segments included in the second envelope polygon, and the first road segment set is mapped with the second road segment set, and the mapped results are serialized and saved.

[0013] Optionally, determine the map to be processed and the map to be mapped, including:

[0014] Acquire a first electronic map and a second electronic map;

[0015] Calculating a first road network length of a first electronic map;

[0016] Calculating a second road network length of a second electronic map;

[0017] When the first road network length is less than the second road network length, the first electronic map is determined as a map to be processed, and the second electronic map is determined as a map to be mapped.

[0018] Optionally, when the node to be expanded meets a preset condition set, determining the node to be expanded as a target node to be expanded, and constructing a first envelope polygon of the target node to be expanded according to the target node to be expanded, comprises:

[0019] Determine the incoming segment set and the outgoing segment set of the node to be expanded;

[0020] For any incident segment and outgoing segment in the incident segment set and the outgoing segment set, calculate the incident angle of the incident segment and the outgoing angle of the outgoing segment;

[0021] Calculate the section angle according to the incident angle of the incident section and the exit angle of the exit section;

[0022] Calculate the deflection angle from the incident angle of the incident section to the exit angle of the exit section in a clockwise direction;

[0023] When the incident road section and the outgoing road section do not belong to the preset first road section set, and the road section angle belongs to the preset interval, and the road section angle and the deflection angle are equal, it is determined that the node to be expanded meets the preset condition set, and the node to be expanded is determined as the target node to be expanded;

[0024] A first envelope polygon of the target node to be expanded is constructed according to the target node to be expanded.

[0025] Optionally, when the target node to be expanded does not satisfy a preset condition set, the step of obtaining whether the node to be expanded in the map to be processed is the target node to be expanded is continued until the traversal of all nodes to be expanded in the map to be processed is completed.

[0026] Optionally, constructing a first envelope polygon of the target node to be expanded according to the marked node to be expanded includes:

[0027] Perform a bidirectional breadth-first traversal on the target node to be expanded to find an expansion node that meets the expansion condition; when the forward traversal reaches a certain node, the node has been visited by the reverse traversal process, the traversal is terminated and the node is recorded as the first node;

[0028] Extracting a first path from the target node to be expanded to the first node during a forward traversal process, and extracting a second path from the first node to the target node to be expanded during a reverse traversal process;

[0029] After the first path and the second path are spliced, a first envelope polygon is generated.

[0030] Optionally, constructing a second envelope polygon of the map to be mapped according to the first envelope polygon includes:

[0031] Extracting the inner point sequence of all road sections of the first envelope polygonal contour;

[0032] A map matching algorithm is executed in the map to be mapped based on the interior point sequence to generate a second envelope polygon.

[0033] Optionally, generating a first segment result set and a second segment result set based on an incoming segment or an outgoing segment directly connected thereto includes:

[0034] When the incident section or the outgoing section directly connected thereto satisfies a preset second condition set, the incident section or the outgoing section directly connected thereto is determined as the starting section of the first envelope polygon and the starting section of the second envelope polygon;

[0035] According to the exit road segments existing in the starting road segment of the first envelope polygon, a forward breadth-first traversal is performed on the map to be processed, and then a first traversal result is output;

[0036] According to the incident road segment existing in the starting road segment of the first envelope polygon, a reverse breadth-first traversal is performed on the map to be processed, and then a second traversal result is output;

[0037] Merge the first traversal result and the second traversal result into a first road section result set;

[0038] According to the exit road segments existing in the starting road segments of the second envelope polygon, a forward breadth-first traversal is performed on the to-be-mapped map, and then a third traversal result is output;

[0039] According to the incident road segment existing in the starting road segment of the second envelope polygon, a reverse breadth-first traversal is performed on the map to be mapped, and then a fourth traversal result is output;

[0040] The third traversal result and the fourth traversal result are combined into a second road segment result set.

[0041] Optionally, the method further includes:

[0042] The road segments included in the first envelope polygon and the first road segment result set are saved into a preset first road segment set;

[0043] The road segment included in the second envelope polygon and the second road segment result set are saved into a preset second road segment set.

[0044] In a second aspect, an embodiment of the present application provides a mapping device for an electronic map, the device comprising:

[0045] The target node to be expanded determination module is used to determine the map to be processed and the map to be mapped, and obtain the nodes to be expanded existing in the map to be processed, and determine whether each of the nodes to be expanded is a target node to be expanded; wherein the road network detail of the map to be processed is less than the road network detail of the map to be mapped;

[0046] A first envelope polygon construction module is used to determine the node to be expanded as a target node to be expanded when the node to be expanded meets a preset condition set, and to construct a first envelope polygon of the target node to be expanded according to the target node to be expanded;

[0047] A second envelope polygon construction module, used to construct a second envelope polygon of the map to be mapped according to the first envelope polygon;

[0048] A segment result set generation module, used for finding the incident segment or the exit segment directly connected to the first envelope polygon and the second envelope polygon respectively, and generating the first segment result set and the second segment result set based on the incident segment or the exit segment directly connected to the first envelope polygon;

[0049] The road segment mapping module is used to map the road segments included in the first enveloping polygon with the road segments included in the second enveloping polygon, and to map the first road segment set with the second road segment set, and to serialize and save the mapped results.

[0050] In a third aspect, an embodiment of the present application provides a computer storage medium, which stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the above-mentioned method steps.

[0051] In a fourth aspect, an embodiment of the present application provides a terminal, which may include: a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the above-mentioned method steps.

[0052] The technical solution provided by the embodiments of the present application may have the following beneficial effects:

[0053] In the embodiment of the present application, the mapping device of the electronic map first obtains the nodes to be expanded in the map to be processed, and then determines whether each of the nodes to be expanded is a target node to be expanded; when the node to be expanded meets the preset condition set, the node to be expanded is determined as the target node to be expanded, and the first envelope polygon of the node is constructed according to the target node to be expanded, and then the second envelope polygon of the map to be mapped is constructed according to the first envelope polygon, and then the envelope polygons of the two maps are respectively searched for the incident road segment or the outgoing road segment directly connected to each other, and the first road segment result set and the second road segment result set are generated based on the incident road segment or the outgoing road segment, and finally the road segment included in the first envelope polygon is mapped with the road segment included in the second envelope polygon, and the first road segment set is mapped with the second road segment set. Because the present application plays the role of "relative coordinate system" by constructing respective envelope polygons before mapping the two electronic maps, a larger field of view and richer semantic information are provided for mapping, thereby bridging the difference sections in the degree of detail of the road network, so that the two electronic maps are not disturbed by the difference sections during mapping, thereby improving the accuracy and efficiency of mapping the two electronic maps.

[0054] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0056] Figure 1 This is a schematic diagram of the effect of superimposing different electronic maps provided in an embodiment of the present application;

[0057] Figure 2 It is a flowchart of an electronic map mapping method provided in an embodiment of the present application;

[0058] Figure 3 It is a schematic diagram of a node to be expanded, an incident section and an outgoing section provided in an embodiment of the present application;

[0059] Figure 4 This is a schematic diagram of problems and analysis when mapping a road network with different levels of detail provided in an embodiment of the present application;

[0060] Figure 5 This is a schematic diagram of a polygonal area formed by road segmentation provided in an embodiment of the present application;

[0061] Figure 6 It is a structural schematic diagram of an electronic map mapping device provided in an embodiment of the present application;

[0062] Figure 7 It is a structural diagram of a terminal provided in an embodiment of the present application. DETAILED DESCRIPTION

[0063] The following description and the drawings sufficiently illustrate specific embodiments of the invention to enable those skilled in the art to practice them.

[0064] It should be clear that the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0065] When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are only examples of devices and methods consistent with some aspects of the present invention as detailed in the attached claims.

[0066] In the description of the present invention, it should be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances. In addition, in the description of the present invention, unless otherwise specified, "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the previously associated objects are in an "or" relationship.

[0067] The present application provides an electronic map mapping method, device, storage medium and terminal to solve the problems existing in the above-mentioned related technical problems. In the technical solution provided by the present application, since the present application plays the role of a "relative coordinate system" by constructing respective envelope polygons before mapping two electronic maps, a larger field of view and richer semantic information are provided for mapping, thereby bridging the difference in road network detail between the two electronic maps, so that the two electronic maps are not disturbed by the difference in road sections during mapping, thereby improving the accuracy and efficiency of the mapping of the two electronic maps, and an exemplary embodiment is used for detailed description below.

[0068] The following will be combined with the attached Figure 2 -Attached Figure 5, a detailed introduction to the electronic map mapping method provided in the embodiment of the present application is given. The method can be implemented by a computer program and can be run on a mapping device for an electronic map based on the von Neumann system. The computer program can be integrated into an application or run as an independent tool application.

[0069] See also Figure 2 , which is a flow chart of a method for mapping an electronic map according to an embodiment of the present application. Figure 2 As shown, the method of the embodiment of the present application may include the following steps:

[0070] S101, determining a map to be processed and a map to be mapped, and obtaining nodes to be expanded in the map to be processed; determining whether each of the nodes to be expanded is a target node to be expanded;

[0071] The road network detail of the map to be processed is less than the road network detail of the map to be mapped, and the target node to be expanded is any unexpanded node in the electronic map with lower road network detail.

[0072] Generally, for a given electronic map G(N,E), N and E are the sets of nodes and road segments in the map, respectively. From the perspective of map mapping, for a given road segment e∈E, let is the interior point sequence of section e, then the triple Defines the geometric semantics of segment e, that is, segment e from Set out along N e Given the road shape, reach If a road segment e′ is found in another electronic map G′, it satisfies and Geometric similarity is denoted by Right now and Then there is a potential mapping relationship between road segments e′ and e.

[0073] In one possible implementation, when determining a map to be processed and a map to be mapped, first obtain a first electronic map and a second electronic map, then calculate a first road network length of the first electronic map, and calculate a second road network length of the second electronic map, and finally, when the first road network length is less than the second road network length, determine the first electronic map as the map to be processed, and determine the second electronic map as the map to be mapped.

[0074] Specifically, for example, when determining the road network detail of the electronic maps G and G′, the present application characterizes the road network detail based on the road network coverage mileage of the electronic maps, that is, Len(G)=∑ K len(e k ),ek ∈E;

[0075] Where K is the number of road segments in G, function len() takes the length of the road segment, and function Len() takes the length of the road network. If Len(G′)>Len(G), that is, the level of detail of electronic map G′ is greater than that of electronic map G, then electronic map G can be determined as the map to be processed, and electronic map G′ can be determined as the map to be mapped.

[0076] S102, when the node to be expanded meets a preset condition set, determining the node to be expanded as a target node to be expanded, and constructing a first envelope polygon of the target node to be expanded according to the target node to be expanded;

[0077] In an embodiment of the present application, when constructing a first envelope polygon, first determine an incident segment set and an exit segment set of the node to be expanded, then calculate the incident angle of the incident segment and the exit angle of the exit segment for any incident segment and exit segment in the incident segment set and the exit segment set, then calculate the segment angle based on the incident angle of the incident segment and the exit angle of the exit segment, then calculate the deflection angle from the incident angle of the incident segment to the exit angle of the exit segment in a clockwise direction, and finally, when the incident segment and the exit segment do not belong to the preset first segment set, and the segment angle belongs to a preset interval, and the segment angle and the deflection angle are equal, determine that the node to be expanded meets the preset condition set, determine the node to be expanded as the target node to be expanded, and construct the first envelope polygon of the target node to be expanded based on the target node to be expanded.

[0078] Furthermore, if the target node to be expanded does not satisfy the preset condition set, the step of obtaining the nodes to be expanded existing in the map to be processed is continued until all the nodes to be expanded existing in the map to be processed are traversed.

[0079] In a possible implementation, the target node to be expanded can be denoted as n k ∈N, let n k The incident road segment set, n k The outgoing segment set. Among them, the functions bgn_node() and end_node() take the starting node and ending node of the segment respectively.

[0080] like Figure 3 As shown, for n k An outgoing segment e j ∈φ k and the incident segment Check whether the following conditions are met:

[0081]

[0082] Among them, Ω G is the set of road segments that have been searched in the process of constructing the envelope polygon in the electronic map G; the function inc_angle(,) calculates the angle between two angles, fangle() takes the exit angle of the starting node of the road segment, and tangle() takes the incident angle of the ending node of the road segment. In this application, the focus is usually on the nodes where the angle between the incident and exit segments is around 90 degrees, and θ is the margin for angle selection; the function turn_angle(a,b) calculates the deflection angle from a to b in a clockwise direction, which is defined as:

[0083]

[0084] When turn_angle(a,b)=inc_angle(a,b), it can be guaranteed that the angle is deflected clockwise from angle a to angle b, otherwise it is deflected counterclockwise. Because the envelope polygon generated by this application is clockwise (in order to conform to the direction of traffic flow), this conditional judgment is required.

[0085] If n k If the above three conditions are met, the first envelope polygon of the target node to be expanded is constructed according to the marked node to be expanded, otherwise the next node to be expanded is re-determined and judged, and the process will not exit until all nodes have been judged.

[0086] Furthermore, when constructing the first envelope polygon of the target node to be expanded according to the target node to be expanded, first determine the current target expansion node to be visited, and then perform a bidirectional breadth-first traversal with the target node to be expanded as the starting point to find an expansion node that meets the expansion condition; when the forward traversal reaches a certain node, and the node has been visited by the reverse traversal process, the traversal is terminated, and the node is recorded as the first node, and then the first path from the target node to be expanded to the first node in the forward traversal process is extracted, and the second path from the first node to the target node to be expanded in the reverse traversal process is extracted, and finally the first path and the second path are spliced ​​to generate a first envelope polygon.

[0087] It should be noted that the above-mentioned searching for an extension node that meets the extension condition refers to searching for road network nodes that meet the topological connectivity condition in sequence as extension nodes.

[0088] Specifically, Figure 3 As shown in (a), for node n k Perform a bidirectional breadth-first traversal, starting from e j Starting from e iStarting from, a reverse breadth-first traversal is performed on the electronic map G. After the two algorithm processes are executed alternately, a first envelope polygon can be generated.

[0089] In this embodiment, the forward and reverse breadth-first traversal processes share the traversed node set Ψ k When the algorithm reaches a certain step (for example, the current forward traversal process), the current node visited is n p , found n p If it has been visited by the reverse traversal process, the traversal algorithm terminates and the forward traversal process is extracted from n k to n p The path path_forward(G,n k ,n p ) and the reverse traversal process from n p to n k The path path_backward(G,n k ,n p ), the result of splicing the two is the envelope polygon Otherwise, if the algorithm fails to find n p , that is, the envelope polygon cannot be generated Then continue to determine the next node to be expanded.

[0090] Since the polygon to be constructed is in a clockwise direction, the algorithm can be accelerated by pruning during the breadth-first traversal. Figure 4 As shown in (b), when the forward traversal process starts from e j Expand to e j+1 When, based on the functions turn_angle(,) and inc_angle(,) it can be determined Relative to e j If it rotates counterclockwise, Similarly, the reverse traversal process can also be pruned accordingly.

[0091] S103, constructing a second envelope polygon of the map to be mapped according to the first envelope polygon;

[0092] In an embodiment of the present application, when constructing the second envelope polygon, the inner point sequence of all road sections of the first envelope polygon outline is first extracted, and then a map matching algorithm is executed in the map to be mapped based on the inner point sequence to generate the second envelope polygon.

[0093] In a possible implementation, first extract the first envelope polygon The inner point sequence of all road sections in the map is calculated, and a map-matching algorithm is executed in the electronic map G′ to generate a second envelope polygon. In order to improve the efficiency of algorithm execution, The extracted interior point sequence is used to execute the Douglas–Peucke algorithm to extract the key feature points in the interior point sequence, thereby reducing the number of executions of the map-matching algorithm.

[0094] It should be noted that if Figure 4 As shown, by constructing a closed envelope polygon and The mappings n1→n2 and n′1→n′2 are integrated into the envelope polygon and In the mapping of Figure 4 (b)), so that the mapping has a larger field of view and richer semantic information, ensuring the accuracy of the mapping. In addition, and It can also play the role of "relative coordinate system" in mapping, based on polygon and And the closure of the polygon shows that Figure 4 In (a), except for the sections n1→n2 and n′1→n′2, all the sections are within the polygon envelope ( Figure 4 (c)), it can be seen that after eliminating n1→n2 and n′1→n′2, the mapping relationship of other sections is also clearer. For example, the incorrect mapping of n′5→n′6 and n1→n2 is eliminated; the point mapping relationship between n3 and n′3 can be based on and ’s mapping is strengthened, thus achieving the effect of “divide and conquer”.

[0095] S104, searching for the incident road segment or the outgoing road segment directly connected to the first envelope polygon and the second envelope polygon respectively, and generating a first road segment result set and a second road segment result set based on the incident road segment or the outgoing road segment directly connected to the first envelope polygon and the second envelope polygon;

[0096] In an embodiment of the present application, first, when the incident segment or the exit segment directly connected to it satisfies the preset second condition set, the incident segment or the exit segment directly connected to it is determined as the starting segment of the first envelope polygon and the starting segment of the second envelope polygon, and then according to the exit segment existing in the starting segment of the first envelope polygon, a forward breadth-first traversal is performed on the processed map and a first traversal result is output. The traversal is to traverse the segments in the road network topology, and the segments that meet the conditions of road network topology connectivity are screened out as the first traversal result, and the same applies below. Then, according to the incident road segment existing in the starting road segment of the first envelope polygon, a reverse breadth-first traversal is performed on the processed map and a second traversal result is output, and the first traversal result and the second traversal result are merged into a first road segment result set. Next, according to the exit road segment existing in the starting road segment of the second envelope polygon, a forward breadth-first traversal is performed on the mapped map and a third traversal result is output. Then, according to the incident road segment existing in the starting road segment of the second envelope polygon, a reverse breadth-first traversal is performed on the mapped map and a fourth traversal result is output. Finally, the third traversal result and the fourth traversal result are merged into a second road segment result set.

[0097] In one possible implementation, for the first clockwise envelope polygon First, find the directly connected incoming or outgoing path (take the outgoing path as an example). For the road segments associated with it, the clockwise deflection should be satisfied. For a given outgoing road segment e l , let e j yes The road segments associated with it are judged by the following conditions:

[0098]

[0099] Such as l If the above conditions are met, then e l Yes j The downstream one is The internal starting road segment performs a forward breadth-first traversal on the electronic map G to be processed, and the traversal result is added to the road segment result set to obtain the first road segment result set Similarly, perform a reverse breadth-first traversal on the given incident road segment, and add the traversal results to the road segment result set. Otherwise, the next given outgoing path or incoming path is determined until all directly connected outgoing paths or incoming paths have been determined. Figure 4 In (a), if e j =n1→n3, then e l =n3→n4. Similarly, a direct-connected incident start section can be defined.

[0100] Similarly, the second section result set of the electronic map G′ can be obtained:

[0101] Further, after obtaining the first section result set and the second segment result set After that, the road segments included in the first envelope polygon and the first road segment result set can be saved to the preset first road segment set Ω G and save the road segments contained in the second envelope polygon and the second road segment result set to the preset second road segment set Ω G′ middle.

[0102] It should be noted that the first road segment set Ω is saved in the preset G Neutralize and save to the preset second section set Ω G′ The purpose is to provide parameter protection for the preset first condition set.

[0103] S105, mapping the road segments included in the first envelope polygon with the road segments included in the second envelope polygon, and mapping the first road segment set with the second road segment set, and serializing and saving the mapped results.

[0104] Usually, when two electronic maps differ in terms of road network detail, point and line locations, local road type details, etc., it poses a great challenge to the mapping of geometric semantics. Figure 4 (a) shows the superposition of two electronic maps A and B. In the figure, the sections that meet the mapping requirements are n1→n2 and n′1→n′2. However, when there is a more detailed section description in map B, not only n′1→n′2 is interrupted, but also other interference is introduced (n′5→n′6 can also be mapped to section n1→n2), which will also reduce the mapping efficiency (even if the distance is far, n′7→n′8 also needs to be mapped with section n1→n2). In this case, by Figure 1 From the observation, we can find that, from a broader perspective, the difference in the level of detail of the road network description between the two maps generally exists in the polygonal areas divided by the main roads (such as Figure 5 This application uses this property to construct a closed envelope polygon ( Figure 4 (b)), so that the road sections on and inside the polygon boundary are strictly distinguished and mapped separately, thus achieving the purpose of bridging the differences in the detail levels of different road networks.

[0105] In one possible implementation, after obtaining the first road segment result set and the second road segment result set, the road segments included in the first envelope polygon can be mapped with the road segments included in the second envelope polygon, and the first road segment set can be mapped with the second road segment set, and the mapped results can be serialized and saved.

[0106] Specifically, when performing road segment mapping, semantic extraction is first performed on the road segments of the two maps to generate a first semantic set and a second semantic set. The first semantic set includes first micro semantics, first meso semantics and first macro semantics, and the second semantic set includes second micro semantics, second meso semantics and second macro semantics. Then, mapping is performed based on the first semantic set and the second semantic set to generate an electronic map mapping result.

[0107] In the embodiment of the present application, the mapping device of the electronic map first obtains the nodes to be expanded in the map to be processed, and then determines whether each of the nodes to be expanded is a target node to be expanded; when the node to be expanded meets the preset condition set, the node to be expanded is determined as the target node to be expanded, and the first envelope polygon of the node is constructed according to the target node to be expanded, and then the second envelope polygon of the map to be mapped is constructed according to the first envelope polygon, and then the envelope polygons of the two maps are respectively searched for the incident road segment or the outgoing road segment directly connected to each other, and the first road segment result set and the second road segment result set are generated based on the incident road segment or the outgoing road segment, and finally the road segment included in the first envelope polygon is mapped with the road segment included in the second envelope polygon, and the first road segment set is mapped with the second road segment set. Because the present application plays the role of "relative coordinate system" by constructing respective envelope polygons before mapping the two electronic maps, a larger field of view and richer semantic information are provided for mapping, thereby bridging the difference sections in the degree of detail of the road network, so that the two electronic maps are not disturbed by the difference sections during mapping, thereby improving the accuracy and efficiency of mapping the two electronic maps.

[0108] The following are embodiments of the device of the present invention, which can be used to implement the method embodiments of the present invention. For details not disclosed in the device embodiments of the present invention, please refer to the method embodiments of the present invention.

[0109] See also Figure 6 , which shows a schematic diagram of the structure of an electronic map mapping device provided by an exemplary embodiment of the present invention. The electronic map mapping device can be implemented as all or part of a terminal through software, hardware or a combination of both. The device 1 includes a to-be-expanded node acquisition module 10, a first envelope polygon construction module 20, a second envelope polygon construction module 30, a segment result set generation module 40, and a segment mapping module 50.

[0110] The target node to be expanded determination module 10 is used to determine the map to be processed and the map to be mapped, and obtain the nodes to be expanded existing in the map to be processed; wherein the road network detail of the map to be processed is less than the road network detail of the map to be mapped; and determine whether each of the nodes to be expanded is a target node to be expanded;

[0111] A first envelope polygon construction module 20 is used to determine the node to be expanded as a target node to be expanded when the node to be expanded meets a preset condition set, and to construct a first envelope polygon of the target node to be expanded according to the target node to be expanded;

[0112] A second envelope polygon construction module 30, used to construct a second envelope polygon of the map to be mapped according to the first envelope polygon;

[0113] A road segment result set generating module 40, configured to search for an incident road segment or an outgoing road segment directly connected to the first envelope polygon and the second envelope polygon, and generate a first road segment result set and a second road segment result set based on the incident road segment or the outgoing road segment directly connected to the first envelope polygon;

[0114] The road segment mapping module 50 is used to map the road segments included in the first envelope polygon with the road segments included in the second envelope polygon, and to map the first road segment set with the second road segment set, and to serialize and save the mapped results.

[0115] It should be noted that the electronic map mapping device provided in the above embodiment only uses the division of the above functional modules as an example when executing the electronic map mapping method. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the electronic map mapping device provided in the above embodiment and the electronic map mapping method embodiment belong to the same concept, and the implementation process thereof is detailed in the method embodiment, which will not be repeated here.

[0116] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0117] In the embodiment of the present application, the mapping device of the electronic map first obtains the nodes to be expanded in the map to be processed, and then determines whether each of the nodes to be expanded is a target node to be expanded; when the node to be expanded meets the preset condition set, the node to be expanded is determined as the target node to be expanded, and the first envelope polygon of the node is constructed according to the target node to be expanded, and then the second envelope polygon of the map to be mapped is constructed according to the first envelope polygon, and then the envelope polygons of the two maps are respectively searched for the incident road segment or the outgoing road segment directly connected to each other, and the first road segment result set and the second road segment result set are generated based on the incident road segment or the outgoing road segment, and finally the road segment included in the first envelope polygon is mapped with the road segment included in the second envelope polygon, and the first road segment set is mapped with the second road segment set. Because the present application plays the role of "relative coordinate system" by constructing respective envelope polygons before mapping the two electronic maps, a larger field of view and richer semantic information are provided for mapping, thereby bridging the difference sections in the degree of detail of the road network, so that the two electronic maps are not disturbed by the difference sections during mapping, thereby improving the accuracy and efficiency of mapping the two electronic maps.

[0118] The present invention also provides a computer-readable medium on which program instructions are stored. When the program instructions are executed by a processor, the electronic map mapping methods provided by the above-mentioned various method embodiments are implemented.

[0119] The present invention also provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the electronic map mapping method of each of the above method embodiments.

[0120] See also Figure 7 , which is a schematic diagram of the structure of a terminal provided in an embodiment of the present application. Figure 7 As shown, the terminal 1000 may include: at least one processor 1001 , at least one network interface 1004 , a user interface 1003 , a memory 1005 , and at least one communication bus 1002 .

[0121] The communication bus 1002 is used to realize the connection and communication between these components.

[0122] The user interface 1003 may include a display screen (Display) and a camera (Camera), and the optional user interface 1003 may also include a standard wired interface and a wireless interface.

[0123] The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).

[0124] Among them, the processor 1001 may include one or more processing cores. The processor 1001 uses various interfaces and lines to connect various parts of the entire electronic device 1000, and executes various functions and processes data of the electronic device 1000 by running or executing instructions, programs, code sets or instruction sets stored in the memory 1005, and calling data stored in the memory 1005. Optionally, the processor 1001 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 1001 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 1001, and it can be implemented separately through a chip.

[0125] Among them, the memory 1005 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 1005 includes a non-transitory computer-readable storage medium. The memory 1005 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 1005 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 1005 may optionally be at least one storage device located away from the aforementioned processor 1001. As Figure 7 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a mapping application of an electronic map.

[0126] exist Figure 7In the terminal 1000 shown, the user interface 1003 is mainly used to provide an input interface for the user and obtain the data input by the user; and the processor 1001 can be used to call the mapping application of the electronic map stored in the memory 1005, and specifically perform the following operations:

[0127] Determine a map to be processed and a map to be mapped, and obtain nodes to be expanded in the map to be processed; wherein the road network detail of the map to be processed is less than the road network detail of the map to be mapped; and determine whether each of the nodes to be expanded is a target node to be expanded;

[0128] When the node to be expanded meets a preset condition set, the node to be expanded is determined as a target node to be expanded, and a first envelope polygon of the target node to be expanded is constructed according to the target node to be expanded;

[0129] Constructing a second envelope polygon of the map to be mapped according to the first envelope polygon;

[0130] Finding the incident path segment or the outgoing path segment directly connected to the first envelope polygon and the second envelope polygon respectively, and generating a first path segment result set and a second path segment result set based on the incident path segment or the outgoing path segment directly connected to the first envelope polygon and the second envelope polygon;

[0131] The road segments included in the first envelope polygon are mapped with the road segments included in the second envelope polygon, and the first road segment set is mapped with the second road segment set, and the mapped results are serialized and saved.

[0132] In one embodiment, when determining the map to be processed and the map to be mapped, the processor 1001 specifically performs the following operations:

[0133] Acquire a first electronic map and a second electronic map;

[0134] Calculating a first road network length of a first electronic map;

[0135] Calculating a second road network length of a second electronic map;

[0136] When the first road network length is less than the second road network length, the first electronic map is determined as a map to be processed, and the second electronic map is determined as a map to be mapped.

[0137] In one embodiment, when the processor 1001 determines the node to be expanded as a target node to be expanded and constructs a first envelope polygon of the target node to be expanded according to the target node to be expanded when the node to be expanded satisfies a preset condition set, the processor 1001 specifically performs the following operations:

[0138] Determine the incoming segment set and the outgoing segment set of the node to be expanded;

[0139] For any incident segment and outgoing segment in the incident segment set and the outgoing segment set, calculate the incident angle of the incident segment and the outgoing angle of the outgoing segment;

[0140] Calculate the section angle according to the incident angle of the incident section and the exit angle of the exit section;

[0141] Calculate the deflection angle from the incident angle of the incident section to the exit angle of the exit section in a clockwise direction;

[0142] When the incident road section and the outgoing road section do not belong to the preset first road section set, and the road section angle belongs to the preset interval, and the road section angle and the deflection angle are equal, it is determined that the node to be expanded meets the preset condition set, and the node to be expanded is determined as the target node to be expanded;

[0143] A first envelope polygon of the target node to be expanded is constructed according to the target node to be expanded.

[0144] In one embodiment, the processor 1001 further performs the following operations:

[0145] When the target node to be expanded does not satisfy the preset condition set, the step of obtaining the node to be expanded existing in the map to be processed is continued until all the nodes to be expanded existing in the map to be processed are traversed.

[0146] In one embodiment, when the processor 1001 constructs the first envelope polygon of the target node to be expanded according to the marked node to be expanded, the processor 1001 specifically performs the following operations:

[0147] Perform a bidirectional breadth-first traversal on the target node to be expanded to find an expansion node that meets the expansion condition; when the forward traversal reaches a certain node, the node has been visited by the reverse traversal process, the traversal is terminated and the node is recorded as the first node;

[0148] Extracting a first path from the target node to be expanded to the first node during a forward traversal process, and extracting a second path from the first node to the target node to be expanded during a reverse traversal process;

[0149] After the first path and the second path are spliced, a first envelope polygon is generated.

[0150] In one embodiment, when the processor 1001 constructs the second envelope polygon of the map to be mapped according to the first envelope polygon, the processor 1001 specifically performs the following operations:

[0151] Extracting the inner point sequence of all road sections of the first envelope polygonal contour;

[0152] A map matching algorithm is executed in the map to be mapped based on the interior point sequence to generate a second envelope polygon.

[0153] In one embodiment, when the processor 1001 generates the first segment result set and the second segment result set based on the incoming segment or the outgoing segment directly connected thereto, the processor 1001 specifically performs the following operations:

[0154] When the incident section or the outgoing section directly connected thereto satisfies a preset second condition set, the incident section or the outgoing section directly connected thereto is determined as the starting section of the first envelope polygon and the starting section of the second envelope polygon;

[0155] According to the exit road segments existing in the starting road segment of the first envelope polygon, a forward breadth-first traversal is performed on the map to be processed, and then a first traversal result is output;

[0156] According to the incident road segment existing in the starting road segment of the first envelope polygon, a reverse breadth-first traversal is performed on the map to be processed, and then a second traversal result is output;

[0157] Merge the first traversal result and the second traversal result into a first road section result set;

[0158] According to the exit road segments existing in the starting road segments of the second envelope polygon, a forward breadth-first traversal is performed on the to-be-mapped map, and then a third traversal result is output;

[0159] According to the incident road segment existing in the starting road segment of the second envelope polygon, a reverse breadth-first traversal is performed on the map to be mapped, and then a fourth traversal result is output;

[0160] The third traversal result and the fourth traversal result are combined into a second road segment result set.

[0161] In one embodiment, the processor 1001 further performs the following operations:

[0162] The road segments included in the first envelope polygon and the first road segment result set are saved into a preset first road segment set;

[0163] The road segment included in the second envelope polygon and the second road segment result set are saved into a preset second road segment set.

[0164] In the embodiment of the present application, the mapping device of the electronic map first obtains the nodes to be expanded in the map to be processed, and then determines whether each of the nodes to be expanded is a target node to be expanded; when the node to be expanded meets the preset condition set, the node to be expanded is determined as the target node to be expanded, and the first envelope polygon of the node is constructed according to the target node to be expanded, and then the second envelope polygon of the map to be mapped is constructed according to the first envelope polygon, and then the envelope polygons of the two maps are respectively searched for the incident road segment or the outgoing road segment directly connected to each other, and the first road segment result set and the second road segment result set are generated based on the incident road segment or the outgoing road segment, and finally the road segment included in the first envelope polygon is mapped with the road segment included in the second envelope polygon, and the first road segment set is mapped with the second road segment set. Because the present application plays the role of "relative coordinate system" by constructing respective envelope polygons before mapping the two electronic maps, a larger field of view and richer semantic information are provided for mapping, thereby bridging the difference sections in the degree of detail of the road network, so that the two electronic maps are not disturbed by the difference sections during mapping, thereby improving the accuracy and efficiency of mapping the two electronic maps.

[0165] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program for mapping the electronic map can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only storage memory, or a random access memory, etc.

[0166] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.

Claims

1. A method for mapping an electronic map, characterized in that: The method comprises: Determine a map to be processed and a map to be mapped, and obtain nodes to be expanded in the map to be processed; wherein the road network detail of the map to be processed is less than the road network detail of the map to be mapped; Determine whether each of the nodes to be expanded is a target node to be expanded; When the node to be expanded meets a preset condition set, the node to be expanded is determined as a target node to be expanded, and a first envelope polygon of the target node to be expanded is constructed according to the target node to be expanded; wherein, When the node to be expanded meets a preset condition set, determining the node to be expanded as a target node to be expanded, and constructing a first envelope polygon of the target node to be expanded according to the target node to be expanded, comprises: Determine an incoming segment set and an outgoing segment set of the node to be expanded; For any one of the incident segment and the outgoing segment in the incident segment set and the outgoing segment set, calculating the incident angle of the incident segment and the outgoing angle of the outgoing segment; Calculating a section angle according to an incident angle of the incident section and an exit angle of the exit section; Calculate the deflection angle from the incident angle of the incident section to the exit angle of the exit section in a clockwise direction; When the incident road section and the outgoing road section do not belong to the preset first road section set, and the road section angle belongs to the preset interval, and the road section angle and the deflection angle are equal, it is determined that the node to be expanded meets the preset condition set, and the node to be expanded is determined as the target node to be expanded; Constructing a first envelope polygon of the target node to be expanded according to the target node to be expanded; Constructing a second envelope polygon of the map to be mapped according to the first envelope polygon; wherein, The step of constructing a second envelope polygon of the map to be mapped according to the first envelope polygon comprises: Extracting the inner point sequence of all road sections of the first envelope polygonal contour; Executing a map matching algorithm in the map to be mapped based on the interior point sequence to generate a second envelope polygon; Find the incident path segment or the outgoing path segment directly connected to the first envelope polygon and the second envelope polygon respectively, and generate the first path segment set and the second path segment set based on the incident path segment or the outgoing path segment directly connected to the first envelope polygon and the second envelope polygon; wherein, The generating the first segment set and the second segment set based on the incident segment or the outgoing segment directly connected thereto comprises: When the incident section or the exit section directly connected thereto satisfies a preset second condition set, the incident section or the exit section directly connected thereto is determined as a starting section of the first envelope polygon or a starting section of the second envelope polygon; According to the exit road segments existing in the starting road segments of the first envelope polygon, performing a forward breadth-first traversal on the map to be processed and outputting a first traversal result; According to the incident road segment existing in the starting road segment of the first envelope polygon, performing a reverse breadth-first traversal on the map to be processed and outputting a second traversal result; Merging the first traversal result and the second traversal result into a first road segment set; According to the exit road segments existing in the starting road segments of the second envelope polygon, performing a forward breadth-first traversal on the map to be mapped and outputting a third traversal result; According to the incident road segment existing in the starting road segment of the second envelope polygon, performing a reverse breadth-first traversal on the map to be mapped and outputting a fourth traversal result; Merging the third traversal result and the fourth traversal result into a second road segment set; The road segments included in the first envelope polygon are mapped with the road segments included in the second envelope polygon, and the first road segment set is mapped with the second road segment set, and the mapped results are serialized and saved.

2. The method according to claim 1, characterized in that The determining of the map to be processed and the map to be mapped includes: Acquire a first electronic map and a second electronic map; Calculating a first road network length of the first electronic map; Calculating a second road network length of the second electronic map; When the first road network length is less than the second road network length, the first electronic map is determined as a map to be processed, and the second electronic map is determined as a map to be mapped.

3. The method according to claim 1, characterized in that The method further comprises: When the node to be expanded does not satisfy the preset condition set, the step of determining whether each node to be expanded is a target node to be expanded is continued to be traversed until all nodes to be expanded in the map to be processed are traversed.

4. The method according to claim 1, characterized in that: The step of constructing a first envelope polygon of the target node to be expanded according to the marked node to be expanded includes: Performing a bidirectional breadth-first traversal on the target node to be expanded to find an expansion node that meets the expansion condition; When the forward traversal reaches a node that has been visited by the reverse traversal process, the traversal terminates and the node is recorded as the first node; Extracting a first path from the target node to be expanded to the first node during a forward traversal process, and extracting a second path from the first node to the target node to be expanded during a reverse traversal process; After the first path and the second path are spliced ​​together, a first envelope polygon is generated.

5. The method according to claim 1, characterized in that The method further comprises: Saving the road segments included in the first envelope polygon and the first road segment set into a preset first road segment set; The road segments included in the second envelope polygon and the second road segment set are saved into a preset second road segment set.

6. An electronic map mapping device, characterized in that: The device comprises: A target node to be expanded determination module is used to determine a map to be processed and a map to be mapped, and obtain nodes to be expanded in the map to be processed, and determine whether each node to be expanded is a target node to be expanded, wherein the road network detail of the map to be processed is less than the road network detail of the map to be mapped; The first envelope polygon construction module is used to determine the node to be expanded as a target node to be expanded when the node to be expanded meets a preset condition set, and to construct a first envelope polygon of the target node to be expanded according to the target node to be expanded; wherein, The first envelope polygon construction module is specifically used for: Determine an incoming segment set and an outgoing segment set of the node to be expanded; For any one of the incident segment and the outgoing segment in the incident segment set and the outgoing segment set, calculating the incident angle of the incident segment and the outgoing angle of the outgoing segment; Calculating a section angle according to an incident angle of the incident section and an exit angle of the exit section; Calculate the deflection angle from the incident angle of the incident section to the exit angle of the exit section in a clockwise direction; When the incident road section and the outgoing road section do not belong to the preset first road section set, and the road section angle belongs to the preset interval, and the road section angle and the deflection angle are equal, it is determined that the node to be expanded meets the preset condition set, and the node to be expanded is determined as the target node to be expanded; Constructing a first envelope polygon of the target node to be expanded according to the target node to be expanded; A second envelope polygon construction module is used to construct a second envelope polygon of the map to be mapped according to the first envelope polygon; wherein, The second envelope polygon construction module is specifically used for: Extracting the inner point sequence of all road sections of the first envelope polygonal contour; Executing a map matching algorithm in the map to be mapped based on the interior point sequence to generate a second envelope polygon; A segment result set generation module is used to find the incident segment or the exit segment directly connected to the first envelope polygon and the second envelope polygon, and generate the first segment set and the second segment set based on the incident segment or the exit segment directly connected to the first envelope polygon and the second envelope polygon; wherein, The road section result set generation module is specifically used for: When the incident section or the exit section directly connected thereto satisfies a preset second condition set, the incident section or the exit section directly connected thereto is determined as a starting section of the first envelope polygon or a starting section of the second envelope polygon; According to the exit road segments existing in the starting road segments of the first envelope polygon, performing a forward breadth-first traversal on the map to be processed and outputting a first traversal result; According to the incident road segment existing in the starting road segment of the first envelope polygon, performing a reverse breadth-first traversal on the map to be processed and outputting a second traversal result; Merging the first traversal result and the second traversal result into a first road segment set; According to the exit road segments existing in the starting road segments of the second envelope polygon, performing a forward breadth-first traversal on the map to be mapped and outputting a third traversal result; According to the incident road segment existing in the starting road segment of the second envelope polygon, performing a reverse breadth-first traversal on the map to be mapped and outputting a fourth traversal result; Merging the third traversal result and the fourth traversal result into a second road segment set; The road segment mapping module is used to map the road segments included in the first envelope polygon with the road segments included in the second envelope polygon, and to map the first road segment set with the second road segment set, and to serialize and save the mapped results.

7. A computer storage medium, characterized in that: The computer storage medium stores a plurality of instructions, which are suitable for being loaded by a processor and executing the method steps according to any one of claims 1 to 5.

8. A terminal, characterized in that: include: A processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the method steps as claimed in any one of claims 1 to 5.