wiki:CodeSamples/PHP/pgRoutingExample

Version 2 (modified by jng, 11 years ago) ( diff )

--

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

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

Attachments (3)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.