I really appreciate it man :D you helped me a lot :D :D :D
On Mon, Mar 7, 2011 at 5:06 PM, PaulCrease <paul.e.cre...@gmail.com> wrote:
> H Mounir, I have recently done something similar and managed to do part of
> what you require, I can take an origin and destination and calculate a route
> between them and return a feature (representing the route) based on the Path
> object returned. I have a blog where I save useful stuff that I otherwise
> might forget. Here is the link (
> http://usefulpracticalgeoblog.blogspot.com/search?updated-min=2011-01-01T00:00:00-08:00&updated-max=2012-01-01T00:00:00-08:00&max-results=1).
> The code is heavily commented to help you hopefully understand what is going
> on and can be downloaded, along with example shapefiles, from my GooglePages
> website The code does the following :- - finds closest graph node to
> coordinate tuples representing destination and origin - calculates route -
> generates a feature with a geometry representing the route, a cost
> representing the distance and also an objectID - feeds all the routes (if
> multiple there are destinations) into a featurecollection that can then be
> drawn As for your coloring, I suggest you take the featurecollection
> returned and apply a style to it that is different from your road network
> and then draw it on top. That is how I have tackled that problem anyway :-)
> I hope it helps you. Kind Regards, Paul
> ------------------------------
> View this message in context: Re: Graph shortest path
> help<http://osgeo-org.1803224.n2.nabble.com/Graph-shortest-path-help-tp6068330p6097623.html>
> Sent from the geotools-gt2-users mailing list
> archive<http://osgeo-org.1803224.n2.nabble.com/geotools-gt2-users-f1936685.html>at
> Nabble.com.
>
>
> ------------------------------------------------------------------------------
> What You Don't Know About Data Connectivity CAN Hurt You
> This paper provides an overview of data connectivity, details
> its effect on application quality, and explores various alternative
> solutions. http://p.sf.net/sfu/progress-d2d
> _______________________________________________
> Geotools-gt2-users mailing list
> Geotools-gt2-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
>
------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users