From: Nick M. <N.M...@le...> - 2011-10-05 07:30:52
|
Hi Harshad, My experience with the generator is that it only takes care of intersections if the two lines that meet actually end at the intersection point. E.g. if you have line objects that cross but don't break then the generator won't know that they should be linked in the graph. In my work I had to pre-process a road network so that each line is broken at intersection points. There's a tool to do this in ArcMap (I can't remember the name but could find it out if you want) or it is fairly straightforward using geotools - see the splitLinesAtIntersections() function around line 240 here: http://geocrimedata.svn.sourceforge.net/viewvc/geocrimedata/SpatialAnalysis/src/main/java/uk/ac/leeds/ccg/spatialanalysis/spacesyntax/SpaceSyntax.java?revision=9&view=markup Nick -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Reg-AStarShortestPathFinder-Class-in-Geotools-tp6861102p6861266.html Sent from the geotools-gt2-users mailing list archive at Nabble.com. |