Hi Jase, the first error you fixed properly, am XYNode will only be
created if you set a new GraphBuilder on the GraphGenerator via
GraphGenerator#setGraphBuilder.
For the second error, you need to cast to a LineString, instead of a
LineSegment. When a LineStringGraphGenerator is used to
Hi Justin,
Upon closer inspection on my database, I found that the roads have been
noded on the intersections. MOst of the roads I had a look shares a
common end point.
I proceeded on with using some of the algorithms that you suggested in
this mailing list. What I'm getting is a null pointer.
hi Justin,I'm not getting any errors. it's just that when i printed the value of p i got a null value.ThanksJaseOn 11/23/05,
Justin Deoliveira [EMAIL PROTECTED] wrote:
Hi Jase,Could you send the stack trace of the exception. Thanks.JustinJase wrote: Hi Justin, Upon closer inspection on my
Jase wrote:
The linestring graph generator does not take internal intersections of
lines into account when building the graph. What you will need to do as
a preprocessing step is run all of your line strings through a routine
that calculates when they intersect, and then splits them
I did some reading on JTS after Jody pointed me to the right direction. Here is what I would like to do...
I have a postgis database of roads which are in Linestrings. When
building the road network , I would like to node all road intersections
rather than having just the end points as nodes.
Hi Satya,Thanks for the heads on. I did more reading on graphing and have a better understanding now on some of the concepts.My intention is to load the graph once into memory and route from there. It has approximately 15000 features.
Before I dwell further, I've got a question. I looked through
The graphing package is not specific to roads. Indeed the relationship
is up to you to define. You could define it as touches with JTS, or
simply compare linestring endpoints, if you need it to inspect the
intersections (and if they are built or not) you can do that as well.
Justin is the
Hi jason,
Considering your Queries I think you have just begun the Work.
here is Somehting that i can Help you out with.
Do U want to Load the Graph Network at all times and Create a route for
Points A and B ?
This is the most Optimum way of Doing that cause ur Data Change would be minimum