Hello all,
I'm using geotools 14.3 with swing to load two shape files. A road network
and a node network (road junctions).
Objective
I want to calculate the shortest path from each node to every other node.
I've used python with QGIS to successfully do this. But now I want to
achieve this programatically using GeoTools. I've been following this
<http://docs.geotools.org/stable/userguide.old/extension/graph/index.html>
tutorial.
I've followed up to graph building, now I want to calculate shortest path.
But it's a bit unclear for me on selecting nodes.
//find a source node (usually your user chooses one)Node start = ..
How could I select a node from my point shapefile? Any examples is highly
appreciated.
Thank you for your valuable time.
--
regards,
*Thilina Yapa Bandara*
(*ආයුබෝවන් *- May All Beings Live Long)
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users