trace map route

Topics: SharpMap Project
Mar 24, 2008 at 2:42 AM
is it possible to trace a point from a to b, (on a new layer or even using GDI) by interrogating the map for information between point a and b? So given two points that a user clicks on, I can query the map to find a valid path between those points and draw that path. The path may also need to cross sharpmap layers, i.e., I have a footpaths layer and a roads layer (among others).

btw, I am reading the map in from shapefiles and using VectorLayer

thanks,
maurice
Developer
Mar 24, 2008 at 7:51 AM
Routing is not included in SharpMap and is not so easy to add.

The way I would go about it is to use an external routing service and display the result in a separate layer.

If the route request returns something like this:
http://www.geoserver.nl/geoserver/voorbeelden/Routecoords.xml
You could parse it using the gml parsing that is part of the new WfsProvider and and display it using a GeometryProvider.