CN102012908B - Method for inquiring visible moving neighbours objects in environment with barriers - Google Patents

Method for inquiring visible moving neighbours objects in environment with barriers Download PDF

Info

Publication number
CN102012908B
CN102012908B CN2010105454318A CN201010545431A CN102012908B CN 102012908 B CN102012908 B CN 102012908B CN 2010105454318 A CN2010105454318 A CN 2010105454318A CN 201010545431 A CN201010545431 A CN 201010545431A CN 102012908 B CN102012908 B CN 102012908B
Authority
CN
China
Prior art keywords
index
node
visual
time
neighbour
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.)
Expired - Fee Related
Application number
CN2010105454318A
Other languages
Chinese (zh)
Other versions
CN102012908A (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.)
Zhejiang University ZJU
Original Assignee
Zhejiang University ZJU
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 Zhejiang University ZJU filed Critical Zhejiang University ZJU
Priority to CN2010105454318A priority Critical patent/CN102012908B/en
Publication of CN102012908A publication Critical patent/CN102012908A/en
Application granted granted Critical
Publication of CN102012908B publication Critical patent/CN102012908B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method for inquiring visible neighbours of moving objects in the environment with barriers. The neighbour inquiry technology of the moving objects in a spatial database is utilized and the existing branch and bound algorithm is utilized to inquire the neighbours which are not blocked in the environment with barriers. In the spatial data, R-tree index is utilized for the barriers, TPR-tree index is utilized for the moving objects, the branch and bound algorithm is utilized to traverse the indexes, and meanwhile inquiry is realized by combining calculation of the blocking time of the moving objects. The method has the following beneficial effects: utilizing the existing indexing technology and the moving object neighbour inquiry technology in the spatial database and researches and achievements in the environment with barriers, providing the method of inquiring the moving objects which are not blocked in certain period in the environment with barriers, ensuring that the users can select the optimum inquiry time interval according to the application requirements and providing best performances.

Description

Visual mobile neighbour's querying method in the obstacle environment
Technical field
The present invention relates to index and inquiring technology in the spatial database, particularly relate to visual mobile neighbour's in a kind of obstacle environment querying method.
Background technology
Spatial database is the Database Systems of storage and management spatial data.In order to visit massive spatial data quickly and efficiently, experts and scholars have proposed a large amount of space index methods, and R tree index, R* tree index, K-D-B tree index, Hilbert curve index are wherein arranged.On this basis, various inquiries that differ from one another and solution thereof have been proposed more, like neighbour's inquiry, k nearest neighbor inquiry, neighbour's inquiry continuously, reverse neighbour's inquiry, neighbours' inquiry farthest, skyline inquiry.
Along with the high speed development of mobile communication technology and GPS service, in the human lives, mobile data is with unpredicted speed increment.So many application impels people to seek more efficient methods to handle mobile object, improves the search efficiency that moves object.Move at present object mainly through based on the TPR tree of linear function and based on the B of space filling curve xSetting these two types of index and mutation thereof handles.
In many inquiries of moving object, neighbour's inquiry is particularly important.It is the basis of other various neighbour's inquiries.The simplest, most popular at present processing mode is to carry out index with the TPR tree to moving object, adopts branch and bound method to seek nearest-neighbors.
At real world, there are many barriers inevitably, such as buildings, highland, forest, blocked people's sight line.Because the existence of these barriers; The nearest-neighbors that originally found can be blocked on very big probability; The neighbour who finds does not like this have much meanings in many application, this provides a kind of new method to go to seek that be not blocked, visual nearest-neighbors with regard to requiring.
Move the neighbour of object in the environment of clear at present and inquire about existing ripe solution, the neighbour inquiry of stationary objects in obstacle environment is arranged simultaneously also has many solutions.Under the situation of a large amount of shelters of considering at the same time to exist in movability and the environment of object, there is not a kind of suitable method to solve visual neighbour's inquiry.
Summary of the invention
The object of the present invention is to provide visual mobile neighbour's in a kind of obstacle environment querying method.
The step that the present invention solves the technical scheme that its technical matters adopts is following:
Step 1) adopts R tree index to static barrier object, adopts TPR tree index to moving object;
Step 2) safeguards a Priority Queues and a results list of depositing the employing tolerance of TPR tree index node, deposited the current candidate target that satisfies visual neighbour's condition in the tabulation;
Step 3) is put into Priority Queues with the root node of TPR tree, the index node that cyclic access formation metrics is minimum, metric calculation method and step 2) identical;
Step 4) utilizes R tree index to judge the visuality of TPR tree index node;
Step 5) joins each following in visual index node child node in the Priority Queues, ignores not visual index node;
There is not index node in step 6) in Priority Queues, the object in the results list is exactly the neighbour who in obstacle environment, moves object who obtains.
Described step 2) tolerance in refers in a period of time index node in the Priority Queues with the minor increment between the query point; The calculating of this tolerance, divide two kinds of situation to consider:
1) when index node be under the situation of mobile object, calculate with the minor increment in a period of time between the query point; Because moving object representation is the linear function about the time, according to mathematical principle, the distance table between the two is shown the quadratic function about the time, so should tolerance then be this quadratic function minimum value during this period of time;
2) when index node is the middle index node on the TPR tree; Because it is a quadrilateral that moves; Take all factors into consideration each bar limit; Obtaining this index node is a piecewise function with the distance of query point, and is based on the quadratic function of time at each, so this tolerance is this piecewise function minimum value during this period of time.
The visual step of calculating comprises in the described step 4):
1) obtains the orientation and the velocity information of current index node;
2), in R tree index, seek corresponding effective shutter body according to the during this period of time inswept scope of this index node;
3), calculate the visual effect of this TPR tree index node according to these effective shutter bodies;
4) the effective shutter body here is meant with respect to query point, can influence the shutter body of the visual effect of index node and mobile object.
Described step 5) is for being judged to not visual index node, and all the index child nodes under its index are not visual certainly, therefore need not to visit again down; And for being judged to visual index node, explain to have visual situation in the index child node under it; In this case, need to divide two kinds of situation to consider:
A) this node is middle index node: divided for three steps handled for the index child node under it under this situation:
A) relatively this index child node is followed the distance between the query point with distance between the query point with the candidate target of this time period in the results list; Obtain the former less time period of distance,, explain that then this index child node during this period of time can not be a neighbour, also need not following step b) if can not get;
B) ask for the common factor apart from the time period that obtains in a visual time period that step 4) obtains and the last step, in this occured simultaneously, this index child node just might be the visual neighbour of query point;
C) calculating this index child node under this occurs simultaneously, is added this index child node in the Priority Queues to as its tolerance with the minor increment of query point again;
B) this index node is to move object: this situation divided for three steps for the processing of this node:
A) relatively this node is followed the distance between the query point with distance between the query point with the candidate target of this time period in the results list; Obtain the former less time period of distance,, explain that then this index node during this period of time can not be a neighbour, also need not following step b) if can not get.
B) ask for the common factor apart from the time period that obtains in a visual time period that step 4) obtains and the last step, in this occured simultaneously, this index node just might be the visual neighbour of query point.
C) during time period of in back, obtaining occured simultaneously, this index node was current visual nearest-neighbors, so upgrade in the results list candidate neighbour during this period of time.
Described A), B) a) in relatively index node be divided into three steps with candidate target that should the time period in the results list with the distance between the query point with distance between the query point:
1), confirms each split time and corresponding candidate target thereof according to the results list;
2) according to described method under second kind of situation in the claim 2, the computation index node is with the distance of query point in each segmentation;
3) ask for index node with the time period of query point distance less than candidate target.
The candidate target of the current nearest-neighbors that obtains the c described B)) is updated to it in the results list; This renewal was divided into for four steps:
1), confirms each split time and corresponding candidate target thereof according to the results list;
2) confirm b in second step) time period of obtaining occurs simultaneously;
3) common factor of two time periods in step above the calculating;
4) be updated in the results list under the time period common factor that obtains with new candidate target.
The beneficial effect that the present invention has is:
The present invention has made full use of existing index technology in the spatial database, mobile object neighbour inquiring technology and the research under the obstacle environment has been arranged and realizing achievement; Provide and in the obstacle environment, inquired about the mobile object that is not stopped in certain period; The user can select the only inquiry period according to application demand, and performance offers the best.
Description of drawings
Fig. 1 is an implementation step process flow diagram of the present invention.
Fig. 2 moves object is inquired about the neighbour who is not blocked in obstacle environment principle of work synoptic diagram.
Embodiment
Combine accompanying drawing and specific embodiment that technical scheme of the present invention is described further at present.
1, as shown in Figure 1, practical implementation process of the present invention and principle of work are following:
Step 1) is carried out index to spatial data, promptly static barrier is adopted R tree index, adopts TPR tree index to moving object;
Step 2) safeguards a Priority Queues and a results list of depositing the employing tolerance of TPR tree index node, deposited the current candidate target that satisfies visual neighbour's condition in the tabulation;
The step 3) traversal moves object indexing, the root node of TPR tree is put into Priority Queues, the node that cyclic access formation metrics is minimum;
Step 4) utilizes R tree index to judge occlusion effect, the time that the computation index node is not blocked;
Step 5) is calculated the child node of visual index node with the distance between the query point, and it is joined in the Priority Queues, ignores not visual index node;
Step 6) is upgraded the results list, in Priority Queues, does not have index node, and the object in the results list is exactly the neighbour who in obstacle environment, moves object who obtains.
The object that needs among the present invention to handle has static barrier and mobile object, shown in the index module of Fig. 2, according to characteristic separately, in step 1), adopts R tree index and TPR tree index corresponding to barrier index among Fig. 2 and mobile object indexing respectively.
Step 2) tolerance in refers in a period of time index node in the Priority Queues with the minor increment between the query point; This tolerance is calculated gained by the distance calculation comparer shown in Fig. 2, and its computation process divides two kinds of situation to consider:
1) when index node be under the situation of mobile object, calculate with the minor increment in a period of time between the query point; Because moving object representation is the linear function about the time, according to mathematical principle, the distance table between the two is shown the quadratic function about the time, so should tolerance then be this quadratic function minimum value during this period of time;
2) when index node is the middle index node on the TPR tree; Because it is a quadrilateral that moves; Take all factors into consideration each bar limit; Obtaining this index node is a piecewise function with the distance of query point, and is based on the quadratic function of time at each, so this tolerance is this piecewise function minimum value during this period of time.
Step 3) is put into Priority Queues with the root node of TPR tree, and traversal moves object indexing, the node that cyclic access formation metrics is minimum, wherein tolerance and step 2) described in tolerance identical.
Next judge occlusion effect, the time that the computation index node is not blocked, calculate acquisition by the counter that blocks shown in Figure 2, the step that concrete visuality is calculated comprises:
1) obtains the orientation and the velocity information of current index node;
2), in R tree index, seek corresponding effective shutter body according to the during this period of time inswept scope of this index node;
3), calculate the visual effect of this TPR tree index node according to these effective shutter bodies;
4) the effective shutter body here is meant with respect to query point, can influence the shutter body of the visual effect of index node and mobile object.
For being judged to not visual index node, all the index child nodes under its index are not visual certainly, therefore need not to visit again down; And for being judged to visual index node, explain to have visual situation in the index child node under it; In this case, need to divide two kinds of situation to consider:
1) this node is middle index node: divided for three steps handled for the index child node under it under this situation:
A) relatively this index child node is followed the distance between the query point with distance between the query point with the candidate target of this time period in the results list; Obtain the former less time period of distance,, explain that then this index child node during this period of time can not be a neighbour, also need not following step b) if can not get;
B) ask for the common factor apart from the time period that obtains in a visual time period that step 4) obtains and the last step, in this occured simultaneously, this index child node just might be the visual neighbour of query point;
C) calculating this index child node under this occurs simultaneously, is added this index child node in the Priority Queues to as its tolerance with the minor increment of query point again;
2) this index node is to move object: this situation divided for three steps for the processing of this node:
A) relatively this node is followed the distance between the query point with distance between the query point with the candidate target of this time period in the results list; Obtain the former less time period of distance,, explain that then this index node during this period of time can not be a neighbour, also need not following step b) if can not get.
B) ask for the common factor apart from the time period that obtains in a visual time period that step 4) obtains and the last step, in this occured simultaneously, this index node just might be the visual neighbour of query point.
C) during time period of in back, obtaining occured simultaneously, this index node was current visual nearest-neighbors, so upgrade in the results list candidate neighbour during this period of time.
In the distance calculation comparer of Fig. 2 relatively index node with distance between the query point should the time period in the results list candidate target specifically be divided into for three steps with the distance between the query point:
1), confirms each split time and corresponding candidate target thereof according to the results list;
2), in the distance calculation comparer, calculate index node with the distance of query point in each segmentation according to described method under second kind of situation in the claim 2;
3) ask for index node with the time period of query point distance less than candidate target.
For the candidate target of the current nearest-neighbors that obtains, it is updated in the results list, to accomplish by the query processor of Fig. 2, update method specifically was divided into for four steps:
1), confirms each split time and corresponding candidate target thereof according to the results list;
2) pass through apart from comparer, the time period that calculates occurs simultaneously;
3) common factor of the time period that two steps obtained above the calculating;
4) be updated in the results list under the time period common factor that obtains with new candidate target.

Claims (6)

1. visual mobile neighbour's querying method in the obstacle environment is characterized in that the step of this method is following:
Step 1) adopts R tree index to static barrier object, adopts TPR tree index to moving object;
Step 2) safeguards a Priority Queues and a results list of depositing the employing tolerance of TPR tree index node, deposited the current candidate target that satisfies visual neighbour's condition in the tabulation;
Step 3) is put into Priority Queues with the root node of TPR tree, the index node that cyclic access formation metrics is minimum, metric calculation method and step 2) identical;
Step 4) utilizes R tree index to judge the visuality of TPR tree index node;
Step 5) joins each following in visual index node child node in the Priority Queues, ignores not visual index node;
There is not index node in step 6) in Priority Queues, the object in the results list is exactly the neighbour who in obstacle environment, moves object who obtains;
Described barrier is buildings, highland or forest.
2. visual mobile neighbour's querying method in a kind of obstacle environment according to claim 1 is characterized in that: the tolerance described step 2) refers in a period of time index node in the Priority Queues with the minor increment between the query point; The calculating of this tolerance, divide two kinds of situation to consider:
1) when index node be under the situation of mobile object, calculate with the minor increment in a period of time between the query point; Because moving object representation is the linear function about the time, according to mathematical principle, the distance table between the two is shown the quadratic function about the time, so should tolerance then be this quadratic function minimum value during this period of time;
2) when index node is the middle index node on the TPR tree; Because it is a quadrilateral that moves; Take all factors into consideration each bar limit; Obtaining this index node is a piecewise function with the distance of query point, and the distance in each piecewise interval is based on the quadratic function of time, so this tolerance is this piecewise function minimum value during this period of time.
3. visual mobile neighbour's querying method in a kind of obstacle environment according to claim 1 is characterized in that: the visual step of calculating comprises in the described step 4):
1) obtains the orientation and the velocity information of current index node;
2), in R tree index, seek corresponding effective shutter body according to the during this period of time inswept scope of this index node;
3), calculate the visual effect of this TPR tree index node according to these effective shutter bodies;
4) the effective shutter body here is meant with respect to query point, can influence the shutter body of the visual effect of index node and mobile object.
4. visual mobile neighbour's querying method in a kind of obstacle environment according to claim 1; It is characterized in that: described step 5) is for being judged to not visual index node; All index child nodes under its index are not visual certainly, therefore need not to visit again down; And for being judged to visual index node, explain to have visual situation in the index child node under it; In this case, need to divide two kinds of situation to consider:
1) this node is middle index node: divided for three steps handled for the index child node under it under this situation:
A) in step 2) a period of time in, relatively this index child node with distance between the query point with candidate target in the results list with the distance between the query point; Obtain the former less time period of distance,, explain that then this index child node during this period of time can not be a neighbour, also need not following step b) if can not get;
B) ask for the common factor apart from the time period that obtains in a visual time period that step 4) obtains and the last step, in this occured simultaneously, this index child node just might be the visual neighbour of query point;
C) calculating this index child node under this occurs simultaneously, is added this index child node in the Priority Queues to as its tolerance with the minor increment of query point again;
2) this index node is to move object: this situation divided for three steps for the processing of this node:
A) relatively this node is followed the distance between the query point with distance between the query point with the candidate target of this time period in the results list; Obtain the former less time period of distance,, explain that then this index node during this period of time can not be a neighbour, also need not following step b) if can not get;
B) ask for the common factor apart from the time period that obtains in a visual time period that step 4) obtains and the last step, in this occured simultaneously, this index node just might be the visual neighbour of query point;
C) during time period of in back, obtaining occured simultaneously, this index node was current visual nearest-neighbors, so upgrade in the results list candidate neighbour during this period of time.
5. visual mobile neighbour's querying method in a kind of obstacle environment according to claim 4 is characterized in that: described two situation 1), 2) in a) in relatively index node be divided into three steps with candidate target that should the time period in the results list with the distance between the query point with distance between the query point:
1), confirms each split time and corresponding candidate target thereof according to the results list;
2) according to described method under second kind of situation in the claim 2, the computation index node is with the distance of query point in each segmentation;
3) ask for index node with the time period of query point distance less than candidate target.
6. visual mobile neighbour's querying method in a kind of obstacle environment according to claim 4 is characterized in that: the candidate target of the current nearest-neighbors that obtains described c in second kind of situation) is updated to it in the results list; This renewal was divided into for four steps:
1), confirms each split time and corresponding candidate target thereof according to the results list;
2) confirm second kind of b in the situation) time period of obtaining occurs simultaneously;
3) common factor of two time periods in step above the calculating;
4) be updated in the results list under the time period common factor that obtains with new candidate target.
CN2010105454318A 2010-11-12 2010-11-12 Method for inquiring visible moving neighbours objects in environment with barriers Expired - Fee Related CN102012908B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010105454318A CN102012908B (en) 2010-11-12 2010-11-12 Method for inquiring visible moving neighbours objects in environment with barriers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010105454318A CN102012908B (en) 2010-11-12 2010-11-12 Method for inquiring visible moving neighbours objects in environment with barriers

Publications (2)

Publication Number Publication Date
CN102012908A CN102012908A (en) 2011-04-13
CN102012908B true CN102012908B (en) 2012-11-21

Family

ID=43843081

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010105454318A Expired - Fee Related CN102012908B (en) 2010-11-12 2010-11-12 Method for inquiring visible moving neighbours objects in environment with barriers

Country Status (1)

Country Link
CN (1) CN102012908B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102646118B (en) * 2012-02-20 2014-11-05 浪潮(北京)电子信息产业有限公司 Data indexing method and device
CN103106280B (en) * 2013-02-22 2016-04-27 浙江大学 A kind of range query method of uncertain space-time trajectory data under road network environment
CN103365984B (en) * 2013-07-04 2016-08-10 上海交通大学 Obtain the terrestrial reference method and system of the most farthest single neighbours on road network
CN106970983B (en) * 2017-03-29 2020-02-21 东北大学 Verification method for anti-farthest neighbors in outsourced space database
EP3623844A4 (en) * 2017-06-02 2020-05-20 Huawei Technologies Co., Ltd. Obstacle detection method and device
CN112989228B (en) * 2021-04-25 2021-08-27 湖南视觉伟业智能科技有限公司 Distributed space-time query method and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6446068B1 (en) * 1999-11-15 2002-09-03 Chris Alan Kortge System and method of finding near neighbors in large metric space databases
US6661922B1 (en) * 2000-06-21 2003-12-09 Hewlett-Packard Development Company, L.P. Method of determining a nearest numerical neighbor point in multi-dimensional space
US6947869B2 (en) * 2002-03-29 2005-09-20 The United States Of America As Represented By The Secretary Of The Navy Efficient near neighbor search (ENN-search) method for high dimensional data sets with noise
CN101404061B (en) * 2008-11-12 2012-04-25 山东理工大学 Three-dimensional dispersion point cloud topological neighbor data query method
CN101430693B (en) * 2008-11-12 2010-08-11 山东理工大学 Spacing query method for triangular gridding curve model

Also Published As

Publication number Publication date
CN102012908A (en) 2011-04-13

Similar Documents

Publication Publication Date Title
CN102012908B (en) Method for inquiring visible moving neighbours objects in environment with barriers
CN102289466B (en) K-nearest neighbor searching method based on regional coverage
CN101510225B (en) STL model boolean operation method of products
CN106528815B (en) A kind of road network mobile object probability Aggregation Query method and system
Lin et al. Range-based skyline queries in mobile environments
CN107145526B (en) Reverse-nearest neighbor query processing method for geographic social keywords under road network
KR20150077423A (en) Method for generating a dataset structure for location-based services and method and system for providing location-based services to a mobile device
CN110222029A (en) A kind of big data multidimensional analysis computational efficiency method for improving and system
CN109902711B (en) K-nearest neighbor query algorithm for moving object on time-dependent road network
CN106408124A (en) Moving path hybrid forecasting method oriented to data sparse environment
CN101430693B (en) Spacing query method for triangular gridding curve model
CN106570062A (en) System and method for querying uncertain moving object range of road network trajectory
CN104346444A (en) Optimum site selection method based on road network reverse spatial keyword query
Du et al. Spatio-temporal data index model of moving objects on fixed networks using hbase
CN101916301B (en) Three-dimensional spatial data adaptive pre-scheduling method based on spatial relationship
CN102043857B (en) All-nearest-neighbor query method and system
CN103778196B (en) Optical location method based on double-color reverse nearest neighbor query
CN104794175A (en) Optimal scenic spot and hotel pairing method based on measurement k closest pair
CN107679127A (en) Point cloud information parallel extraction method and its system based on geographical position
CN104606886A (en) Distributed collision-free movement planning method
CN115809360B (en) Real-time space connection query method for large-scale space-time data and related equipment
CN111353107A (en) Road network moving object-oriented continuous k neighbor query method and system
CN102156754B (en) Web object search method based on visibility
CN101984433B (en) Convexity based multiple spots far neighbor querying method
Schmiegelt et al. Continuous queries on trajectories of moving objects

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20121121

Termination date: 20211112