CN105868189B - A kind of electronic map spatial index method for building up and device - Google Patents

A kind of electronic map spatial index method for building up and device Download PDF

Info

Publication number
CN105868189B
CN105868189B CN201510024849.7A CN201510024849A CN105868189B CN 105868189 B CN105868189 B CN 105868189B CN 201510024849 A CN201510024849 A CN 201510024849A CN 105868189 B CN105868189 B CN 105868189B
Authority
CN
China
Prior art keywords
road
tile
road element
overall identification
electronic map
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.)
Active
Application number
CN201510024849.7A
Other languages
Chinese (zh)
Other versions
CN105868189A (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.)
Alibaba China Co Ltd
Original Assignee
Autonavi Software 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 Autonavi Software Co Ltd filed Critical Autonavi Software Co Ltd
Priority to CN201510024849.7A priority Critical patent/CN105868189B/en
Priority to PCT/CN2016/071349 priority patent/WO2016116031A1/en
Publication of CN105868189A publication Critical patent/CN105868189A/en
Application granted granted Critical
Publication of CN105868189B publication Critical patent/CN105868189B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/01Detecting movement of traffic to be counted or controlled

Abstract

This application discloses a kind of electronic map spatial index method for building up and devices, method includes: the road element for the specified type for including according to electronic map in the tile and tile for including, the overall identification of each road element of specified type in each tile is established, to show unique global identification of the road element in electronic map;Using the overall identification of each road element of specified type in electronic map, road topology bitmap is established, the flag bit for the road element that record has each road element whether to be selected during once calculating road as path to be calculated in road topology bitmap.Therefore, it in path computing, directly can directly determine whether road element is evaluated by the flag bit in road topology bitmap, not need to establish simultaneously poll openlist table and closedlist table, to substantially increase the efficiency of path computing.

Description

A kind of electronic map spatial index method for building up and device
Technical field
This application involves electronic map technique fields, more specifically to a kind of electronic map spatial index foundation side Method and device.
Background technique
Currently, electronic map is widely used in path query, path computing, navigation etc., wherein path computing is electricity One of the content of sub- map core.
Since original electron map is excessive, road efficiency is calculated in order to improve, the prior art is usually the sky for generating electronic map Between index.The spatial index for generating electronic map is main are as follows: firstly, electronic map is divided into tile;Then, for each watt It is unique in the tile to generate each road element (road element such as section or road topology point) for including in the tile for piece The local identities of local identities, such as each tile road element are incremented by since 0 or 1.
By taking road element is road topology point (subsequent to be known as node) as an example, for road is calculated each time, (primary road of calculating refers to The process in the path of at least one connection source and terminal is calculated according to beginning and end), pre-establish openlist table and Road topology point all in tile is added in openlist table by closedlist table in advance.During calculating road, determine Out after the present node in current path to be calculated, when needing to extend next node, determine that there is topological relation with present node Node execute following steps: searching the node from openlist table for each node determined;If can find, Then show that the node is not selected the node for path, which is carried out to calculate road calculating, and it is current for being selected in the node The node is added to closedlist table when the node in path to be calculated, and is deleted from openlist table;If cannot search To then showing that the node has been selected the node for path, the node is skipped.
In the prior art, poll openlist table and closedlist table repeatedly is needed, during calculating road with determination Whether road topology point can participate in current path calculating, reduce the efficiency for calculating road.
Summary of the invention
In view of this, this application provides a kind of electronic map spatial index method for building up and device, it is existing for solving Technology needs continuous poll openlist table and closedlist in path calculation process, whether to determine some road topology point It is evaluated, thus the problem of causing path computing inefficiency.
To achieve the goals above, it is proposed that scheme it is as follows:
A kind of electronic map spatial index method for building up, comprising:
The road element for the specified type for including in the tile and tile for including according to electronic map generates institute in each tile The overall identification of each road element of specified type is stated, the overall identification is for showing road element in electronic map only One overall identification;
The overall identification of each road element of the specified type according to electronic map, establishes road topology bitmap, Record has whether road element is selected during once calculating road as the road in path to be calculated in the road topology bitmap The flag bit of element.
Preferably, the road element for the specified type for including in the tile and tile for including according to electronic map generates each The overall identification of each road element of the specified type in tile, specifically includes:
The tile in electronic map is numbered according to pre-set sequence;
For each of electronic map tile, following step is executed:
It is numbered according to road element of the pre-set sequence to the specified type in the tile, and the number is determined as Local identities of the road element in tile;
Calculate total quantity of the number less than the road element for the specified type that the tile of the number of the tile is included;
For each road element of the specified type in the tile, by the total quantity and the road element Local identities and value, be determined as the overall identification of the road element.
Preferably, described that the tile in electronic map is numbered according to pre-set sequence, it specifically includes:
Sequence according to electronic map from top to bottom, from left to right is successively numbered tile according to incremental mode;
It is described to be numbered according to road element of the pre-set sequence to the specified type in the tile, it specifically includes:
Sequence according to tile from top to bottom, from left to right, successively according to incremental mode to described specified in tile The road element of type is numbered.
Preferably, the overall identification of each road element of the specified type according to electronic map, establishes road topology Bitmap specifically includes:
The road topology bitmap comprising N number of flag bit is established, wherein the N is positive integer and is more than or equal in electronic map The total quantity of the road element of the specified type;
Since first flag bit of the road topology bitmap, according to the overall situation of the road element of the specified type The sequence of mark from small to large or from big to small successively establishes the one-to-one relationship of overall identification and flag bit, wherein each A flag bit is used to record the evaluation status identifier of the road element of its corresponding overall identification.
Preferably, the value for the evaluation status identifier that flag bit records in the road topology bitmap includes the first value With the second value, in which:
First value is that the value of status identifier is respectively evaluated when calculating road every time and starting, and the first value is for indicating The road element of the corresponding overall identification of flag bit is not selected as the road element in path to be calculated;
Second value be during calculating road, when road element is selected as the road element in path to be calculated, The value of the evaluation status identifier of the corresponding flag bit of road element overall identification, the second value is for indicating flag bit pair The road element for the overall identification answered is selected as the road element in path to be calculated.
A kind of electronic map spatial index establishes device, comprising:
Overall identification generation unit, the road for the specified type for including in the tile and tile for including according to electronic map Road element generates the overall identification of each road element of the specified type in each tile, and the overall identification is for showing Unique global identification of the road element in electronic map;
Bitmap establishes unit, and the overall identification of each road element for the specified type according to electronic map is built Vertical road topology bitmap, whether record in the road topology bitmap, which has road element to be selected during once calculating road, is The flag bit of the road element in path to be calculated.
Preferably, the overall identification generation unit includes:
Tile number unit, for the tile in electronic map to be numbered according to pre-set sequence;
Tile processing unit generates road in the tile for being handled for each of electronic map tile The overall identification of element comprising:
Road element numbered cell, for being carried out according to road element of the pre-set sequence to the specified type in the tile Number, and the number is determined as local identities of the road element in tile;
Road element counting unit, the specified class that the tile for calculating the number that number is less than the tile is included The total quantity of the road element of type;
Road element summation unit, for each road element for the specified type in the tile, by institute State the local identities of total quantity and the road element and value, it is determined as the overall identification of the road element.
Preferably, the tile number unit is specifically used for, the sequence according to electronic map from top to bottom, from left to right, Successively tile is numbered according to incremental mode;
The road element numbered cell is carried out according to road element of the pre-set sequence to the specified type in the tile Number, is specifically used for: the sequence according to tile from top to bottom, from left to right, successively according to incremental mode to the institute in tile The road element for stating specified type is numbered.
Preferably, the bitmap establishes unit and includes:
First bitmap establishes subelement, for establishing the road topology bitmap comprising N number of flag bit, wherein the N is positive The total quantity of integer and the road element more than or equal to specified type described in electronic map;
Second bitmap establishes subelement, for since first flag bit of the road topology bitmap, according to described The sequence of the overall identification of the road element of specified type from small to large or from big to small successively establishes overall identification and mark The one-to-one relationship of position, wherein each flag bit is used to record the evaluation state of the road element of its corresponding overall identification Identifier.
Preferably, the value for the evaluation status identifier that flag bit records in the road topology bitmap includes the first value With the second value, in which:
First value is that the value of status identifier is respectively evaluated when calculating road every time and starting, and the first value is for indicating The road element of the corresponding overall identification of flag bit is not selected as the road element in path to be calculated;
Second value be during calculating road, when road element is selected as the road element in path to be calculated, The value of the evaluation status identifier of the corresponding flag bit of road element overall identification, the second value is for indicating flag bit pair The road element for the overall identification answered is selected as the road element in path to be calculated.
It can be seen from the above technical scheme that electronic map spatial index method for building up provided by the embodiments of the present application, The road element for the specified type for including in the tile and tile for including according to electronic map establishes the specified class in each tile The overall identification of each road element of type, to show unique global identification of the road element in electronic map, using electronically The overall identification of each road element of specified type, establishes road topology bitmap in figure, and recording in road topology bitmap has Whether road element is selected the flag bit of the road element for path to be calculated during once calculating road, namely shows road member Whether element is evaluated.Therefore, it in path computing, can directly be directly determined by the flag bit in road topology bitmap Whether road element is evaluated, and does not need to establish simultaneously poll openlist table and closedlist table, to substantially increase road The efficiency that diameter calculates.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of application for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of electronic map spatial index method for building up flow chart disclosed in the embodiment of the present application;
Fig. 2 is the method flow diagram that tile is handled in a kind of pair of electronic map disclosed in the embodiment of the present application;
Fig. 3 is a kind of method flow diagram for establishing road topology bitmap disclosed in the embodiment of the present application;
Fig. 4 establishes apparatus structure schematic diagram for a kind of electronic map spatial index disclosed in the embodiment of the present application;
Fig. 5 is a kind of structural schematic diagram of overall identification generation unit disclosed in the embodiment of the present application;
Fig. 6 is a kind of structural schematic diagram of tile processing unit disclosed in the embodiment of the present application;
Fig. 7 establishes the structural schematic diagram of unit for a kind of bitmap disclosed in the embodiment of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall in the protection scope of this application.
Referring to Fig. 1, Fig. 1 is a kind of electronic map spatial index method for building up flow chart disclosed in the embodiment of the present application.
As shown in Figure 1, this method comprises:
Step S100, the road element for the specified type for including in the tile and tile for including according to electronic map generates The overall identification of each road element of the specified type in each tile;
Wherein, tile is that gained is divided to electronic map, comprising several road elements in each tile.Overall situation mark Know for showing unique global identification of the road element in electronic map.It, can be in electronic map only by overall identification One ground positions a road element.
In general, road element can be road topology point, or the section being made of 1 road topology points. In the embodiment of the present application, the road element of specified type can be road topology point or section.
Step S110, according to electronic map, the overall identification of each road element of specified type, establishes road and opens up Bitmap is flutterred, record has whether road element is selected during once calculating road as road to be calculated in the road topology bitmap The flag bit of the road element of diameter.
Wherein, the flag bit in road topology bitmap is for recording whether road in electronic map element passes by once It is selected in journey as the road element in path to be calculated.
Specifically, by taking road element is road topology point as an example, during calculating road, if some road topology point It has been selected the node as path to be calculated, then has been marked by the flag bit in road topology bitmap.Then rear It in continuous calculating process, can directly determine that the road topology point has been selected by flag bit, appoint without inquiring What table structure.
Electronic map spatial index method for building up provided by the embodiments of the present application, the tile for including according to electronic map and watt The road element for the specified type for including in piece establishes the overall identification of each road element of the specified type in each tile, To show unique global identification of the road element in electronic map, each road element of specified type in electronic map is utilized Overall identification establishes road topology bitmap, and whether record has road element during once calculating road in road topology bitmap It is selected the flag bit of the road element for path to be calculated, namely shows whether road element is evaluated.Therefore, in path When calculating, it directly can directly determine whether road element is evaluated by the flag bit in road topology bitmap, not need Simultaneously poll openlist table and closedlist table are established, to substantially increase the efficiency of path computing.
Next, the specified type introduced above-mentioned steps S100, include in the tile and tile that include according to electronic map Road element, generate a kind of optional embodiment of the overall identification of each road element of specified type in each tile.
Firstly, the tile in electronic map is numbered according to pre-set sequence.
Specifically, the sequence followed when the tile in electronic map being numbered can arbitrarily be set by user It is fixed, such as the sequence according to electronic map from top to bottom, from left to right, successively tile is numbered according to incremental mode, Or other optional number orders.In general, can be incremented by one by one since 0 or 1 when number.Certainly, in addition to digital shape Except the number of formula, it is also an option that the number of other forms, such as letter, the application is without limiting.
Secondly, being handled for each of electronic map tile, which be may refer to shown in Fig. 2, packet It includes:
Step S200, it is numbered according to road element of the pre-set sequence to the specified type in the tile, and should Number is determined as local identities of the road element in tile;
Here, when road element in tile being numbered, it is referred to the above-mentioned rule to tile number, the two can be with It is identical to can also be different.For example, the sequence according to tile from top to bottom, from left to right, successively according to incremental mode to tile Interior road element is numbered.The local identities number being determined as in the tile of the road element.
Step S210, road element of the number less than the specified type that the tile of the number of the tile is included is calculated Total quantity;
Step S220, for each road element of the specified type in the tile, by the total quantity and institute State the local identities of road element and value, it is determined as the overall identification of the road element.
In the embodiment of the present application, respectively by taking the road element of specified type is road topology point and section as an example, to above-mentioned Process shown in Fig. 2 is introduced.
1) when the road element of specified type is road topology point, which may include:
Firstly, the tile in electronic map is numbered according to pre-set sequence.
Secondly, being handled for each of electronic map tile, which includes:
Road topology point in the tile is numbered according to pre-set sequence, and the number is determined as the road topology Local identities of the point in tile;
For each road topology point in the tile, the tile for calculating the number that number is less than the tile is included Road topology point total quantity;
By the local identities of the total quantity and the road topology point and value, be determined as the complete of the road topology point Office's mark.
Specifically, the offset of tile where the total quantity is considered as the road topology point, and the road is opened up Flutterring overall identification a little can be understood as the offset of road topology point place tile and the part mark of the road topology point Know and value.
The process of above-mentioned determining overall identification is illustrated with a specific example:
Assuming that one sharing 3 tiles in electronic map, number consecutively is tile 1, tile 2 and tile 3.There are 3 in tile 1 Road topology point has 4 road topology points in tile 2, there is 5 road topology points in tile 3.Successively determine 3 in tile 1 The number of road topology point is 1,2,3;The number of 4 road topology points in tile 2 is 1,2,3,4;5 roads in tile 3 The number of road topology point is 1,2,3,4,5.Calculating the road topology point total quantity that tile of the number less than 1 includes is 0, therefore The overall identification of 3 road topology points is respectively 1,2,3 in tile 1.Calculating tile (i.e. tile 1) of the number less than 2 includes The total quantity of road topology point be 3, therefore the overall identification for obtaining 4 road topology points in tile 2 is respectively 3+1,3+2,3 + 3,3+4, namely respectively 4,5,6,7.Calculate the road topology point that tile (i.e. tile 1 and tile 2) of the number less than 3 includes Total quantity be 3+4=7, therefore the overall identification for obtaining 5 road topology points in tile 3 be respectively 7+1,7+2,7+3,7+4, 7+5, namely respectively 8,9,10,11,12.
It, can be by overall identification it follows that establish overall identification for the road topology point in electronic map A road topology point is uniquely determined in electronic map.
2) when the road element of specified type is section, which includes:
Firstly, the tile in electronic map is numbered according to pre-set sequence.
Secondly, being handled for each of electronic map tile, comprising:
Section in the tile is numbered according to pre-set sequence, and the number is determined as the section in tile Local identities;
For each section in the tile, the section that the tile for the number that number is less than the tile is included is calculated Total quantity;
By the local identities in the total quantity and the section and value, be determined as the overall identification in the section.
Further, it introduces in above-mentioned steps S110 and is marked according to the global of each road element of specified type in electronic map Know, establishes a kind of optional embodiment of road topology bitmap.
As shown in figure 3, the process includes:
Step S300, the road topology bitmap comprising N number of flag bit is established;
Wherein, the N is the total quantity of positive integer and the road element more than or equal to specified type described in electronic map. Preferably, the N is the total quantity of the road element equal to specified type described in electronic map.
Step S310, the corresponding relationship of overall identification and flag bit is established.
Specifically, since first flag bit of the road topology bitmap, according to the road member of the specified type The sequence of the overall identification of element from small to large or from big to small successively establishes the one-to-one relationship of overall identification and flag bit, Wherein each flag bit is used to record the evaluation status identifier of the road element of its corresponding overall identification.
Here, respectively by taking the road element of specified type is road topology point and section as an example, the process is carried out respectively It introduces.
1) when road element is road topology point, which may include:
Establish the road topology bitmap comprising N number of flag bit;
Wherein, the N is positive integer and the total quantity for being more than or equal to road topology point described in electronic map.
Establish the corresponding relationship of overall identification and flag bit.
Specifically, since first flag bit of the road topology bitmap, according to the overall situation of the road topology point The sequence of mark from small to large or from big to small successively establishes the one-to-one relationship of overall identification and flag bit, wherein each A flag bit is used to record the evaluation status identifier of the road topology point of its corresponding overall identification.
In order to make it easy to understand, we are still illustrated using exemplifications set out in a upper embodiment.
Assuming that the total number of road in electronic map topology point is 12, therefore the number N that can choose flag bit is 12. Since first flag bit, according to the sequence of road topology point overall identification from small to large, overall identification and mark are successively established The corresponding relationship of will position.Then first flag bit corresponds to overall identification 1, and second flag bit corresponds to overall identification 2 ..., and the tenth Two flag bits correspond to overall identification 12.Each flag bit records the evaluation shape of the road topology point of its corresponding overall identification State identifier, such as first flag bit record the evaluation status identifier of the road topology point of overall identification 1.Here, road The evaluation status identifier of topology point is used to show whether the road topology point to be selected during once calculating road.Evaluation state Identifier can be shown in a variety of forms, such as number, text, symbol etc..Preferably, it can be selected in the embodiment of the present application It selects and sets number for evaluation status identifier, such as represented with 0 and be not selected, represented with 1 selected.
It is first that the value of the evaluation status identifier of flag bit each in road topology bitmap is equal when calculation road starts every time Be revised as the first value, first value for indicate the road topology point of the corresponding overall identification of flag bit be not selected for Calculate the node in path.
During calculating road, if a road topology point is selected as the node in path to be calculated, by the road The value of the evaluation status identifier of flag bit corresponding with the road topology point overall identification is revised as second and takes in topological bitmap Value, second value is for indicating that the corresponding road topology point of flag bit is selected as the node in path to be calculated.
Still by taking above-mentioned example as an example, defining the first value is 0, and the second value is 1.When the road Ze Suan starts, road topology Flag bit in figure is 000000000000.Each road topology point is represented not to be selected.During the road Er Suan, if Determining that road topology point that overall identification is 3 is selected is the node in path to be calculated, then by the corresponding flag bit of overall identification 3 Identifier be revised as 1, the identifier of other flag bits is constant, total flag bit be 001000000000.
Certainly, other than the representation of above-mentioned this identifier, it is also an option that other way, such as:
When calculation road starts, it is that flag bit all in figure is disposed as the first value 0 by road topology, indicates each road Topology point is not selected.During the road Er Suan, if a road topology point is selected as the node in path to be calculated, The value of the evaluation status identifier of flag bit corresponding with the road topology point overall identification in road topology bitmap is revised as Second value, the second value are the overall identification of the father node of the road topology point in path to be calculated.Wherein road topology The father node of point is that finger counting passes by the node being selected in journey as path to be calculated and has topology with the road topology point The node of relationship.Certainly, if the road topology point in currently selected is first node in path to be calculated, father is not present Node, therefore a first node mark can be set as the second value, such as determine that the second value is S (Start), Huo Zheqi It can be different from the identifier of the overall identification of the first value and all road topologies point.
By above-mentioned identifier representation, can reversely be retrodicted out entirely from destination node wait count during calculating road The road topology point that is passed through of path is calculated, to pass by journey simpler so that calculating.
Still it is illustrated using above-mentioned example, it is assumed that it is selected that there are three road topology points during calculating road, point It Wei not overall identification is 2, overall identification is 4 and overall identification is 6 road topology point.Since the road that overall identification is 2 is opened up The originating point a little for path to be calculated is flutterred, so determining that the identifier of its corresponding flag bit is S;Since overall identification is 4 Father node of the road topology point in path to be calculated is the road topology point that overall identification is 2, it is thus determined that its corresponding mark The identifier of will position is 2;Since father node of the road topology point in path to be calculated that overall identification is 6 is that overall identification is 4 road topology point, it is thus determined that the identifier of its corresponding flag bit is 4.Finally, 12 whole flag bits are 0S0204000000。
2) when road element is section, the process for establishing road topology bitmap is as follows:
The road topology bitmap comprising N number of flag bit is established, wherein the N is positive integer and is more than or equal in electronic map The total quantity in section;
Since first flag bit of the road topology bitmap, according to the section overall identification from small to large or The sequence of person from big to small successively establishes the one-to-one relationship of overall identification and flag bit, and wherein each flag bit is for remembering Record the evaluation status identifier in the section of its corresponding overall identification.
When calculation road starts every time, the value of the evaluation status identifier of flag bit each in road topology bitmap is repaired first It is changed to the first value, first value is for indicating that the corresponding section of flag bit is not selected as the section in path to be calculated.
During calculating road, if a section is selected as the section in path to be calculated, by road topology bitmap In the value of evaluation status identifier of flag bit corresponding with the section overall identification be revised as the second value, which uses It is selected in the corresponding section of expression flag bit as the section in path to be calculated.
It establishes device to electronic map spatial index provided by the embodiments of the present application below to be described, electricity described below Sub- map space index, which establishes device, can correspond to each other reference with above-described electronic map spatial index method for building up.
Referring to fig. 4, Fig. 4 establishes apparatus structure signal for a kind of electronic map spatial index disclosed in the embodiment of the present application Figure.Device includes:
Overall identification generation unit 41, the specified type for including in the tile and tile for including according to electronic map Road element generates the overall identification of each road element of the specified type in each tile, and the overall identification is for showing Unique global identification of the road element in electronic map;
Specifically, the road element of specified type can be road topology point either section.
Bitmap establishes unit 42, the overall identification of each road element for the specified type according to electronic map, Road topology bitmap is established, record has road element whether selected during once calculating road in the road topology bitmap For the flag bit of the road element in path to be calculated.
Optionally, the embodiment of the present application also discloses a kind of alternative construction of above-mentioned overall identification generation unit.Such as Fig. 5 institute Show, overall identification generation unit 41 may include:
Tile number unit 51, for the tile in electronic map to be numbered according to pre-set sequence;
Tile processing unit 52 generates road in the tile for being handled for each of electronic map tile The overall identification of road element.As shown in fig. 6, tile processing unit 52 may include:
Road element numbered cell 520, for the road element according to pre-set sequence to the specified type in the tile It is numbered, and the number is determined as local identities of the road element in tile;
Road element counting unit 521, the finger that the tile for calculating the number that number is less than the tile is included Determine the total quantity of the road element of type;
Road element summation unit 522 will for each road element for the specified type in the tile The local identities of the total quantity and the road element and value, be determined as the overall identification of the road element.
Optionally, if the road element of specified type is road topology point, road element numbered cell 520 is specifically used for Road topology point in the tile is numbered according to pre-set sequence, and the number is determined as the road topology point in tile In local identities;Road element counting unit 521 is specifically used for calculating for each road topology point in the tile Total quantity of the number less than the road topology point that the tile of the number of the tile is included;Road element summation unit 522 is specific For by the local identities of the total quantity and the road topology point and value, be determined as the global mark of the road topology point Know.
Similarly, if the road element of specified type is section, road element numbered cell 520 is specifically used for according to preset Section in the tile is numbered in sequence, and the number is determined as local identities of the section in tile;Road member Plain counting unit 521 is specifically used for calculating watt that number is less than the number of the tile for each section in the tile The total quantity in the section that piece is included;Road element summation unit 522 is specifically used for the office of the total quantity and the section Portion identifies and value, is determined as the overall identification in the section.
Optionally, the embodiment of the present application tile number unit 51 is specifically used for: according to electronic map from top to bottom, from a left side to Right sequence, is successively numbered tile according to incremental mode.
The road element numbered cell 520 according to pre-set sequence to the road element of the specified type in the tile into Row number is specifically used for: the sequence according to tile from top to bottom, from left to right, successively according to incremental mode in tile The road element of the specified type is numbered.
Specifically, the road element of specified type can be road topology point or section.
In general, can be incremented by one by one since 0 or 1 when number.Certainly, other than the number of digital form, also It can choose the number of other way, the application is without limiting.
Optionally, the embodiment of the present application also discloses a kind of alternative construction that above-mentioned bitmap establishes unit, as shown in fig. 7, The bitmap establishes unit 42
First bitmap establishes subelement 420, for establishing the road topology bitmap comprising N number of flag bit, wherein the N is The total quantity of positive integer and the road element more than or equal to specified type described in electronic map;
Second bitmap establishes subelement 421, for since first flag bit of the road topology bitmap, according to institute It states the sequence of the overall identification of the road element of specified type from small to large or from big to small and successively establishes overall identification and mark The one-to-one relationship of will position, wherein each flag bit is used to record the evaluation shape of the road element of its corresponding overall identification State identifier.
Optionally, if the road element of specified type is road topology point, the first bitmap is established subelement 420 and is specifically used In establishing the road topology bitmap comprising N number of flag bit, wherein the N is positive integer and opens up more than or equal to road in electronic map Flutter total quantity a little;Second bitmap establishes subelement 421 and is specifically used for opening from first flag bit of the road topology bitmap Begin, successively establishes overall identification and mark according to the overall identification sequence from small to large or from big to small of the road topology point The one-to-one relationship of will position, wherein each flag bit is used to record the evaluation of the road topology point of its corresponding overall identification Status identifier.
Similarly, if the road element of specified type is section, the first bitmap establishes subelement 420 and is specifically used for establishing packet Road topology bitmap containing N number of flag bit, wherein the N is positive integer and the total quantity for being more than or equal to section in electronic map; Second bitmap is established subelement 421 and is specifically used for since first flag bit of the road topology bitmap, according to the road The sequence of the overall identification of section from small to large or from big to small successively establishes the one-to-one relationship of overall identification and flag bit, Wherein each flag bit is used to record the evaluation status identifier in the section of its corresponding overall identification.
Optionally, the value for the evaluation status identifier that flag bit records in the road topology bitmap may include first Value and the second value, in which:
First value is that the value of status identifier is respectively evaluated when calculating road every time and starting, and the first value is for indicating The road element of the corresponding overall identification of flag bit is not selected as the road element in path to be calculated;
Second value be during calculating road, when road element is selected as the road element in path to be calculated, The value of the evaluation status identifier of the corresponding flag bit of road element overall identification, the second value is for indicating flag bit pair The road element for the overall identification answered is selected as the road element in path to be calculated.
Specifically, the road element of specified type can be road topology point, or be section.
Electronic map spatial index provided by the embodiments of the present application establishes device, the tile that includes according to electronic map and watt The road element for the specified type for including in piece establishes the overall identification of each road element of the specified type in each tile, To show unique global identification of the road element in electronic map, each road element of specified type in electronic map is utilized Overall identification establishes road topology bitmap, and whether record has road element during once calculating road in road topology bitmap It is selected the flag bit of the road element for path to be calculated, namely shows whether road element is evaluated.Therefore, in path When calculating, it directly can directly determine whether road element is evaluated by the flag bit in road topology bitmap, not need Simultaneously poll openlist table and closedlist table are established, to substantially increase the efficiency of path computing.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except there is also other identical elements in the process, method, article or apparatus that includes the element.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with other The difference of embodiment, the same or similar parts in each embodiment may refer to each other.
The foregoing description of the disclosed embodiments makes professional and technical personnel in the field can be realized or use the application. Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the application.Therefore, the application It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest scope of cause.

Claims (10)

1. a kind of electronic map spatial index method for building up characterized by comprising
The road element for the specified type for including in the tile and tile for including according to electronic map generates the finger in each tile Determine the overall identification of each road element of type, the overall identification is used to show that road element to be unique complete in electronic map Office's mark;
The overall identification of each road element of the specified type according to electronic map establishes the road topology comprising flag bit Bitmap, whether the flag bit is used to record road element in the road topology bitmap selected during once calculating road For the road element in path to be calculated, the flag bit and the overall identification have one-to-one relationship.
2. the method according to claim 1, wherein including in the tile and tile that include according to electronic map The road element of specified type generates the overall identification of each road element of the specified type in each tile, specifically includes:
The tile in electronic map is numbered according to pre-set sequence;
For each of electronic map tile, following step is executed:
It is numbered, and the number is determined as described according to road element of the pre-set sequence to the specified type in the tile Local identities of the road element in tile;
Calculate total quantity of the number less than the road element for the specified type that the tile of the number of the tile is included;
For each road element of the specified type in the tile, by the office of the total quantity and the road element Portion identifies and value, is determined as the overall identification of the road element.
3. according to the method described in claim 2, it is characterized in that, it is described according to pre-set sequence to the tile in electronic map into Row number specifically includes:
Sequence according to electronic map from top to bottom, from left to right is successively numbered tile according to incremental mode;
It is described to be numbered according to road element of the pre-set sequence to the specified type in the tile, it specifically includes:
Sequence according to tile from top to bottom, from left to right, successively according to incremental mode to the specified type in tile Road element be numbered.
4. described in any item methods according to claim 1~3, which is characterized in that the specified type according to electronic map Each road element overall identification, establish include flag bit road topology bitmap, specifically include:
The road topology bitmap comprising N number of flag bit is established, wherein the N is positive integer and is more than or equal to described in electronic map The total quantity of the road element of specified type;
Since first flag bit of the road topology bitmap, according to the overall identification of the road element of the specified type Sequence from small to large or from big to small successively establishes the one-to-one relationship of overall identification and flag bit, and wherein each is marked Will position is used to record the evaluation status identifier of the road element of its corresponding overall identification.
5. according to the method described in claim 4, it is characterized in that, the evaluation shape that flag bit records in the road topology bitmap The value of state identifier includes the first value and the second value, in which:
First value is that the value of status identifier is respectively evaluated when calculating road every time and starting, and the first value is for indicating mark The road element of the corresponding overall identification in position is not selected as the road element in path to be calculated;
Second value be during calculating road, when road element is selected as the road element in path to be calculated, the road The value of the evaluation status identifier of the corresponding flag bit of road element overall identification, the second value is for indicating that flag bit is corresponding The road element of overall identification is selected as the road element in path to be calculated.
6. a kind of electronic map spatial index establishes device characterized by comprising
Overall identification generation unit, the road member for the specified type for including in the tile and tile for including according to electronic map Element generates the overall identification of each road element of the specified type in each tile, and the overall identification is for showing road member Unique global identification of the element in electronic map;
Bitmap establishes unit, the overall identification of each road element for the specified type according to electronic map, establishes packet Whether road topology bitmap containing flag bit, the flag bit are used to record road element in the road topology bitmap one It is selected during the road Ci Suan as the road element in path to be calculated, the flag bit and the overall identification with one-to-one correspondence Relationship.
7. device according to claim 6, which is characterized in that the overall identification generation unit includes:
Tile number unit, for the tile in electronic map to be numbered according to pre-set sequence;
Tile processing unit generates road element in the tile for being handled for each of electronic map tile Overall identification comprising:
Road element numbered cell, for being compiled according to road element of the pre-set sequence to the specified type in the tile Number, and the number is determined as local identities of the road element in tile;
Road element counting unit, the specified type that the tile for calculating the number that number is less than the tile is included The total quantity of road element;
Road element summation unit will be described total for each road element for the specified type in the tile The local identities of quantity and the road element and value, be determined as the overall identification of the road element.
8. device according to claim 7, which is characterized in that the tile number unit is specifically used for:
Sequence according to electronic map from top to bottom, from left to right is successively numbered tile according to incremental mode;
The road element numbered cell is numbered according to road element of the pre-set sequence to the specified type in the tile, It is specifically used for:
Sequence according to tile from top to bottom, from left to right, successively according to incremental mode to the specified type in tile Road element be numbered.
9. according to the described in any item devices of claim 6~8, which is characterized in that the bitmap establishes unit and includes:
First bitmap establishes subelement, for establishing the road topology bitmap comprising N number of flag bit, wherein the N is positive integer And it is more than or equal to the total quantity of the road element of specified type described in electronic map;
Second bitmap establishes subelement, for being specified since first flag bit of the road topology bitmap according to described The sequence of the overall identification of the road element of type from small to large or from big to small successively establishes overall identification and flag bit One-to-one relationship, wherein each flag bit is used to record the evaluation status indicator of the road element of its corresponding overall identification Symbol.
10. device according to claim 9, which is characterized in that the evaluation that flag bit records in the road topology bitmap The value of status identifier includes the first value and the second value, in which:
First value is that the value of status identifier is respectively evaluated when calculating road every time and starting, and the first value is for indicating mark The road element of the corresponding overall identification in position is not selected as the road element in path to be calculated;
Second value be during calculating road, when road element is selected as the road element in path to be calculated, the road The value of the evaluation status identifier of the corresponding flag bit of road element overall identification, the second value is for indicating that flag bit is corresponding The road element of overall identification is selected as the road element in path to be calculated.
CN201510024849.7A 2015-01-19 2015-01-19 A kind of electronic map spatial index method for building up and device Active CN105868189B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510024849.7A CN105868189B (en) 2015-01-19 2015-01-19 A kind of electronic map spatial index method for building up and device
PCT/CN2016/071349 WO2016116031A1 (en) 2015-01-19 2016-01-19 Method and device for establishing spatial index of electronic map

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510024849.7A CN105868189B (en) 2015-01-19 2015-01-19 A kind of electronic map spatial index method for building up and device

Publications (2)

Publication Number Publication Date
CN105868189A CN105868189A (en) 2016-08-17
CN105868189B true CN105868189B (en) 2018-12-28

Family

ID=56416437

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510024849.7A Active CN105868189B (en) 2015-01-19 2015-01-19 A kind of electronic map spatial index method for building up and device

Country Status (2)

Country Link
CN (1) CN105868189B (en)
WO (1) WO2016116031A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108416050A (en) * 2018-03-19 2018-08-17 南京市测绘勘察研究院股份有限公司 A kind of map(Collection)Index quick preparation method
CN108981699B (en) * 2018-06-04 2022-02-08 上海木木机器人技术有限公司 Method for guiding airport line and robot
CN113721599B (en) * 2020-05-25 2023-10-20 华为技术有限公司 Positioning method and positioning device

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
NL2008690C2 (en) * 2011-04-25 2014-07-15 Google Inc Dynamic highlighting of geographic entities on electronic maps.
CN102306166A (en) * 2011-08-22 2012-01-04 河南理工大学 Mobile geographic information spatial index method
CN102818571B (en) * 2011-11-28 2015-04-29 北京乾图方园软件技术有限公司 Data hierarchy and organization method and device capable of fast displaying road conditions
CN103177577B (en) * 2011-12-26 2015-06-17 北京掌城科技有限公司 Dynamic traffic information service providing method based on map layer overlapping
CN103292817B (en) * 2012-02-23 2016-05-18 北京四维图新科技股份有限公司 In a kind of map of navigation electronic, avoid the differential data production method of redundant data
CN103365911B (en) * 2012-04-06 2017-05-24 腾讯科技(深圳)有限公司 Map space indexing method and system based on two dimension partitioned structure
CN103942258B (en) * 2014-03-20 2015-04-08 北京建筑大学 Streetscape image storing method and device based on road codes
CN104156407B (en) * 2014-07-29 2017-08-25 华为技术有限公司 Storage method, device and the storage device of index data
CN104156475B (en) * 2014-08-25 2018-06-01 中国联合网络通信集团有限公司 Geography information read method and device

Also Published As

Publication number Publication date
WO2016116031A1 (en) 2016-07-28
CN105868189A (en) 2016-08-17

Similar Documents

Publication Publication Date Title
CN105868189B (en) A kind of electronic map spatial index method for building up and device
KR101640461B1 (en) A method of resolving a location from encoded data representative thereof
WO2016095749A1 (en) Method and device for querying spatial object and establishing spatial index of electronic map
CN106557574B (en) Target address matching method and system based on tree structure
CN103326904B (en) A kind of fast network topology estimating method cognitive based on multiparameter
CN104931037A (en) Navigation prompting information generation method and device
DE602005025942D1 (en) Search method of the next user terminal for a telecommunication network and such a method using service node
CN102749084A (en) Path selecting method oriented to massive traffic information
CN108111965A (en) A kind of definite method and apparatus of base station location
CN105483244A (en) Super-long genome-based variation detection algorithm and detection system
CN105718489B (en) Houseclearing acquisition methods
CN103793470B (en) A kind of data processing method and device
JP5059132B2 (en) Regional information retrieval server and regional information retrieval method
CN108709561A (en) A kind of matching algorithm of the different scale data based on global road network feature
CN105203120A (en) Navigation route detecting and evaluating method and device
CN108259195A (en) The determining method and system of the coverage of anomalous event
CN104008205B (en) The querying method and system of a kind of contents construction
CN104239997A (en) Method for analyzing power failure range of power distribution network
CN104410508B (en) power line network topology perception method and device based on power line communication
CN105574183A (en) App (application) recommendation method based on collaborative filtering recommendation algorithm-KNN (K-nearest neighbor) classification algorithm
CN105488247A (en) K-mean community structure mining method and apparatus
CN104581937A (en) Node positioning method based on RSSI (received signal strength indicator)
CN108153885A (en) Chart interlock method, device, storage medium and electronic equipment
Bradly et al. Adsorption of neighbor-avoiding walks on the simple cubic lattice
CN103209452A (en) Wireless-route-oriented optimal selection method for Dijkstra and power-efficient gathering in sensor (PEGASISI) distance defining

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200513

Address after: 310052 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: Alibaba (China) Co.,Ltd.

Address before: 102200, No. 8, No., Changsheng Road, Changping District science and Technology Park, Beijing, China. 1-5

Patentee before: AUTONAVI SOFTWARE Co.,Ltd.