Highlight available paths between two points

88 views
Skip to first unread message

Dil

unread,
May 26, 2014, 10:37:41 AM5/26/14
to inasaf...@googlegroups.com
I'm new to qgis and very sorry if this is a simple question to ask. IS there a way to highlight the available paths (roads) between two selected points in a road map(in qgis) ? I want to find the possible routes between two points in map, which less than or equal to a specified distance. For example, highlighting the roads(paths) between point A and point B which are less than 5km (if available). And the two points are selected by the user on map, using mouse clicks.

Tim Sutton

unread,
May 26, 2014, 5:53:04 PM5/26/14
to inasaf...@googlegroups.com
Hi Dil


On Mon, May 26, 2014 at 4:37 PM, Dil <dilvit...@gmail.com> wrote:
I'm new to qgis and very sorry if this is a simple question to ask. IS there a way to highlight the available paths (roads) between two selected points in a road map(in qgis) ? I want to find the possible routes between two points in map, which less than or equal to a specified distance. For example, highlighting the roads(paths) between point A and point B which are less than 5km (if available). And the two points are selected by the user on map, using mouse clicks.

You can try using the 'road graph plugin. Enable it in the plugin manager:

Inline image 1
 

And then it will create a panel under the legend where you can define start and end points.

Inline image 2


However it won't do exactly what you are asking since it will show only the shortest routable path and not the longer alternatives and also not a threshold maximum distance.

Regards

Tim


--
Visit the InaSAFE project page at http://inasafe.org
Let us know of any issues you encounter at: https://github.com/AIFDR/inasafe/issues
---
You received this message because you are subscribed to the Google Groups "inasafe-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inasafe-user...@googlegroups.com.
To post to this group, send email to inasaf...@googlegroups.com.
Visit this group at http://groups.google.com/group/inasafe-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/inasafe-users/ff52ac50-9afa-4bb5-807f-baf580e606c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Tim Sutton
-------------------------------------------------------------------------------------------

Visit http://linfiniti.com to find out about:
 * QGIS programming services
 * GeoDjango web development
 * QGIS Training
 * FOSS Consulting Services
Skype: timlinux Irc: timlinux on #qgis at freenode.net
Tim is a member of the QGIS Project Steering Committee
-------------------------------------------------------------------------------------------

Dil

unread,
May 27, 2014, 1:20:33 AM5/27/14
to inasaf...@googlegroups.com
Thank you for the reply. Sir I'm building a plugin and I want to find those available paths for my plugin. Is there any algorithm I can use to do it?

Tim Sutton

unread,
May 27, 2014, 2:15:44 AM5/27/14
to inasaf...@googlegroups.com
Hi Dil


On Tue, May 27, 2014 at 7:20 AM, Dil <dilvit...@gmail.com> wrote:
Thank you for the reply. Sir I'm building a plugin and I want to find those available paths for my plugin. Is there any algorithm I can use to do it?

No need to call me sir! Tim will do fine :-) You can find out all the details of the python bindings for the roadgraph tool here:


By the way we have plans to integrate this library with InaSAFE to provide a tool to map routes between IDP camps and affected areas.

Regards

Tim
 

On Monday, May 26, 2014 8:07:41 PM UTC+5:30, Dil wrote:
I'm new to qgis and very sorry if this is a simple question to ask. IS there a way to highlight the available paths (roads) between two selected points in a road map(in qgis) ? I want to find the possible routes between two points in map, which less than or equal to a specified distance. For example, highlighting the roads(paths) between point A and point B which are less than 5km (if available). And the two points are selected by the user on map, using mouse clicks.

--
Visit the InaSAFE project page at http://inasafe.org
Let us know of any issues you encounter at: https://github.com/AIFDR/inasafe/issues
---
You received this message because you are subscribed to the Google Groups "inasafe-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inasafe-user...@googlegroups.com.
To post to this group, send email to inasaf...@googlegroups.com.
Visit this group at http://groups.google.com/group/inasafe-users.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages