Calculate the shortest path between two points on any polyline layer
Обсудить в форуме Комментариев 97
Road graph is a C++ plugin for QGIS, that calculates the shortest path between two points on any polyline layer and plots this path over the road network.
Contents
Source code of the plugin and ready to run binary files for both Windows and Linux are available via SVN.
Binary filesTo work with plugin under Windows you need:
To work with plugin under Linux you need:
We recommend to check md5sums after plugin download:
888c0ddf08384dde45a7e16ffeee6f8c roadgraphplugin.dll f48a317381c8d0ef5098f1918f835ca9 libroadgraphplugin.so
After installing you should run QGIS and enable the Road graph plugin in Plugin manager («Modules → Manage plugins»).
Source codeYou can obtain sources from SVN:
svn co http://svn.gis-lab.info/road-graph road-graph
Build instructions are located in the file INSTALL (or INSTALL.ru for Russian).
After plugin activation you will see additional panel on the left side of the main QGIS window:
Main features:
As a roads layer you can use any polyline vector layer in any QGIS supported format. Two lines with a common point are considered connected. WARNING: It is required to use layer CRS as project CRS while editing roads layer. This is due to the fact that recalculation of the coordinates between different CRS introduce some errors that can result in discontinuities, even when the «snapping» is used.
In the layer attribute table the folloving fields can be used:
If some fields don't have any value or do not exists — default values are used. You can change defaults and some plugin settings in plugin settings dialog.
You can select start and end points with special buttons
near the fields or enter coordinates by hand.
Pressing «Calculate» button will run shortest path calculation using optimization criterion, selected in «Criterion» combobox. Button «Export» allow you exporting calculated path into new vector layer, and button «Clear» will erase all fields, remove points and calculated path from map camvas.
Here is screenshot of the plugin in action.
If you want report a bug, make suggestion or have a question about the plugin, please contact us. Plugin author — Yakushev Sergey (stopa85).
Обсудить в форуме Комментариев 97
Последнее обновление: September 09 2021
Creation date: 15.01.2011
Author(s): Alexander Bruy
© GIS-Lab и авторы, 2002-2021. При использовании материалов сайта, ссылка на GIS-Lab и авторов обязательна. Содержание материалов - ответственность авторов. (подробнее).