It was for a client (when I was working at a different company) so I cannot
share. It took two geolocated points and found a route between them.
I do have some desktop code in uDig present in this module that you can review;
there is really nothing special between these two environments - we are
focusing on the mathmatical structure of a graph not on the user interface.
- http://svn.refractions.net/udig/udig/trunk/plugins/net.refractions.udig.graph/
Of interest is:
-
http://svn.refractions.net/udig/udig/trunk/plugins/net.refractions.udig.graph/src/net/refractions/udig/graph/internal/LineGraphOp.java
And:
-
http://svn.refractions.net/udig/udig/trunk/plugins/net.refractions.udig.graph/src/net/refractions/udig/graph/internal/FindPathOp.java
Drawing the graphs was straight forward:
-
http://svn.refractions.net/udig/udig/trunk/plugins/net.refractions.udig.graph/src/net/refractions/udig/graph/internal/GraphMapGraphic.java
Jody
On 10/06/2010, at 5:49 PM, Roman Isitua wrote:
> Hi,
>
> I will appreciate it if I can see sample code on using geotools graph module
> in a servlet with postgis for shortest path query. Where did u store ur
> topological data (nodes and edges) ? was it stored in a database ?
>
> Cheers,
>
> Roman.
>
> --- On Wed, 6/9/10, Jody Garnett <[email protected]> wrote:
>
> From: Jody Garnett <[email protected]>
> Subject: Re: [Geotools-gt2-users] Geotools+Djisktra module for server side app
> To: "Roman Isitua" <[email protected]>
> Cc: "geotools user mailing list" <[email protected]>
> Date: Wednesday, June 9, 2010, 7:38 AM
>
> Was not that complicated; postgis and servlet.
> Jody
>
> On 09/06/2010, at 11:53 PM, Roman Isitua wrote:
>
>> HI,
>>
>> Thanks. Can u give more details about how u implemented it in a server side
>> application ?Basic software architecture and database used.
>>
>> Cheers,
>>
>> Roman
>>
>> --- On Wed, 6/9/10, Jody Garnett <[email protected]> wrote:
>>
>> From: Jody Garnett <[email protected]>
>> Subject: Re: [Geotools-gt2-users] Geotools+Djisktra module for server side
>> app
>> To: "Roman Isitua" <[email protected]>
>> Cc: "geotools user mailing list" <[email protected]>
>> Date: Wednesday, June 9, 2010, 4:05 AM
>>
>> There is nothing desktop specific in the geotools graph module; I have used
>> it in both client and server applications.
>>
>> Jody
>>
>> On 09/06/2010, at 8:50 PM, Roman Isitua wrote:
>>
>>> HI,
>>>
>>> I will like to found out if Geotools+Djisktra module can be used for
>>> routing in a server side application whose clients are thin. (eg web
>>> browser). I know pgrouting is available but I am just asking if this is
>>> feasible. I read online that the Geotools+Djisktra module is an in memory
>>> tool and would not work properly in a situation where large data sets are
>>> required. I like the geotools api design and work would be faster if I can
>>> use it.
>>>
>>> How efficient will it be to store nodes and edges in my db and build a
>>> graph from that. Everyone's ideas will be appreciated.
>>>
>>> Cheers,
>>>
>>> Roman.
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> ThinkGeek and WIRED's GeekDad team up for the Ultimate
>>> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
>>> lucky parental unit. See the prize list and enter to win:
>>> http://p.sf.net/sfu/thinkgeek-promo_______________________________________________
>>> Geotools-gt2-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>>
>>
>
>
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users