wiki:CodeSamples/PHP/pgRoutingExample

This page is one of the MapGuide Community CodeSamples. Visit the CodeSamples page to view more!

pgRouting example

This code sample demonstrates how to integrate pgRouting with MapGuide using a simple shortest path calculation on a road network.

The code uses the GeoBase "National Road Network" dataset for British Columbia

Unzip the code into <your mapguide install directory>\<web extensions dir>\www (eg. C:\Program Files\OSGeo\MapGuide\Web\www)

Follow the setup instructions in the attached readme.txt file

More information about this code sample can be found here

NOTE: You will most likely need to edit the PostgreSQL credentials in Library://pg_routing/Data/postgis.FeatureSource before you can run the sample

Last modified 11 years ago Last modified on Apr 17, 2013, 7:28:39 AM

Attachments (3)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.