<html><head></head><body><div class="ydp36cbd81ayahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div><span><span style="text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Consolas; font-size: 13.33px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: pre-wrap; orphans: 2; float: none; background-color: transparent;">Hello,<br><br>Is there a set of steps I can follow in QGIS and PostGIS in order to have QGIS act as an interactive frontend to data held in a PostGIS database? I can't quite find anything online to point me in the right direction, but by simple example I have some stops (bus) and associated timetable data stored. I can show the stops easily, but what I would like is to be able to click on a given stop and for an existing layer change (or new one be added) that shows the stops which are related to the selected one by a connecting route.<br><br>My initial thought is that I should have a second layer which is based on a dynamic query based on the selected stop. Maybe a table for results which is empty but on clicking on a stop, this is populated with routes associated with the stop and the QGIS view is refreshed to pick up the new content?<br><br>Can anyone get me started or point me at some docs that would get me going please?<br><br>Graeme

P.S. <span><span style="text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Consolas; font-size: 13.33px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: pre-wrap; orphans: 2; float: none; background-color: transparent;">Apologies if you saw this posted by me before from anothe email - but it seems to get blocked and I thought it might not have been picked up by others previously.<br></span></span></span></span><b></b><i></i><u></u><sub></sub><sup></sup><strike></strike><br></div></div></body></html>