Edges are the lines on your graph; nodes are the points where they meet up. The 
osm data is organised by data type (point, line, poly) - so you need to spend 
some time getting your data read - select out just the roads from 
planet_osm_line that you want to form your graph with. When you pass these 
lines into the GraphBuilder it will build a graph with edges and nodes; it is 
this structure that you find the shortest line in.

I a not sure you mentioned you were using OSM before? The tricky thing with all 
graph route finding stuff is data quality.

You may also wish to look at: 
http://geotoolsnews.blogspot.com/2010/05/open-trip-planner.html They have there 
own graph code internally; but they use geotools to load the data out of 
postgis if needed.

Jody


On 08/06/2010, at 10:38 PM, laura siewe wrote:

> Hello everybody,
> 
> In my PostGIS database, I have 6 tables: planet_osm_line, planet_osm_point, 
> planet_osm_polygon, planet_osm_roads, spatial_ref_sys, geometry_columns. I 
> don't have Nodes and Edges.
> 
> In the file.xml, I have node with latitude and longitude, I have also way but 
> not Edge.
> 
> This all the information I have. What do you mean by Nodes and Edges in this 
> informations. How can I do to have this in my PostGIS database?
> 
> Thanks for your help.
> 
> ------------------------------------------------------------------------------
> 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

Reply via email to