CN101620803A - Method and device for recording traffic restricted information on electronic map - Google Patents

Method and device for recording traffic restricted information on electronic map Download PDF

Info

Publication number
CN101620803A
CN101620803A CN200910090869A CN200910090869A CN101620803A CN 101620803 A CN101620803 A CN 101620803A CN 200910090869 A CN200910090869 A CN 200910090869A CN 200910090869 A CN200910090869 A CN 200910090869A CN 101620803 A CN101620803 A CN 101620803A
Authority
CN
China
Prior art keywords
sequence
limit
tabulation
limit sequence
intersection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN200910090869A
Other languages
Chinese (zh)
Other versions
CN101620803B (en
Inventor
周猛
陈丹
颜凯
徐晋晖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Navinfo Co Ltd
Original Assignee
Navinfo Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Navinfo Co Ltd filed Critical Navinfo Co Ltd
Priority to CN2009100908699A priority Critical patent/CN101620803B/en
Publication of CN101620803A publication Critical patent/CN101620803A/en
Application granted granted Critical
Publication of CN101620803B publication Critical patent/CN101620803B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Traffic Control Systems (AREA)

Abstract

本发明提供一种在电子地图中记录交通限制信息的方法和装置,方法包括:获取一路口的有向网络图;获取有向网络图的可通行序列集,可通行序列集中的每一个可通行序列是由有向网络图中的边序号组成的有序组合,表示从前一边到后一边可通行;获取有向网络图的交限序列集,交限序列集中的每一个交限序列是由有向网络图中的边序号组成的有序组合,表示从前一边到后一边限制通行;如果判定一交限序列包含在一个可通行序列中,从交限序列集中剔除该交限序列。本发明实施例,对于有大量冗余数据的交限序列,采用了可通行序列对其进行筛选,去掉了交限序列中多余的边序号,简化了交通限制信息的表示方式,减少了冗余数据。

Figure 200910090869

The present invention provides a method and device for recording traffic restriction information in an electronic map. The method includes: obtaining a directed network diagram of an intersection; obtaining a passable sequence set of the directed network graph, and each passable sequence set in the passable sequence set A sequence is an ordered combination of edge numbers in a directed network graph, indicating that it is passable from the front side to the back side; to obtain the intersection sequence set of the directed network graph, each intersection sequence in the intersection sequence set is composed of The orderly combination of edge numbers in the network graph indicates that traffic is restricted from the front side to the back side; if it is determined that a traffic restriction sequence is included in a passable sequence, the traffic restriction sequence is removed from the traffic restriction sequence set. In the embodiment of the present invention, for the traffic restriction sequence with a large amount of redundant data, the passable sequence is used to screen it, the redundant edge sequence number in the traffic restriction sequence is removed, the representation of the traffic restriction information is simplified, and the redundancy is reduced data.

Figure 200910090869

Description

一种在电子地图中记录交通限制信息的方法和装置 A method and device for recording traffic restriction information in an electronic map

技术领域 technical field

本发明涉及电子地图技术,特别是指一种在电子地图中记录交通限制信息的方法和装置。The invention relates to electronic map technology, in particular to a method and device for recording traffic restriction information in an electronic map.

背景技术 Background technique

电子地图是对现实世界的描述,但又不同于现实世界,例如,现实世界中的一条道路,在导航电子地图中使用两条边表示,一个十字路口,在导航电子地图中可以由一个多条边和点组成的有向图表示。The electronic map is a description of the real world, but it is different from the real world. For example, a road in the real world is represented by two edges in the electronic navigation map, and a crossroad can be represented by multiple lines in the electronic navigation map. A directed graph representation of edges and vertices.

在计算导航路径的过程中,交通限制信息有着重要的作用。现实道路数字化后采用矢量地图表示导航信息,其中对交通限制信息,例如在导航电子地图中的路口有向子图中,通常是采用边的序列记录交通限制信息,包括永久禁止通行和时间段禁止通行。In the process of calculating the navigation route, traffic restriction information plays an important role. After the digitization of real roads, vector maps are used to represent navigation information. For traffic restriction information, for example, in the directed subgraph of intersections in navigation electronic maps, the sequence of edges is usually used to record traffic restriction information, including permanent prohibition and time period prohibition. pass.

发明人在实现本发明的过程中,发现现有技术中至少存在如下问题:在采用边的序列记录交通限制信息时,需要记录涉及到的较多边甚至每一个边序号,产生了大量的冗余数据,造成电子地图存储介质的空间浪费,尤其对于手机用户更为明显;冗余数据使得导航仪厂商只能采用高配置硬件,否则极易产生内存溢出等事故;由于交通限制信息是导航设备计算可行路径时的必要依据,上述冗余影响到设备的计算速度,使得导航设备响应迟钝,造成了计算资源的浪费。In the process of implementing the present invention, the inventor found at least the following problems in the prior art: when using the sequence of edges to record traffic restriction information, it is necessary to record many edges involved or even the sequence number of each edge, resulting in a large amount of redundancy data, resulting in a waste of space in the electronic map storage medium, especially for mobile phone users; redundant data makes navigator manufacturers only use high-configuration hardware, otherwise accidents such as memory overflow will easily occur; due to traffic restrictions, information is calculated by navigation equipment The necessary basis for a feasible path, the above-mentioned redundancy affects the calculation speed of the device, makes the response of the navigation device slow, and causes a waste of computing resources.

发明内容 Contents of the invention

本发明的目的是提供一种在电子地图中记录交通限制信息的方法和装置,用于消除电子地图中所存放的交通限制信息的冗余数据。The object of the present invention is to provide a method and device for recording traffic restriction information in an electronic map, which is used to eliminate redundant data of the traffic restriction information stored in the electronic map.

一种在电子地图中记录交通限制信息的方法,包括:步骤一,获取一路口的有向网络图;步骤二,获取所述有向网络图的可通行序列集,所述可通行序列集中的每一个可通行序列是由有向网络图中的边序号组成的有序组合,表示从前一边到后一边可通行;获取所述有向网络图的交限序列集,所述交限序列集中的每一个交限序列是由有向网络图中的边序号组成的有序组合,表示从前一边到后一边限制通行;其中,前一边是指所述有序组合中的第一个边序号所对应的边,后一边是指所述有序组合中的最后一个边序号所对应的边,且均是所述有向网络图中的任意边;步骤三,对于一个交限序列,如果判定该交限序列包含在一个可通行序列中,则从所述交限序列集中剔除该交限序列;交限序列集中剩余的所有交限序列形成一交限序列中间集。A method for recording traffic restriction information in an electronic map, comprising: Step 1, obtaining a directed network diagram of an intersection; Step 2, obtaining a passable sequence set of the directed network diagram, and the passable sequence set Each passable sequence is an ordered combination of edge sequence numbers in a directed network graph, indicating that it is passable from the front side to the back; obtain the intersection sequence set of the directed network graph, and the intersection sequence set in the directed network graph Each intersection sequence is an ordered combination composed of edge numbers in a directed network graph, which means that traffic is restricted from the front side to the back side; where the front side refers to the first side number in the ordered combination. The latter side refers to the side corresponding to the last side number in the ordered combination, and is any side in the directed network graph; step 3, for a sequence of intersections, if it is determined that the intersection If the restricted sequence is included in a traversable sequence, the crossed sequence is removed from the crossed sequence set; all remaining crossed sequences in the crossed sequence set form an intermediate set of crossed sequences.

其中,所述步骤二之后,还包括:计算出各个所述交限序列的全部子序列,放入一交限子序列集合;则在步骤三中,所述一个交限序列是在所述交限子序列集合中。Wherein, after the step 2, it also includes: calculating all subsequences of each of the intersection sequences, and putting them into a set of intersection subsequences; then in step 3, the intersection sequence is in the intersection sequence In the set of restricted subsequences.

一种在电子地图中记录交通限制信息的装置,包括:网络图管理单元,用于获取或构建一路口的有向网络图;序列集构建单元,用于获取所述有向网络图的交限序列集,所述交限序列集中的每一个交限序列是由有向网络图中的边序号组成的有序组合,表示从前一边到后一边限制通行;其中,前一边是指所述有序组合中的第一个边序号所对应的边,后一边是指所述有序组合中的最后一个边序号所对应的边,且均是所述有向网络图中的任意边;交通限制信息获取单元,用于对于一个交限序列,如果判定该交限序列包含在一个可通行序列中,则从所述交限序列集中剔除该交限序列;交限序列集中剩余的所有交限序列形成一交限序列中间集。A device for recording traffic restriction information in an electronic map, comprising: a network graph management unit, configured to obtain or construct a directed network graph of an intersection; a sequence set construction unit, configured to obtain the intersection limit of the directed network graph A sequence set, each intersection sequence in the intersection sequence set is an ordered combination of edge serial numbers in a directed network graph, indicating that traffic is restricted from the front side to the back side; wherein, the front side refers to the ordered The edge corresponding to the first edge sequence number in the combination, and the latter edge refers to the edge corresponding to the last edge sequence number in the ordered combination, and is any edge in the directed network graph; traffic restriction information The acquisition unit is configured to, for an intersection sequence, if it is determined that the intersection sequence is included in a passable sequence, then remove the intersection sequence from the intersection sequence set; all remaining intersection sequences in the intersection sequence set form An intermediate set of intersecting sequences.

本发明的实施例具有以下有益效果,对于有大量冗余数据的交限序列,采用了可通行序列b对其进行筛选,去掉了交限序列a中多余的边序号,以及去掉了某些交限序列a;简化了交通限制信息的表示方式,减少了冗余数据。The embodiment of the present invention has the following beneficial effects. For the intersection sequence with a large amount of redundant data, the passable sequence b is used to screen it, the redundant edge sequence number in the intersection sequence a is removed, and some intersection sequences are removed. Restriction sequence a; simplifies the representation of traffic restriction information and reduces redundant data.

附图说明 Description of drawings

图1为本发明实施例一个路口的有向图;Fig. 1 is a directed graph of an intersection in the embodiment of the present invention;

图2为本发明实施例方法流程示意图一;Fig. 2 is a schematic flow diagram of the method of the embodiment of the present invention;

图3为本发明实施例方法流程示意图二;Fig. 3 is the second schematic flow diagram of the method of the embodiment of the present invention;

图4为本发明实施例将序列拆分为多个子序列示意图;FIG. 4 is a schematic diagram of splitting a sequence into multiple subsequences according to an embodiment of the present invention;

图5为本发明实施例有路况条件限制的方法流程示意图;Fig. 5 is a schematic flow chart of a method limited by road conditions according to an embodiment of the present invention;

图6为本发明实施例获取可通行序列集方法流程示意图;FIG. 6 is a schematic flowchart of a method for obtaining a passable sequence set according to an embodiment of the present invention;

图7为本发明实施例获取交限序列集方法流程示意图;FIG. 7 is a schematic flowchart of a method for obtaining a cross-limit sequence set according to an embodiment of the present invention;

图8为本发明实施例装置结构示意图。Fig. 8 is a schematic structural diagram of a device according to an embodiment of the present invention.

具体实施方式 Detailed ways

为使本发明的目的、技术特征和实施效果更加清楚,下面将结合附图及具体实施例对本发明的技术方案进行详细描述。本发明提供的实施例中,通过采用可通行信息对应的可通行序列对交限序列进行筛选,减少解决电子地图中的冗余数据。In order to make the purpose, technical features and implementation effects of the present invention clearer, the technical solution of the present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments. In the embodiment provided by the present invention, by using the passable sequence corresponding to the passable information to screen the intersection sequence, the redundant data in the electronic map is reduced and resolved.

如图1所示,边有对应的序号,该序号称为该边的边序号,每一个边是指在两个交叉点之间所确定的线段。在边①对应的道路上看到“禁止向左转弯”标志和“直行”标志,表示存在交通限制信息:从边①到边⑧不可通行,在电子地图中表示为如下形式的若干个序列:As shown in FIG. 1 , a side has a corresponding serial number, which is called the side serial number of the side, and each side refers to a line segment determined between two intersection points. On the road corresponding to side ①, if you see the "No left turn" sign and the "go straight" sign, it means that there is traffic restriction information: from side ① to side ⑧ is impassable, and it is expressed as several sequences in the following form in the electronic map:

(1)①--②--③--④--⑤--⑥--⑦--⑧(1)①--②--③--④--⑤--⑥--⑦--⑧

(2)①--②--③--⑨--⑩--⑥--⑦--⑧(2)①--②--③--⑨--⑩--⑥--⑦--⑧

...... …

从边①到边④是指定可通行的,则表示为如下形式的若干个序列,称为可通行信息:From side ① to side ④ is designated passable, it is expressed as several sequences in the following form, called passable information:

I   ①--②--③--④I ①--②--③--④

II  ⑤--⑥--⑦--⑧II ⑤--⑥--⑦--⑧

交通限制信息不应当是某个可通行信息的子序列,否则称为信息冲突。Traffic restriction information should not be a subsequence of certain passable information, otherwise it is called information conflict.

上述表示方式中,在采用序列(1)、(2)记录交通限制信息时发现,采用某一序列的一个子序列即可表达交通限制信息,如从①到⑧的交通限制信息有可能采用序列④--⑤和序列⑨--⑩来表示即可;通过对比可以知道,如果采用序列(1)和(2),则会使得电子地图存在冗余数据。In the above representation, when using sequence (1) and (2) to record the traffic restriction information, it is found that the traffic restriction information can be expressed by using a subsequence of a certain sequence. For example, the traffic restriction information from ① to ⑧ may use the sequence ④--⑤ and sequence ⑨--⑩ can be used to express; through comparison, we can know that if the sequence (1) and (2) are used, there will be redundant data in the electronic map.

本发明实施例提供一种在电子地图中记录交通限制信息的方法,如图2所示,包括:An embodiment of the present invention provides a method for recording traffic restriction information in an electronic map, as shown in FIG. 2 , including:

步骤101,获取一路口的有向网络图;Step 101, obtaining a directed network graph of an intersection;

步骤102,获取所述有向网络图的可通行序列集B,所述可通行序列集中的每一个可通行序列是由有向网络图中的边序号组成的有序组合,表示从前一边到后一边可通行;Step 102, obtain the passable sequence set B of the directed network graph, each passable sequence in the passable sequence set is an ordered combination of edge numbers in the directed network graph, representing the sequence from the front side to the back passable on one side;

获取所述有向网络图的交通限制信息序列集A(以下简称:交限序列集),所述交限序列集中的每一个交通限制信息序列(以下简称:交限序列)是由有向网络图中的边序号组成的有序组合,表示从前一边到后一边限制通行;Obtain the traffic restriction information sequence set A (hereinafter referred to as: the traffic restriction sequence set) of the directed network graph, and each traffic restriction information sequence (hereinafter referred to as: the traffic restriction sequence) in the described traffic restriction sequence set is generated by the directed network The orderly combination of edge numbers in the figure indicates that traffic is restricted from the front side to the back side;

其中,前一边是指所述有序组合中的第一个边序号所对应的边,后一边是指所述有序组合中的最后一个边序号所对应的边,且均是所述有向网络图中的任意边;Wherein, the former side refers to the side corresponding to the first side serial number in the ordered combination, and the latter side refers to the side corresponding to the last side serial number in the ordered combination, and both are the directed Any edge in the network graph;

步骤103,对于一个交限序列,如果判定该交限序列包含在一个可通行序列中,则从所述交限序列集中剔除该交限序列;交限序列集中剩余的所有交限序列形成一交通限制信息序列中间集M(以下简称:交限序列中间集)。Step 103, for a traffic sequence, if it is determined that the traffic sequence is included in a passable sequence, then remove the traffic sequence from the traffic sequence set; all remaining traffic sequences in the traffic sequence set form a traffic sequence. Restricted information sequence intermediate set M (hereinafter referred to as: cross-restricted sequence intermediate set).

应用本实施例提供的技术,对于有大量冗余数据的交限序列集A中所记录的每一个交限序列a,均采用了可通行序列集B中的可通行序列b对其进行筛选,去掉了交限序列a中多余的边序号,以及去掉了某些交限序列a;简化了交通限制信息的表示方式,减少了冗余数据。Applying the technology provided in this embodiment, for each intersection sequence a recorded in the intersection sequence set A with a large amount of redundant data, the passable sequence b in the passable sequence set B is used to screen it, The redundant edge sequence numbers in the intersection sequence a and some intersection sequences a are removed; the representation of traffic restriction information is simplified, and redundant data is reduced.

所述步骤102之后,还可以包括:计算出各个所述交限序列的全部子序列,放入一交通限制信息子序列集合A1(以下简称:交限子序列集合A1);After the step 102, it may also include: calculating all subsequences of each of the traffic restriction sequences, and putting them into a traffic restriction information subsequence set A1 (hereinafter referred to as: traffic restriction subsequence set A1);

则在步骤103中,所述一个交限序列是在所述交限子序列集合A1中。Then in step 103, the one intersection sequence is in the intersection subsequence set A1.

上述技术方案中,形成一交限序列中间集M之后还包括:In the above technical solution, after forming an intermediate set M of intersecting sequence, it also includes:

步骤104,根据预定的优先级标准对交限序列中间集M中的各个交限序列进行排序;Step 104, sorting the crossing sequences in the intermediate set M of crossing sequences according to a predetermined priority standard;

预优先级标准包括:序列长度u或者等价序列个数v;其中,序列长度u,是指该序列所包含的边序号的个数;等价序列个数v,是指交限序列中间集M中的一个序列与交限序列集中的至少一个序列等价时,所述至少一个序列的个数;每一个所述交限序列均应至少对应一序列长度u和一等价序列个数v;The pre-priority criteria include: sequence length u or the number of equivalent sequences v; among them, the sequence length u refers to the number of edge sequence numbers contained in the sequence; the number of equivalent sequences v refers to the intermediate set of intersection sequences When a sequence in M is equivalent to at least one sequence in the intersection sequence set, the number of the at least one sequence; each of the intersection sequences should at least correspond to a sequence length u and a number of equivalent sequences v ;

步骤105,当根据所述等价序列个数v对各个所述交限序列进行排序时,v1+v2+......vi=C,其中C是一个定值,i是交限序列的序号,同时在公式中,i也表示了满足条件时该公式中所有交限序列的数目,vi表示该交限序列的等价序列个数;Step 105, when sorting each of the intersection sequences according to the number v of the equivalent sequences, v1+v2+...vi=C, where C is a fixed value, and i is the value of the intersection sequence serial number, and in the formula, i also represents the number of all intersection sequences in the formula when the conditions are met, and vi represents the number of equivalent sequences of the intersection sequence;

在交限序列中间集M中,选取i个交限序列作为结果输出,所述i个交限序列满足:使得i的取值最小,且使得i个所述交限序列的序列长度u的和值最小。In the intermediary set M of intersecting sequences, select i intersecting sequences as the result output, and the i intersecting sequences satisfy: make the value of i the smallest, and make the sum of the sequence length u of the i intersecting sequences The value is the smallest.

由所提供的技术方案可以推导出,计算出导航电子地图中表达交通限制的全部边序列集合;求出这些序列的全部子序列;将子序列与可通行边序列集合的作包含关系计算,并对各子序列赋上不同的权重;依权重值选出子序列集合以替代原有表达交通限制的边序列集合;通过这一方式,可在确保数据正确性的同时,高度简化了交通限制信息的表达,减少了数据冗余。From the provided technical solution, it can be deduced that all the edge sequence sets expressing traffic restrictions in the navigation electronic map are calculated; all subsequences of these sequences are calculated; Assign different weights to each subsequence; select the subsequence set according to the weight value to replace the original edge sequence set expressing traffic restrictions; in this way, the traffic restriction information can be highly simplified while ensuring the correctness of the data expression, reducing data redundancy.

所提供的实施例中,可通行序列集B以及交限序列集A均可以进行细分,如果考虑到某些道路(对应于边)是分时间段通行的,例如有些道路在晚上20点至早上8点之间可以双向行驶,而在早上8点至晚上20点则是单向行驶,那么,该道路是分时间段可通行,或者称为分时间段交通限制。由于一个道路如果是分时间段可通行的,那么也等价于是分时间段限制通行,因此该些道路对应的边的边序号可以表示在可通行序列集B的序列中,也可以表示在交限序列集A的序列中。In the provided embodiment, both the passable sequence set B and the intersection sequence set A can be subdivided. If it is considered that some roads (corresponding to sides) are passed in different time periods, for example, some roads are between 20 o'clock in the evening and Two-way driving is possible between 8:00 am, and one-way driving is possible between 8:00 am and 20:00 pm. Then, the road is trafficable in different time periods, or called time-based traffic restrictions. Since a road is passable in different time periods, it is equivalent to restricting traffic in different time periods. Therefore, the edge numbers of the edges corresponding to these roads can be expressed in the sequence of the passable sequence set B, or in the traffic In the sequence of the restricted sequence set A.

可通行序列集B包括:第一列表,即PassRoads列表,第二列表,即TimePassRoads列表;所述第一列表存放所述永久可通行序列,所述第二列表存放所述分时间段可通行序列。The passable sequence set B includes: a first list, which is the PassRoads list, and a second list, which is the TimePassRoads list; the first list stores the permanent passable sequences, and the second list stores the time-period passable sequences .

交限序列集A包括:第三列表,即alwaysforbidRoads列表,第四列表,即timelimitRoads列表;所述第三列表存放所述永久限制通行序列,所述第四列表存放所述分时间段限制通行序列。The traffic limit sequence set A includes: a third list, namely the alwaysforbidRoads list, and a fourth list, namely the timelimitRoads list; the third list stores the permanent restricted traffic sequence, and the fourth list stores the time-segment restricted traffic sequence .

在形成一交限序列中间集M之后,可以对交限序列中间集M中的交限序列a进一步筛选以去除更多的冗余数据,包括:After forming an intersecting sequence intermediate set M, the intersecting sequence a in the intersecting sequence intermediate set M can be further screened to remove more redundant data, including:

步骤1031,根据预定的优先级标准对所述交限序列中间集M中的各个交限序列进行排序。Step 1031 , sort each crossing sequence in the intermediate set M of crossing sequences according to a predetermined priority standard.

所选定的优先级标准可以是:序列长度u,以及等价序列个数v。The selected priority criteria may be: sequence length u, and number of equivalent sequences v.

序列长度u是指,该序列所包含的边序号的个数;等价序列个数v,是指交限序列中间集M中现有序列可以替代A中旧有序列的个数。The sequence length u refers to the number of edge numbers contained in the sequence; the number of equivalent sequences v refers to the number of existing sequences in the intermediate set M of intersecting sequences that can replace the old sequences in A.

首先根据等价序列个数v对各个所述交限序列进行排序,例如从大到小进行排序。First, sort the intersecting sequences according to the number v of equivalent sequences, such as sorting from large to small.

步骤1032,如果A、B均根据时间段进行了划分,则交限序列中间集M中也应当存在两个列表,与A对应的,C中与alwaysforbidRoads列表对应的是vPartRoad表,C中与timelimitRoads列表对应的是vTimePartRoad表。Step 1032, if both A and B are divided according to the time period, there should also be two lists in the intermediate set M of the cross-limit sequence, the one corresponding to A, the vPartRoad table corresponding to the alwaysforbidRoads list in C, and the timelimitRoads table in C The list corresponds to the vTimePartRoad table.

所选定的优先级标准仍然是:序列长度u,以及等价序列个数v。此时,The selected priority criteria are still: the sequence length u, and the number v of equivalent sequences. at this time,

序列长度u,是指属于vPartRoad表、vTimePartRoad表中的序列,该序列所包含的边序号的个数。The sequence length u refers to the sequence belonging to the vPartRoad table and the vTimePartRoad table, and the number of edge sequence numbers contained in the sequence.

等价序列个数v,指属于vPartRoad表中且等价于(替代)alwaysforbidRoads列表中的序列的个数;属于vTimePartRoad表中且等价于(替代)timelimitRoads列表中的序列的个数。The number of equivalent sequences v refers to the number of sequences that belong to the vPartRoad table and are equivalent to (substitute) the sequences in the alwaysforbidRoads list; the number of sequences that belong to the vTimePartRoad table and are equivalent to (substitute) the timelimitRoads list.

步骤1033,对交限序列中间集M进行检验,包括:Step 1033, check the intermediate set M of the intersecting limit sequence, including:

如果没有考虑分时间段通行的情形,则将交限序列中间集M和交限序列集A结合,从C中选取出最少并且最短的多个序列做为简化结果输出。If the situation of traffic in different time periods is not considered, the intermediate set M of the intersection sequence and the set A of the intersection sequence are combined, and the least and shortest multiple sequences are selected from C as the simplified result output.

如果考虑分时间段通行的情形,则将vCPartRoad表和vCTimePartRoad表分别各自与alwaysforbidRoads和timelimitRoads结合,从vCPartRoad表、vCTimePartRoad表中选取出最少并且最短的多个序列做为简化结果输出。If the situation of traffic in different time periods is considered, the vCPartRoad table and vCTimePartRoad table are combined with alwaysforbidRoads and timelimitRoads respectively, and the least and shortest multiple sequences are selected from the vCPartRoad table and vCTimePartRoad table as the simplified result output.

由于v1+v2+......vi=C,其中C是一个定值,可事先指定;v1>v2>......>vi是自然数,所以v1,v2,......vi等的取值越大,则i越小,也即“最少”,极端的情况是当v1=C,则i=1;在v相同时再依序列长度u,选出最短的序列;Since v1+v2+...vi=C, where C is a fixed value, which can be specified in advance; v1>v2>...>vi is a natural number, so v1, v2,..... The larger the value of .vi, etc., the smaller i is, that is, "minimum". In an extreme case, when v1=C, then i=1; when v is the same, select the shortest sequence according to the sequence length u;

最少和最短是以前者优先的,但是通常u较小时,v也较大导致i较小,所以最少和最短两个目的能同时达到。The least and the shortest are given priority to the former, but usually when u is small, v is also large and i is small, so the two goals of the least and the shortest can be achieved at the same time.

本实施例提供的技术,以序列长度u,以及等价序列个数v,对交限序列中间集M进行检验,不仅消除了电子地图中所存放的交通限制信息的冗余数据,而且保证了消除冗余数据后的结果集合可以信赖不会出现错误不可用数据。The technology provided by this embodiment uses the sequence length u and the number of equivalent sequences v to check the intermediate set M of the intersection sequence, which not only eliminates the redundant data of the traffic restriction information stored in the electronic map, but also ensures that The result set after eliminating redundant data can be relied upon to be free from errors and unusable data.

结合上述提供的技术,本实施例提供一种优选的消除电子地图中所存放的交通限制信息的冗余数据的方法,如图3所示,包括:Combining the technologies provided above, this embodiment provides a preferred method for eliminating redundant data of traffic restriction information stored in an electronic map, as shown in FIG. 3 , including:

步骤201,获取或构建一个路口的有向网络图Map。Step 201, acquire or construct a directed network graph Map of an intersection.

一个有向网络图Map具体可以参考附图1,图中一条道路使用两条边表示,因此一个路口的有向网络图Map可能是由多条边和点来组成的网络拓扑图。For a directed network graph Map, please refer to attached figure 1. A road in the figure is represented by two edges, so a directed network graph Map at an intersection may be a network topology graph composed of multiple edges and points.

步骤202,获取有向网络图Map的可通行序列集B;获取有向网络图Map的交限序列集A。Step 202, obtaining the passable sequence set B of the directed network map Map; obtaining the intersection sequence set A of the directed network map Map.

可通行序列集B中的每一个可通行序列b表示,从前一边到后一边的边序号的有序组合,且前一边到后一边应当可通行。Each passable sequence b in the passable sequence set B represents an ordered combination of edge numbers from the front side to the back side, and the front side to the back side should be passable.

交限序列集A中的每一个交限序列a表示,从前一边到后一边的边序号的有序组合,且前一边到后一边限制通行;Each intersection sequence a in the intersection sequence set A represents an ordered combination of edge numbers from the front side to the back side, and the front side to the back side restricts passage;

所述前一边、后一边、前一边和后一边均指所述有向网络图中的任意边。The preceding side, the following side, the previous side and the following side all refer to any side in the directed network graph.

其中,由于无论一个交限序列a或者一个可通行序列b,均是边序号的有序组合。Among them, because no matter a crossing sequence a or a passable sequence b, they are all ordered combinations of edge sequence numbers.

步骤203,计算出交限序列集A中各个交限序列a的全部子序列作为新的交限序列a;为与交限序列集A进行区别,这些子序列组成的集合称为交限子序列集合A1。Step 203, calculate all the subsequences of each intersection sequence a in the intersection sequence set A as a new intersection sequence a; in order to distinguish it from the intersection sequence set A, the set of these subsequences is called an intersection subsequence Set A1.

如图4所示,具体提供了计算子序列的一个实施例。该实施例中,采用二叉树算法,按从长到短的方式求可通行序列b或者交限序列a的子序列;可以采用递归的方式对序列两端切分,得到树型结构,即对各序列节点去尾截头得到左右子节点,右子节点不再生成左子节点。As shown in FIG. 4 , an embodiment of calculating a subsequence is specifically provided. In this embodiment, the binary tree algorithm is used to find the subsequences of the passable sequence b or the intersection sequence a from long to short; the two ends of the sequence can be segmented in a recursive manner to obtain a tree structure, that is, for each The sequence node is truncated to obtain the left and right child nodes, and the right child node will no longer generate the left child node.

步骤204,从交限子序列集合A1中筛选出交限备用子序列。Step 204, screen out the cross-restricted spare subsequences from the cross-restricted subsequence set A1.

对于一个交限序列a,如果判定该交限序列a包含在一个可通行序列b中,则剔除该交限序列a;For an intersection sequence a, if it is determined that the intersection sequence a is included in a passable sequence b, then the intersection sequence a is eliminated;

判定该交限序列a被包含在一个可通行序列b中是指a中的所有的边序号均在b中,并且这些边序号的顺序与b中的一致且连续。例如,a是④--⑤,b是②--③--④--⑤,由于满足④--⑤均在b中,④--⑤顺序与b中一致,且④--⑤在序列中是连续的,因此判定a被包含在b中。Judging that the intersection sequence a is included in a passable sequence b means that all the edge numbers in a are in b, and the order of these edge numbers is consistent and continuous with that in b. For example, a is ④--⑤, b is ②--③-④--⑤, since ④--⑤ are all in b, the order of ④--⑤ is consistent with that in b, and ④--⑤ is in the sequence is continuous, so it is determined that a is contained in b.

如果交限子序列集合A1中的序列不被可通行序列集B包含,则视为交限备用子序列。交限子序列集合A1中剩余的所有交限备用子序列形成一交限序列中间集M。If the sequence in the cross-restricted subsequence set A1 is not included in the passable sequence set B, it is regarded as a cross-restricted standby subsequence. All remaining alternate subsequences in the cross-restricted subsequence set A1 form an intermediate set M of cross-restricted sequences.

步骤205,根据交限序列中间集M,生成备用子序列集A2。Step 205, according to the intermediate set M of the intersecting sequence, generate an alternate subsequence set A2.

交限序列中间集M与备用子序列集A2中的序列是一致的,但是在备用子序列集A2中,需在每一个交限备用子序列上面记下它能代替的所有交通限制信息。The intermediate set M of traffic restriction sequences is consistent with the sequences in the backup subsequence set A2, but in the backup subsequence set A2, all traffic restriction information that it can replace must be recorded on each traffic restriction backup subsequence.

所选定的优先级标准可以是:序列长度u,以及等价序列个数v。The selected priority criteria may be: sequence length u, and number of equivalent sequences v.

序列长度u是指,该序列所包含的边序号的个数;等价序列个数v,是指交限序列中间集M中现有序列可以替代A中旧有序列的个数。The sequence length u refers to the number of edge numbers contained in the sequence; the number of equivalent sequences v refers to the number of existing sequences in the intermediate set M of intersecting sequences that can replace the old sequences in A.

步骤206,将备用子序列集A2与和交限序列集A结合,取出最少并且最短的序列集做为简化结果。Step 206, combining the spare subsequence set A2 with the intersecting sequence set A, and taking the least and shortest sequence set as the simplified result.

步骤207,将简化结果转换为指定规格,即客户所认可的具体需要的格式。In step 207, the simplified result is converted into a specified specification, that is, a specific required format approved by the client.

输出简化后的边号序列集合,具体可以转换为gdf规格的“边号,点号,边号,边号......”格式,或者转换为其它格式。Output the simplified edge number sequence set, which can be converted to the gdf specification "edge number, dot number, edge number, edge number..." format, or converted to other formats.

上述实施例描述了获取去除了冗余数据的交通限制信息的方法。The above embodiments describe methods of acquiring traffic restriction information from which redundant data has been removed.

进一步地,导航电子地图是矢量地图,该矢量地图对应了一个有向网络图Map,从中可以得到多个路口有向子图,交通限制信息的简化主要针对的是以路口有向子图为基本单元提取通路子序列并代替交限序列的方法。实际中往往需要考虑一些路段是限时间通行的,因此,对于形成的交限序列集A以及可通行序列集B,进一步可以将其各自分为两个列表:Furthermore, the navigation electronic map is a vector map, which corresponds to a directed network graph Map, from which multiple directed subgraphs of intersections can be obtained, and the simplification of traffic restriction information is mainly aimed at The unit extracts the path subsequence and replaces the method of intersection sequence. In practice, it is often necessary to consider that some road sections are time-limited. Therefore, for the formed intersection sequence set A and passable sequence set B, they can be further divided into two lists:

交限序列集A可以分为:alwaysforbidRoads列表,timelimitRoads列表。The cross-limit sequence set A can be divided into: alwaysforbidRoads list and timelimitRoads list.

可通行序列集B可以分为:PassRoads列表,TimePassRoads列表。如图5所示,包括:Passable sequence set B can be divided into: PassRoads list and TimePassRoads list. As shown in Figure 5, including:

步骤301,获取或构建路口的有向网络图Map。Step 301, acquiring or constructing a directed network graph Map of an intersection.

具体可以参考附图1构建有向网络图Map。一个有向网络图Map中,一条道路使用两条边表示,因此一个路口的有向网络图Map是由多条边和点来组成的网络拓扑图。Specifically, you can refer to Figure 1 to construct a directed network graph Map. In a directed network map, a road is represented by two edges, so a directed network map of an intersection is a network topology map composed of multiple edges and points.

步骤302,获取有向网络图Map的可通行序列集B;获取有向网络图Map的交限序列集A。Step 302, obtaining the passable sequence set B of the directed network map Map; obtaining the intersection sequence set A of the directed network map Map.

可通行序列集B中的每一个可通行序列b的含义是,从前一边到后一边的边序号的有序组合,且前一边到后一边应当可通行;其中前一边、后一边并不特指某两个具体的边,而是为区分两个边所采用的称谓。前一边、后一边、前一边以及后一边有可能相同,例如前一边和前一边是指同一条边,但不是必然相同的边。The meaning of each passable sequence b in the passable sequence set B is an ordered combination of edge numbers from the front side to the back side, and the front side to the back side should be passable; the front side and the back side do not specifically refer to Two specific sides, but the title used to distinguish the two sides. The front side, the back side, the front side and the back side may be the same, for example, the front side and the front side refer to the same side, but not necessarily the same side.

由于无论一个交限序列a或者一个可通行序列b,均是边序号的有序组合;因此判定该交限序列a包含在一个可通行序列b中是指:Since no matter a intersection sequence a or a traversable sequence b, it is an ordered combination of edge sequence numbers; therefore, it is determined that the intersection sequence a is included in a traversable sequence b means:

(i)a中的所有的边序号均在b中;(i) All edge numbers in a are in b;

(ii)a中边序号的顺序与b中的一致且连续。例如,b是①--②--③--④--⑤,a是④--⑤,由于满足了a中的④--⑤在b中,④--⑤顺序与b中一致,且④--⑤是连续的,因此判定a在b中。(ii) The order of the edge numbers in a is consistent and continuous with that in b. For example, b is ①--②--③--④--⑤, a is ④--⑤, since ④--⑤ in a is satisfied in b, the order of ④--⑤ is consistent with that in b, and ④--⑤ are continuous, so it is determined that a is in b.

交限序列集A中的每一个交限序列a表示,从前一边到后一边的边序号的有序组合,且前一边到后一边应当禁止通行。Each intersection sequence a in the intersection sequence set A represents an ordered combination of edge numbers from the front side to the back side, and traffic should be prohibited from the front side to the back side.

需要说明的是,一个路段有可能仅仅是在某一个时间段内禁止行驶,例如有的路段在早上6:00至晚上22:00之间仅允许单向行驶,因此,根据以上描述将交限序列集A中的分为两类,分别记录在两个列表中,其中:It should be noted that a road section may only be prohibited for a certain period of time. For example, some road sections only allow one-way driving between 6:00 am and 22:00 pm. Therefore, according to the above description, the traffic limit The sequence set A is divided into two categories, which are recorded in two lists, among which:

永久交通限制信息记入alwaysforbidRoads列表,时间段交通限制信息通路记入timelimitRoads列表。The permanent traffic restriction information is recorded in the alwaysforbidRoads list, and the time-segment traffic restriction information route is recorded in the timelimitRoads list.

同理,可通行序列集B中的所有分为两类,分别记录在两个列表中:永久通行信息记入PassRoads列表,时间段通行信息记入TimePassRoads列表。Similarly, everything in the passable sequence set B is divided into two categories, which are recorded in two lists: permanent pass information is recorded in the PassRoads list, and time period pass information is recorded in the TimePassRoads list.

步骤303,计算出A的alwaysforbidRoads列表、timelimitRoads列表中各个序列的全部的子序列。Step 303, calculate all subsequences of each sequence in A's alwaysforbidRoads list and timelimitRoads list.

如图4所示,具体提供了计算子序列的一个实施例。按从长到短的方式求可通行序列b或者交限序列a的子序列;可以采用递归的方式对序列两端切分,得到树型结构,即对各序列节点去尾截头得到左右子节点,右子节点不再生成左子节点。As shown in FIG. 4 , an embodiment of calculating a subsequence is specifically provided. Find the subsequences of the passable sequence b or the intersection sequence a from long to short; you can recursively split the two ends of the sequence to obtain a tree structure, that is, truncate each sequence node to obtain the left and right subsequences node, the right child node no longer generates a left child node.

可以按照上述递归方法,分别计算alwaysforbidRoads列表、timelimitRoads列表中各个的全部子序列。All subsequences in the alwaysforbidRoads list and the timelimitRoads list can be calculated respectively according to the above recursive method.

步骤304,对alwaysforbidRoads列表和timelimitRoads列表中的进行筛选。在筛选过程中:Step 304, filter the alwaysforbidRoads list and the timelimitRoads list. During the screening process:

对于alwaysforbidRoads列表中的一个a1,具体判定规则包括:For a1 in the alwaysforbidRoads list, the specific determination rules include:

a1包含在PassRoads列表中,剔除该a1;a1 is included in the PassRoads list, remove this a1;

a1包含在TimePassRoads列表中,剔除该a1。a1 is included in the TimePassRoads list, remove this a1.

对于timelimitRoads列表中的一个a2,具体判定规则包括:For a2 in the timelimitRoads list, the specific judgment rules include:

a2包含在PassRoads列表中,剔除该a2;a2 is included in the PassRoads list, remove this a2;

a2包含在TimePassRoads列表中,且两者的时间段相同,则不再剔除该a2;如果时间段不同,也删除该a2。a2 is included in the TimePassRoads list, and the time period of the two is the same, then this a2 will not be removed; if the time period is different, this a2 will also be deleted.

通过上述方法,得到alwaysforbidRoads列表筛选之后所对应的vPartRoad表,以及timelimitRoads列表筛选之后所对应的vTimePartRoad表。Through the above method, the corresponding vPartRoad table after filtering the alwaysforbidRoads list and the corresponding vTimePartRoad table after filtering the timelimitRoads list are obtained.

步骤305,在vPartRoad表中的上面记下该能代替的所有交通限制信息通路;Step 305, write down all traffic restriction information pathways that can be replaced above in the vPartRoad table;

在vTimePartRoad表中的上面记下它能代替的所有通路。Write down all the paths it can replace above in the vTimePartRoad table.

步骤306,依优先级标准,对vPartRoad表和vTimePartRoad表做排序。Step 306, sort the vPartRoad table and the vTimePartRoad table according to the priority standard.

所选定的优先级标准可以是:的长度u,以及可替代个数v。The selected priority criteria can be: the length u, and the number v of alternatives.

其中,序列长度u是指,该所包含的边序号的个数;可替代原个数v是指vPartRoad表中的可以替代的alwaysforbidRoads列表中的的个数,以及vTimePartRoad表中的可以替代的timelimitRoads列表中的的个数。Among them, the sequence length u refers to the number of the included edge sequence numbers; the original number of replaceable v refers to the number of replaceable alwaysforbidRoads in the vPartRoad table, and the replaceable timelimitRoads in the vTimePartRoad table the number of in the list.

步骤307,vPartRoad表与alwaysforbidRoads结合,vTimePartRoad表与timelimitRoads结合,分别选取出最少并且最短的片段集做为简化结果。In step 307, the vPartRoad table is combined with alwaysforbidRoads, and the vTimePartRoad table is combined with timelimitRoads to select the least and shortest fragment set as the simplified result.

对简化结果进行检查,包括:路径通行检查,简化结果包含检查。Check the simplification result, including: path passing check, simplification result inclusion check.

路径通行检查,根据道路数据路口的交限、指定通行信息,再结合简化结果文件,检查是否可通行的路径被禁止或者交限仍可通行。Path traffic inspection, according to the traffic limit at the intersection of road data, the specified traffic information, and combined with the simplified result file, check whether the passable path is prohibited or the traffic limit is still passable.

简化结果包含检查,只对简化结果文本进行内部包含关系的检查。The simplification result contains check, and only checks the internal containment relationship for the simplification result text.

步骤308,将所述简化结果转换为指定规格,即客户的具体需要的格式。Step 308, converting the simplified result into a specified specification, that is, a format specifically required by the customer.

输出简化后的边号序列集合,具体可以转换为gdf规格的“边号,点号,边号,边号......”格式,或者转换为其它格式。Output the simplified edge number sequence set, which can be converted to the gdf specification "edge number, dot number, edge number, edge number..." format, or converted to other formats.

应用所提供的技术,采用尽量短的边号序列简化表达交通限制信息,包括永久禁止通行、时间段禁止通行交通限制信息,不会将可以通行的边之间的关系变成为不可通行或者绕远通行,不影响其他边之间的交通限制情形。Apply the technology provided, use the shortest edge number sequence to simplify the expression of traffic restriction information, including permanent prohibition of passage, traffic restriction information of time period prohibition of passage, and will not change the relationship between passable edges into impassable or detour traffic without affecting traffic restrictions between other sides.

其中,步骤302中,在获取可通行序列集B的过程中,如图6所示,具体包括:Wherein, in step 302, in the process of obtaining the passable sequence set B, as shown in FIG. 6 , it specifically includes:

步骤3021,开始对一个路口的子图进行处理。其中,子图是相对于整幅有向网络图而言的,因此在对每一个子图进行处理时,应当把该子图理解为一有向网络图Map。Step 3021, start to process a subgraph of an intersection. Wherein, the sub-graph is relative to the entire directed network graph, so when processing each sub-graph, the sub-graph should be understood as a directed network graph Map.

步骤3022,遍历子图的各个顶点,得到一进入路口点和一退出路口点。Step 3022, traverse each vertex of the subgraph to obtain an entry intersection point and an exit intersection point.

步骤3023,判断进入路口点和退出路口点之间是否可以通行,如果是,转步骤3024,否则转步骤3022。Step 3023, judge whether it is possible to pass between the entry intersection point and the exit intersection point, if yes, go to step 3024, otherwise go to step 3022.

步骤3024,判断进入路口点和退出路口点之间是否已经存在有明确的指定通路,如果是,转步骤3026,否则转步骤3025。Step 3024, judge whether there is a clear designated path between the entry intersection point and the exit intersection point, if yes, go to step 3026, otherwise go to step 3025.

步骤3025,从路口的子图中得到两点间的最短通路。Step 3025, get the shortest path between two points from the intersection subgraph.

步骤3026,将得到的通路作为限制项记入可通行序列集B,并将集合作为简化的限制集,简化的结果不能阻断任何一条限制项。限制是指,不允许“限制集”中的可通行序列成为不可通行的序列。Step 3026, record the obtained path as a restriction item into the passable sequence set B, and use the set as a simplified restriction set, and the result of the simplification cannot block any restriction item. Restriction means that the passable sequences in the "restriction set" are not allowed to become impassable sequences.

根据通路是永久通行或时间段通行,分别将它们记入永久限制集PassRoads和时间段限制集TimePassRoads。According to whether the paths are permanent passage or time-segment passage, they are respectively recorded in the permanent restriction set PassRoads and the time-segment restriction set TimePassRoads.

上述实施例中,对于一个路口的从路口子图中得到两点间的最短通路,通过遍历各个顶点,最终获取了可通行序列集B中的各个序列。In the above embodiment, for an intersection, the shortest path between two points is obtained from the intersection subgraph, and each sequence in the passable sequence set B is finally obtained by traversing each vertex.

步骤302中,在交限序列集A的过程中,如图7所示,具体包括:In step 302, in the process of intersecting the sequence set A, as shown in Figure 7, specifically includes:

步骤302i,遍历一个路口的有向网络图Map的子图中的顶点。Step 302i, traverse the vertices in the subgraph of the directed network graph Map of an intersection.

步骤302ii,得到一对进入路口点和退出路口点。Step 302ii, get a pair of entry intersection point and exit intersection point.

步骤302iii,判断进入路口点和退出路口点之间是否有交通限制,如果是,转步骤步骤302iv,否则转步骤步骤302ii。Step 302iii, judge whether there is traffic restriction between the entry point and the exit point, if yes, go to step 302iv, otherwise go to step 302ii.

步骤302iv,从路口子图中得到进入路口点和退出路口点这两点之间的全部通路。In step 302iv, obtain all paths between the two points of the intersection point and the exit point from the intersection subgraph.

步骤302v,将得到的交通限制信息构成一个序列,记入交限序列集A。Step 302v, form a sequence with the obtained traffic restriction information, and record it into the traffic restriction sequence set A.

根据交限是永久禁行或时间段通行,分别将它们记入永久禁行集alwaysforbidRoads和时间段通行集timelimitRoads。According to whether traffic restrictions are permanent prohibition or time-segment passage, they are respectively recorded in the permanent prohibition set alwaysforbidRoads and the time-segment passage set timelimitRoads.

对简化结果进行检查,包括:路径通行检查,简化结果包含检查。Check the simplification result, including: path passing check, simplification result inclusion check.

路径通行检查,根据道路数据路口的交限、指定通行信息,再结合简化结果文件,检查是否可通行的路径被禁止或者交限仍可通行。Path traffic inspection, according to the traffic limit at the intersection of road data, the specified traffic information, and combined with the simplified result file, check whether the passable path is prohibited or the traffic limit is still passable.

简化结果包含检查,只对简化结果文本进行内部包含关系的检查。The simplification result contains check, and only checks the internal containment relationship for the simplification result text.

对应地,本实施例提供了一种在电子地图中记录交通限制信息的装置,如图8所示,包括:Correspondingly, this embodiment provides a device for recording traffic restriction information in an electronic map, as shown in FIG. 8 , including:

网络图管理单元401,用于获取或构建一路口的有向网络图Map;A network graph management unit 401, configured to obtain or construct a directed network graph Map of an intersection;

序列集构建单元402,用于获取所述有向网络图Map的可通行序列集B,所述可通行序列集B中的每一个可通行序列b表示,从前一边到后一边的边序号的有序组合,且前一边到后一边可通行;The sequence set construction unit 402 is used to obtain the passable sequence set B of the directed network graph Map, and each passable sequence b in the passable sequence set B represents the number of edges from the front side to the back side. Sequential combination, and the front side to the back side can pass;

获取所述有向网络图Map的交限序列集A,所述交限序列集A中的每一个交限序列a表示,从前一边到后一边的边序号的有序组合,且前一边到后一边限制通行;Obtain the intersection sequence set A of the directed network graph Map, each intersection sequence a in the intersection sequence set A represents an ordered combination of edge numbers from the front side to the back side, and the front side to the back side One side restricts traffic;

所述前一边、后一边、前一边和后一边均指所述有向网络图中的任意边;The front side, the back side, the front side and the back side all refer to any side in the directed network graph;

交通限制信息获取单元403,用于对于一个交限序列a,如果判定该交限序列a包含在一个可通行序列b中,则从所述交限序列集A中剔除该交限序列a;交限序列集A中剩余的所有交限序列a形成一交限序列中间集M。The traffic restriction information acquisition unit 403 is configured to, for a traffic restriction sequence a, if it is determined that the traffic restriction sequence a is included in a passable sequence b, then remove the traffic restriction sequence a from the traffic restriction sequence set A; All remaining intersecting sequences a in the restricted sequence set A form an intermediate set M of intersecting sequences.

应用本实施例提供的技术,对于有大量冗余数据的交限序列集A中所记录的所有的交限序列a,采用了可通行序列集B中的可通行序列b对其进行筛选,去掉了交限序列a中多余的边序号,以及去掉了某些交限序列a;简化了交通限制信息的表示方式,减少了冗余数据。Applying the technology provided in this embodiment, for all the intersection sequences a recorded in the intersection sequence set A with a large amount of redundant data, use the passable sequence b in the passable sequence set B to filter them, and remove The redundant edge sequence numbers in the intersection sequence a and some intersection sequences a are removed; the representation of traffic restriction information is simplified, and redundant data is reduced.

装置还包括:The device also includes:

排序单元,用于根据预定的优先级标准对所述交限序列中间集M中的各个交限序列进行排序;A sorting unit, configured to sort each crossing sequence in the intermediate set M of crossing sequences according to a predetermined priority standard;

所述优先级标准包括:序列长度u或者等价序列个数v;其中,序列长度u,是指该交限序列所包含的边序号的个数;等价序列个数v,是指交限序列中间集M中的一个交限序列与交限序列集中的至少一个交限序列等价时,所述交限序列集中的至少一个交限序列的数目;每一个所述交限序列均应至少对应一序列长度u和一等价序列个数v;The priority criteria include: sequence length u or the number of equivalent sequences v; wherein, the sequence length u refers to the number of edge sequence numbers contained in the intersection sequence; the number of equivalent sequences v refers to the number of intersection When an intersecting sequence in the sequence intermediate set M is equivalent to at least one intersecting sequence in the intersecting sequence set, the number of at least one intersecting sequence in the intersecting sequence set; each of the intersecting sequences should be at least Corresponding to a sequence length u and an equivalent sequence number v;

序列摘选单元,用于当根据所述等价序列个数v对交限序列中间集M中的各个所述交限序列进行排序时,v1+v2+......vi=C,其中C是一个定值,i是交限序列的序号,vi表示该交限序列的等价序列个数;A sequence extraction unit, configured to sort each of the intersecting sequences in the intermediate set M of intersecting sequences according to the number v of the equivalent sequences, v1+v2+...vi=C, where C is a fixed value, i is the serial number of the intersection sequence, and vi represents the number of equivalent sequences of the intersection sequence;

在交限序列中间集M中,选取i个交限序列作为结果输出,所述i个交限序列满足:使得i的取值最小,且使得i个所述交限序列的序列长度u的和值最小。In the intermediary set M of intersecting sequences, select i intersecting sequences as the result output, and the i intersecting sequences satisfy: make the value of i the smallest, and make the sum of the sequence length u of the i intersecting sequences The value is the smallest.

序列拆分单元,用于计算出交限序列集A中各个交限序列a的全部子序列放入一交限子序列集合A1;The sequence splitting unit is used to calculate all the subsequences of each intersecting sequence a in the intersecting sequence set A and put them into an intersecting subsequence set A1;

所述一个交限序列a是在所述交限子序列集合A1中。The one intersection sequence a is in the intersection subsequence set A1.

序列集合拆分单元,用于将可通行序列集B拆分为两个列表,PassRoads列表,TimePassRoads列表;其中,PassRoads列表中存放永久可通行序列,TimePassRoads列表中存放分时间段可通行序列;The sequence set splitting unit is used to split the passable sequence set B into two lists, the PassRoads list and the TimePassRoads list; wherein, the PassRoads list stores permanent passable sequences, and the TimePassRoads list stores time-period passable sequences;

将交限序列集A拆分为两个列表,alwaysforbidRoads列表,timelimitRoads列表;其中,alwaysforbidRoads列表中存放了永久限制通行序列,timelimitRoads列表中存放了分时间段限制通行序列。Split the traffic limit sequence set A into two lists, the alwaysforbidRoads list and the timelimitRoads list; among them, the alwaysforbidRoads list stores the permanent traffic restriction sequence, and the timelimitRoads list stores the time limit traffic sequence.

序列剔除单元,用于对于timelimitRoads列表中的序列a1,当Sequence elimination unit, used for sequence a1 in the timelimitRoads list, when

a1包含在PassRoads列表中,剔除该a1;a1 is included in the PassRoads list, remove this a1;

a1包含在TimePassRoads列表中,剔除该a1;a1 is included in the TimePassRoads list, remove this a1;

对于timelimitRoads列表中的一个a2,当:For a2 in the timelimitRoads list, when:

a2包含在PassRoads列表中,剔除该a2;a2 is included in the PassRoads list, remove this a2;

a2包含在TimePassRoads列表中,且两者所在时间段相同,不再剔除该a2;时间段不同则剔除a2。a2 is included in the TimePassRoads list, and both of them are in the same time period, so a2 will not be deleted; if the time period is different, a2 will be deleted.

检验单元,用于对所述交限序列中间集M中的各个序列,遍历该序列的各个边序号,判断该序列是否是从前一边到后一边的边序号的有序组合,且前一边到后一边可通行;如果是则剔除该序列,否则保留。The checking unit is used for traversing each sequence number of each edge number of the sequence in the intermediate set M of the intersection sequence, and judging whether the sequence is an ordered combination of edge numbers from the front side to the back side, and the front side to the back side One side is passable; if it is, the sequence is eliminated, otherwise it is kept.

本发明主要应用在导航电子地图中,所提供的实施例具有以下有益效果,采用尽量短的边序号的序列表达交通限制信息,包括永久禁止通行信息、时间段禁止通行限制信息,简化了交通限制信息的表达方式,减少了数据冗余;同时,通过判断简化后的结果数据是否破坏原有有向网络图Map中的连通关系,确保了结果数据的质量;以上技术手段和效果使得在地图数据生成环节解决了导航时的技术瓶颈问题。The present invention is mainly used in navigation electronic maps, and the provided embodiments have the following beneficial effects. The shortest possible sequence of side numbers is used to express traffic restriction information, including permanent traffic prohibition information and time zone traffic restriction information, which simplifies traffic restrictions. The expression of information reduces data redundancy; at the same time, by judging whether the simplified result data destroys the connection relationship in the original directed network graph Map, the quality of the result data is ensured; the above technical means and effects make the map data The generation link solves the technical bottleneck problem when navigating.

应当说明的是,以上实施例仅用以说明本发明的技术方案而非限制,所有的参数取值可以根据实际情况调整,且在该权利保护范围内。本领域的普通技术人员应当理解,可以对本发明的技术方案进行修改或者等同替换,而不脱离本发明技术方案的精神范围,其均应涵盖在本发明的权利要求范围当中。It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than limit them, and all parameter values can be adjusted according to actual conditions, and are within the protection scope of this right. Those skilled in the art should understand that the technical solution of the present invention can be modified or equivalently replaced without departing from the spirit of the technical solution of the present invention, and all of them should be covered by the claims of the present invention.

Claims (12)

1. the method for a recording traffic restricted information in electronic chart is characterized in that, comprising:
Step 1 is obtained the directed networks figure at a crossing;
Step 2 is obtained the passed through sequence sets of described directed networks figure, the orderly combination that each the passed through sequence in the described sequence sets that passes through is made up of the limit sequence number among the described directed networks figure, expression in the past while to after can pass through;
Obtain the cross sequence set limit of described directed networks figure, the orderly combination that each limit sequence that described limit sequence is concentrated is made up of the limit sequence number among the described directed networks figure, expression in the past while to after limit and pass through;
Wherein, one side preceding first pairing limit of limit sequence number that is meant in the described orderly combination Yi Bian the back is meant last the pairing limit of limit sequence number in the described orderly combination, and all is any limits among the described directed networks figure;
Step 3 for a limit sequence, is included in the sequence of can passing through if judge this limit sequence, then concentrates from described limit sequence and rejects this limit sequence; Limit sequence concentrates remaining all limit sequences to form the middle collection of a limit sequence.
2. method according to claim 1 is characterized in that, after the described step 2, also comprises:
Calculate whole subsequences of each described limit sequence, put into one and hand over the set of limit subsequence;
Then in step 3, a described limit sequence is specially a subsequence in the set of described friendship limit subsequence.
3. method according to claim 2 is characterized in that, forms the middle collection of a limit sequence in the step 3 and also comprises afterwards:
Step 4 sorts to each limit sequence of concentrating in the middle of the described limit sequence according to the preset priority standard;
Described priority criteria comprises: sequence length u or equivalent sequence number v; Wherein, sequence length u is meant the number of the limit sequence number that this limit sequence comprises; Equivalent sequence number v is meant when at least one limit sequence that limit sequence concentrating in the middle of the limit sequence and limit sequence concentrate is of equal value the number of at least one limit sequence that described limit sequence is concentrated; Each described limit sequence all should a corresponding at least sequence length u and a sequence number v of equal value;
Step 5, when middle each the described limit sequence concentrated of described limit sequence being sorted according to described equivalent sequence number v, v1+v2+......vi=C, wherein C is a definite value, i is the sequence number of limit sequence, and vi represents the equivalent sequence number of this limit sequence;
Concentrate in the middle of described limit sequence, choose i limit sequence and as a result of export, a described i limit sequence satisfies: make the value minimum of i, and make the individual described limit sequence of i sequence length u with the value minimum.
4. method according to claim 1 is characterized in that, in the described step 2,
The described sequence of passing through is divided into forever can pass through sequence and the time segment sequence of can passing through, the then described sequence sets that passes through comprises first tabulation and second tabulation: the described sequence of forever can passing through is deposited in described first tabulation, and described second tabulates deposits the described time segment sequence of can passing through;
Described limit sequence is divided into current sequence of permanent restriction and the current sequence of time segment restriction, then described cross sequence set limit comprises the 3rd tabulation and the 4th tabulation: the current sequence of described permanent restriction is deposited in described the 3rd tabulation, and the current sequence of described time segment restriction is deposited in described the 4th tabulation.
5. method according to claim 4 is characterized in that,
For the sequence a1 in described the 3rd tabulation, when
A1 is included in first tabulation, rejects this a1;
A1 is included in second tabulation, rejects this a1;
For a sequence a2 in the 4th tabulation, when:
A2 is included in first tabulation, rejects this a2;
A2 is included in second tabulation, and both place time periods are identical, no longer reject this a2; The time period difference is then rejected a2.
6. method according to claim 1 is characterized in that, forms after the middle collection of a limit sequence, also comprises:
Each limit sequence to concentrating in the middle of the described limit sequence travels through each limit sequence number of this limit sequence, judges on one side whether this limit sequence is the orderly combination of in the past arriving limit sequence number afterwards, while and preceding to after can pass through; If then in the middle of described limit sequence, concentrate this limit sequence of rejecting, otherwise keep.
7. the device of a recording traffic restricted information in electronic chart is characterized in that, comprising:
The network chart administrative unit is used to obtain or make up the directed networks figure at a crossing;
The sequence sets construction unit is used to obtain the cross sequence set limit of described directed networks figure, the orderly combination that each limit sequence that described limit sequence is concentrated is made up of the limit sequence number among the directed networks figure, expression in the past while to after limit and pass through;
Wherein, one side preceding first pairing limit of limit sequence number that is meant in the described orderly combination Yi Bian the back is meant last the pairing limit of limit sequence number in the described orderly combination, and all is any limits among the described directed networks figure;
The traffic restricted information acquiring unit is used for for a limit sequence, is included in the sequence of can passing through if judge this limit sequence, then concentrates from described limit sequence and rejects this limit sequence; Limit sequence concentrates remaining all limit sequences to form the middle collection of a limit sequence.
8. device according to claim 7 is characterized in that, also comprises:
Sequencing unit is used for according to the preset priority standard each limit sequence of concentrating in the middle of the described limit sequence being sorted;
Described priority criteria comprises: sequence length u or equivalent sequence number v; Wherein, sequence length u is meant the number of the limit sequence number that this limit sequence comprises; Equivalent sequence number v is meant when at least one limit sequence that limit sequence concentrating in the middle of the limit sequence and limit sequence concentrate is of equal value the number of at least one limit sequence that described limit sequence is concentrated; Each described limit sequence all should a corresponding at least sequence length u and a sequence number v of equal value;
Sequence is plucked menu unit, be used for when middle each the described limit sequence concentrated of described limit sequence being sorted according to described equivalent sequence number v, v1+v2+......vi=C, wherein C is a definite value, i is the sequence number of limit sequence, and vi represents the equivalent sequence number of this limit sequence;
Concentrate in the middle of described limit sequence, choose i limit sequence and as a result of export, a described i limit sequence satisfies: make the value minimum of i, and make the individual described limit sequence of i sequence length u with the value minimum.
9. device according to claim 7 is characterized in that, also comprises:
The sequence split cells is used to calculate limit sequence and concentrates whole subsequences of each limit sequence to put into a friendship limit subsequence set;
A described limit sequence is specially a subsequence in the set of described friendship limit subsequence.
10. device according to claim 7 is characterized in that, also comprises:
The arrangement set split cells, be used for the described sequence of passing through is divided into forever can pass through sequence and the time segment sequence of can passing through, the then described sequence sets that passes through comprises first tabulation and second tabulation: the described sequence of forever can passing through is deposited in described first tabulation, and described second tabulates deposits the described time segment sequence of can passing through;
Described limit sequence is divided into current sequence of permanent restriction and the current sequence of time segment restriction, then described cross sequence set limit comprises the 3rd tabulation and the 4th tabulation: the current sequence of described permanent restriction is deposited in described the 3rd tabulation, and the current sequence of described time segment restriction is deposited in described the 4th tabulation.
11. device according to claim 7 is characterized in that,
Sequence is rejected the unit, is used for the sequence a1 for described the 3rd tabulation, when
A1 is included in first tabulation, rejects this a1;
A1 is included in second tabulation, rejects this a1;
For an a2 in the 4th tabulation, when:
A2 is included in first tabulation, rejects this a2;
A2 is included in second tabulation, and both place time periods are identical, no longer reject this a2; The time period difference is then rejected a2.
12. device according to claim 7 is characterized in that, also comprises:
Verification unit is used for each limit sequence of concentrating in the middle of the described limit sequence, travels through each limit sequence number of this limit sequence, judges on one side whether this limit sequence is the orderly combination of in the past arriving limit sequence number afterwards, while and preceding to after can pass through; If then in the middle of described limit sequence, concentrate this limit sequence of rejecting, otherwise keep.
CN2009100908699A 2009-08-11 2009-08-11 Method and device for recording traffic restricted information on electronic map Active CN101620803B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009100908699A CN101620803B (en) 2009-08-11 2009-08-11 Method and device for recording traffic restricted information on electronic map

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009100908699A CN101620803B (en) 2009-08-11 2009-08-11 Method and device for recording traffic restricted information on electronic map

Publications (2)

Publication Number Publication Date
CN101620803A true CN101620803A (en) 2010-01-06
CN101620803B CN101620803B (en) 2012-08-22

Family

ID=41514017

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009100908699A Active CN101620803B (en) 2009-08-11 2009-08-11 Method and device for recording traffic restricted information on electronic map

Country Status (1)

Country Link
CN (1) CN101620803B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109557928A (en) * 2019-01-17 2019-04-02 湖北亿咖通科技有限公司 Automatic driving vehicle paths planning method based on map vector and grating map
CN114202924A (en) * 2021-12-15 2022-03-18 北京百度网讯科技有限公司 Method and device for identifying redundant traffic restriction information, electronic device and medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2641470B2 (en) 1987-12-28 1997-08-13 アイシン・エィ・ダブリュ株式会社 Navigation device
US6324470B1 (en) * 2000-03-07 2001-11-27 Navigation Technologies Corporation Method and system for representing restricted driving maneuvers
CN100535600C (en) * 2005-08-25 2009-09-02 厦门雅迅网络股份有限公司 Device for displaying road navigation track
CN101359434A (en) * 2008-09-17 2009-02-04 覃征 Process for constructing road net model for traffic navigation system and traffic emulation system
CN101458092B (en) * 2008-09-26 2011-08-10 深圳市路畅科技有限公司 Crossing steering forbidding identification input method in automatic navigation system
CN101488158A (en) * 2009-02-13 2009-07-22 同济大学 Road network modeling method based on road element

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109557928A (en) * 2019-01-17 2019-04-02 湖北亿咖通科技有限公司 Automatic driving vehicle paths planning method based on map vector and grating map
CN114202924A (en) * 2021-12-15 2022-03-18 北京百度网讯科技有限公司 Method and device for identifying redundant traffic restriction information, electronic device and medium
CN114202924B (en) * 2021-12-15 2024-01-09 北京百度网讯科技有限公司 Redundant traffic restriction information identification method and device, electronic equipment and medium

Also Published As

Publication number Publication date
CN101620803B (en) 2012-08-22

Similar Documents

Publication Publication Date Title
Natera Orozco et al. Data-driven strategies for optimal bicycle network growth
Orabi et al. Optimizing postdisaster reconstruction planning for damaged transportation networks
CN111489553A (en) Route planning method, device, equipment and computer storage medium
CN110375760A (en) Route determination method, apparatus, equipment and medium
WO2017000487A1 (en) Driving route matching method and apparatus and storage medium
US20130090905A1 (en) Traffic Sensor Management
CN110059952A (en) Vehicle insurance methods of risk assessment, device, equipment and storage medium
Monechi et al. Complex delay dynamics on railway networks from universal laws to realistic modelling
Ha et al. Solving the close‐enough arc routing problem
CN116415206B (en) Carrier multi-data fusion method, system, electronic equipment and computer storage medium
CN113140114B (en) Vehicle travel path reconstruction method based on travel time estimation
Zhang et al. A stochastic programming approach to enhance the resilience of infrastructure under weather‐related risk
Ni et al. Effect of heavy rainstorm and rain-induced waterlogging on traffic flow on urban road sections: Integrated experiment and simulation study
John Metaheuristics for designing efficient routes & schedules for urban transportation networks
CN101620803A (en) Method and device for recording traffic restricted information on electronic map
Liu et al. Multi-Class Traffic Assignment using Multi-View Heterogeneous Graph Attention Networks
CN111008736A (en) Opening decision method and system for new airline
Monroy‐Licht et al. The rural postman problem with time windows
CN111444286B (en) Long-distance traffic node relevance mining method based on trajectory data
Qi et al. A novel filtering method of travel-time outliers extracted from large-scale traffic checkpoint data
CN116564551A (en) A data-knowledge-driven risk identification method for urban rail transit
Xia et al. Problem decomposition for traffic diversions
Rahman et al. Reinforcement learning based approach for urban resource allocation and path planning problems
Giuffrida et al. Sketching smart and fair cities WebGIS and spread sheets in a code
Šimunović et al. Evaluating the success factors of integrating the railway into the public urban–suburban transport

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant