<div dir="ltr"><div>Hi Steve and Daniel,<br><br><br></div><div> You suggested extending the present algorithms such that its input can take more points and not only the source and destination . i think this can be implemented and i will soon come up with implementation details( kind of more technical ) .<br>
</div><div> <br> Can you be a liitle bit more elaborate about partioning data into spatial chunks or even suggest some readings . I can then come up with some better ideas about implementing it. <br><br></div>
<div> Daniel , i took a look at the oracle link that you provided but there was no details about how it has been implemented , it was more about how one can use it. May be a bit more search and luck might take me to its implementation document :) .<br>
<br></div><div> The other thing that you mentioned was about contraction Hierarchy . Still the nodes have to be ordered based on some criteria or according to their importance . We can use natural hierarchy present in the network for doing that . <br>
<br></div><div> i will be really grateful if anyone can correct me in case if my thought process in not on the right lane and sorry for the late reply as my academic session is in progress too .Meanwhile i am trying to get fluent with git ,cmake and other tools. <br>
</div><div>
<br></div><div>Thanks .<br><br></div><div>Mukul<br><br></div><div> <br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Apr 11, 2013 at 6:47 PM, Stephen Woodbridge <span dir="ltr"><<a href="mailto:woodbri@swoodbridge.com" target="_blank">woodbri@swoodbridge.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">With pgRouting, we do most things dynamically, here is the basic flow:<br>
<br>
1. Given a collection of input, points, nodes, or edges<br>
map these to nodes or edges depending on algorithm.<br>
<br>
2. Select the edges we need to build the graph<br>
<br>
3. build the graph and solve it<br>
<br>
4. return the results<br>
<br>
All our algorithms today only take start and end points. They could be extended to take points. Each "point" (I use "point" as a generic term because it might be a lat/lon, node id, edge id and offset, etc) would need to be mapped to the appropriate input need for any given algorithm.<br>
<br>
So for node based algorithms like Dijkstra,and astar it would get resolved to a node. For TRSP it would get mapped to the nearest edge and offset along that edge. Postgis has lots of handy tools for doing this.<br>
<br>
-Steve<div class="im"><br>
<br>
On 4/10/2013 10:50 PM, Mukul priya wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Thanks for the reply steve . i have already cloned the github repository<br>
and looking into various aspects of it .<br>
<br>
For IRNN querry implementation i think it is a good idea to sub divide<br>
the whole route and generate n+1 routes separately , say from S to F1 ,<br>
F1-F2 ,..... F(n-1)-Fn , Fn to D . i wanted to know if we have that kind<br>
of a data where each and every facility is mentioned on the map as a<br>
point (node ) . even if it is not directly connected to the road network<br>
we can basically treat it a pseudo node and then call the router . The<br>
other thing about optimization yes we can do that using spatial range<br>
querries suppose there are several instances of the same facility that a<br>
user wants to access then we can use spatial range querries to locate<br>
that facility which is the nearest.<br>
<br>
<br>
On Thu, Apr 11, 2013 at 1:42 AM, Stephen Woodbridge<br></div><div><div class="h5">
<<a href="mailto:woodbri@swoodbridge.com" target="_blank">woodbri@swoodbridge.com</a> <mailto:<a href="mailto:woodbri@swoodbridge.com" target="_blank">woodbri@swoodbridge.<u></u>com</a>>> wrote:<br>
<br>
On 4/10/2013 3:23 PM, Mukul priya wrote:<br>
<br>
<br>
Hi ,<br>
<br>
<br>
Hi Mukul,<br>
<br>
Thank you for your interest in pgRouting.<br>
<br>
I am a B.tech fourth year student at IIIT-Hyderabad<br>
pursuing a degree in computer science and engineering and i will<br>
be soon<br>
pursuing a Masters Degree in the field of Spatial Informatics<br>
and the<br>
research topic that i have been working on is *"In route nearest<br>
neighbour querries".*<br>
<br>
<br>
Last year i worked on a project that was funded by<br>
Honeywell technology solutions and it gave me a lot of insight about<br>
open source programming and industrial work culture.<br>
<br>
I was introduced to pgrouting by *Prof. Venkatesh Raghavan* who<br>
visited<br>
<br>
our college last summer. i have also used pgrouting for<br>
implementing one<br>
of my Honors project.<br>
<br>
i have gone through the updated ideas page and i am listing out<br>
a topic<br>
that i feel i can contribute to.<br>
<br>
*Idea *<br>
<br>
Network Partitioning<br>
<br>
A very simple method using which it can be done is :<br>
<br>
* *Existence of a natural Hierarchy*<br>
<br>
<br>
Generally road networks are organized such that there<br>
is some<br>
natural hierarchy for example if we look at the road network of<br>
USA we<br>
observe that there are national highways which connect multiple<br>
large<br>
regions , inter state roads connect places within these regions<br>
, multi<br>
lane roads connect city areas and then there are small roads to<br>
connect<br>
individual houses.<br>
<br>
so what we can do is first rank these classes that<br>
constitute the road network and then use the highest level roads to<br>
divide the road network into large regions enclosed by these<br>
roads. each<br>
of the divided regions can further be divided again using next lower<br>
level road.<br>
<br>
so suppose we have a road network which n classes of<br>
different roads then we can create a tree of depth n-1 where the<br>
root of<br>
the tree will represent the entire road network and children of<br>
the the<br>
root node will represent the area formed by partitioning the<br>
root using<br>
the level 1 ( highest ) edges and so on . the nodes will basically<br>
represent a smaller part of the road network.<br>
<br>
The idea seems to be very naive right now but if<br>
anyone can<br>
give some feedback whether it is achievable or not or may be suggest<br>
some modifications.<br>
<br>
<br>
Yes this is the basics of how this could work. Because we build our<br>
graphs dynamically for each route request, we can do something like<br>
this today. Typically you have to feed the route request and SQL<br>
query that provides the edges needed to build the graph and this can<br>
be simply the bounding box of the start and end point of the route<br>
expanded slightly to allow the route move outside that bounds by a<br>
little if needed. A case in point are start and end points that form<br>
a vertical of horizontal line.<br>
<br>
So for the natural hierarchy, you can for a SQL query like:<br>
<br>
select * from edges where st_dwithin(the_geom, start_pnt, radius)<br>
union<br>
select * from edges where st_dwithin(the_geom, end_pnt, radius)<br>
union<br>
select * from edges<br></div></div>
where st_expand(st_makeline(start___<u></u>pnt, end_pnt), pct)<div><div class="h5"><br>
and road_class < 4;<br>
<br>
So this gets all edges regardless of class at the start and end and<br>
then gets all the major roads and highways between the start and end<br>
points. We can dynamically select the edges that we want when we<br>
build the graph.<br>
<br>
Regardless of how you implement the routing, the problem is all<br>
about the data. If you have a road segment the is misqualified, you<br>
might end up with a network that is broken between start and end.<br>
This can alsoo happen if ramps are not coded correctly.<br>
<br>
One of the challenges we have today is that we have to be able to<br>
construct the whole graph in memory before we can start routing.<br>
This is ok for small areas but it is a problem if you want to<br>
generate a route between say Miami, Florida and Seattle, Washington.<br>
An interesting problem would be the ability to partition the data in<br>
spatial chucks and only load them as the solver needed them.<br>
<br>
If you think about your edges sorted into say 1 degree grid partitions,<br>
then you load the partition for the start point and start routing<br>
using A* search, when you frontier get to an edge of the grid you<br>
are in, then you load the adjacent grid and continue, if you bump<br>
into another grid boundary that is not loaded yet, you load, if it<br>
is already loaded you continue. Anyway food for thought! :)<br>
<br>
<br>
In route nearest neighbour querries( IRNN) which<br>
handle<br>
querries like computation of shortest path , provided that the user<br>
wants to visit facilities F1 , F2 ,.....FN while he/she drives<br>
or walks<br>
from source to destination. Network partitioning can optimize these<br>
computations too as the search space reduces significantly once<br>
we have<br>
the partitions. Handling such querries have not been implemented<br>
yet. It<br>
will be very helpful if we can have some discussion about whether<br>
implementing it is feasible or not.<br>
<br>
<br>
What is we just added via support to routing? Then we could do<br>
something like say generate a route: Start, F1, F2, ... Fn, End<br>
This would allow us to build a graph one time and then generate<br>
multiple sub-routes with in the graph. Today if you want to do that<br>
you have to generate n+1 routes and build the graph n+1 times. We<br>
could also do some preliminary optimization of the via points based<br>
on Euclidean distance using something like TSP before calling the<br>
router.<br>
<br>
<br>
<br>
It would be great if someone could give a general<br>
idea<br>
how to go about learning more about the areas mentioned with<br>
respect<br>
to the organization's projects.Specially suggest those ideas<br>
which the<br>
developers think are achievable for now . I will also be grateful if<br>
somebody can guide me regarding the development framework of<br>
pgrouting<br>
so that i get familiar with the whole framework in the coming days.<br>
<br>
<br>
I would clone the github repository and look at branch sew-devel-2_0<br>
this is our new tree structure and it has code, doc, and test all<br>
organized in a nice way that makes it easy to multiple contributors<br>
work with the tree.<br>
<br>
Ask questions, There is a tutorial floating around and lots of<br>
people that are will to help.<br>
<br>
-Steve<br>
<br>
Thank you .<br>
<br>
Mukul Priya<br>
Lab for spatial Informatics<br>
IIIT-Hyderabad<br>
<br>
<br></div></div>
______________________________<u></u>___________________<br>
pgrouting-dev mailing list<br>
<a href="mailto:pgrouting-dev@lists.osgeo.org" target="_blank">pgrouting-dev@lists.osgeo.org</a> <mailto:<a href="mailto:pgrouting-dev@lists.osgeo.org" target="_blank">pgrouting-dev@lists.<u></u>osgeo.org</a>><br>
<a href="http://lists.osgeo.org/__mailman/listinfo/pgrouting-dev" target="_blank">http://lists.osgeo.org/__<u></u>mailman/listinfo/pgrouting-dev</a><br>
<<a href="http://lists.osgeo.org/mailman/listinfo/pgrouting-dev" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/pgrouting-dev</a><u></u>><br>
<br>
<br>
______________________________<u></u>___________________<br>
pgrouting-dev mailing list<br>
<a href="mailto:pgrouting-dev@lists.osgeo.org" target="_blank">pgrouting-dev@lists.osgeo.org</a> <mailto:<a href="mailto:pgrouting-dev@lists.osgeo.org" target="_blank">pgrouting-dev@lists.<u></u>osgeo.org</a>><br>
<a href="http://lists.osgeo.org/__mailman/listinfo/pgrouting-dev" target="_blank">http://lists.osgeo.org/__<u></u>mailman/listinfo/pgrouting-dev</a><div class="im"><br>
<<a href="http://lists.osgeo.org/mailman/listinfo/pgrouting-dev" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/pgrouting-dev</a><u></u>><br>
<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
pgrouting-dev mailing list<br>
<a href="mailto:pgrouting-dev@lists.osgeo.org" target="_blank">pgrouting-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/pgrouting-dev" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/pgrouting-dev</a><br>
<br>
</div></blockquote><div class="HOEnZb"><div class="h5">
<br>
______________________________<u></u>_________________<br>
pgrouting-dev mailing list<br>
<a href="mailto:pgrouting-dev@lists.osgeo.org" target="_blank">pgrouting-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/pgrouting-dev" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/pgrouting-dev</a><br>
</div></div></blockquote></div><br></div>