Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have completed all the queries of the of pgRouting tutorial by Underdark where visualization was done with the help of RT SQL Layer Plugin. As I am using Windows OS I have no access of that tool. That is why I was unable to visualize the resultant layer of Shortest_path. If there any way to visualize this resultant layer through leaflet API it will be very helpful.

Thanks in advance.

share|improve this question
1  
may be useful gijs.github.com/blog/2012/12/16/… –  Sunil Feb 4 '13 at 7:04
    
Do you need Leaflet specifically or will any solution do? –  underdark Feb 4 '13 at 12:54
    
Thanks underdark for answering. If the solution can be given in Leaflet it would be more helpful to me. –  Devils Dream Feb 4 '13 at 13:17
    
I'm trying to understand if your goal is to simply see the route --> tell you how to install RT SQL Layer or similar tool for QGIS; or whether you actually need a webmapping solution --> try to find a Leaflet reference or provide link to existing OpenLayers solutions. –  underdark Feb 11 '13 at 7:12

2 Answers 2

Review stage:

  • QGIS with PostGIS Manager and RT Sql Layer plugins

Since you're on Windows you can simply install QGIS via OSGeo4WIn.

share|improve this answer
    
I have already installed QGIS but need the RT Sql Layer Plugins. –  Devils Dream Feb 4 '13 at 13:17
2  
You know how to install plugins? Go to 'plugins' 'fetch python plugins' and then make sure you add all the repositories. Search for the words you want. –  alexgleith Feb 7 '13 at 21:40

The tutorial uses QGis to display the results. This is a rich client application which contacts the database directly.

Leaflet runs in the browser and can, for instance, display GeoJSON data that it downloads from a webserver. The webserver fetches the data from the database, converts it to GeoJSON, and serves it to the browser.

If you really wish to use Leaflet to display the results, you're going to have to fill in this server tier. Depending on your OS, preferences and experience, you can take a pick from a broad range of solutions to do this.

Asp.Net, PHP, Node.js, Java servlet.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.