Sorry mate, traveling so I have not had a look at the user list. Often when working with data there will be small "gaps" so the result will not form a connected graph - making it unable to find a path between two locations. Try tracing through the code and watching where it returns null from.
It can be very tricky to clean up data to make it suitable for navigation, one trick is to use JTS precision model to "snap" all the points to a lower percision. The effect is similar to snapping points to a grid - and can sometimes help two points that were slightly apart to connect. You may also find that lines have been drawn so they *touch*, but do not have a node in common. Most of the expense in route finding goes into data cleanup of this nature. -- Jody Garnett On 2 June 2015 at 17:36, nacer med <ikbalna...@gmail.com> wrote: > sir i'm so sorry to bother u :) but i really i had no answer i searched > on google ,posted more than one time on mailing list and i've no answer > this my problem > i donwloads shapefile from osm converted with Qgis > when i tried to calcule the closest path it return null > i'm sure that the code is good because i tried with other shapefiles( just > download with exemple of code from net ) and give a good result > and again so sorry to bother u and thank u soo much sir > > 2015-04-20 21:50 GMT+02:00 nacer med <ikbalna...@gmail.com>: > >> and thank u soooo much >> >> 2015-04-20 21:50 GMT+02:00 nacer med <ikbalna...@gmail.com>: >> >>> sorry again :) >>> >>> 2015-04-20 19:53 GMT+02:00 Jody Garnett <jody.garn...@gmail.com>: >>> >>>> I am not quite sure how to help, we do have a user list for questions. >>>> The devel list is for people working on geotools. >>>> >>>> It could be you are asking about finding the shortest path between two >>>> locations, if so look at the graph >>>> <http://docs.geotools.org/stable/userguide.old/extension/graph/index.html> >>>> module >>>> >>>> -- >>>> Jody Garnett >>>> >>>> On 20 April 2015 at 10:15, nacer med <ikbalna...@gmail.com> wrote: >>>> >>>>> sorry more question :) : there is a way in geotools to get the closest >>>>> way ( itineraire ) beetween 2 location ??? ( ofcourse on Lineshape ) >>>>> and don't u tell me the best way to refrech the map ?? ( i'm working >>>>> with in every refrech i zoom_in or out so the application will consult >>>>> the >>>>> shapefile for the new data , is it good ?? of there is a good other way ) >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT >>>>> Develop your own process in accordance with the BPMN 2 standard >>>>> Learn Process modeling best practices with Bonita BPM through live >>>>> exercises >>>>> http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- >>>>> event?utm_ >>>>> source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF >>>>> _______________________________________________ >>>>> GeoTools-Devel mailing list >>>>> geotools-de...@lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/geotools-devel >>>>> >>>>> >>>> >>> >> >
------------------------------------------------------------------------------
_______________________________________________ GeoTools-GT2-Users mailing list GeoTools-GT2-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users