[Geoserver-users] Routing Webservice and Geoserver

Hi,

For a project, I have to design a service architecture that receives start and end coordinates, calculates routes (using different routing algorithms) and displays the different routes. The algorithms are implemented (Java) and Geoserver is set up and displays pre-calculated routes that are stored in Postgis. The next step should be live calculation of routes. Preferably, the extra step of saving routing results into Postgis should be avoided. What kind of architecture would professional Geoserver users suggest for this application?

Thanks. Best wishes,
Anita
--
Sicherer, schneller und einfacher. Die aktuellen Internet-Browser -
jetzt kostenlos herunterladen! http://portal.gmx.net/de/go/atbrowser

Unfortunately at the moment geoserver does not rely offer any capabilities when it comes to routing. You will want to checkout opentriplannier for that.

http://opentripplanner.org/

-Justin

On 10-06-07 6:34 AM, Anita Graser wrote:

Hi,

For a project, I have to design a service architecture that receives start and end coordinates, calculates routes (using different routing algorithms) and displays the different routes. The algorithms are implemented (Java) and Geoserver is set up and displays pre-calculated routes that are stored in Postgis. The next step should be live calculation of routes. Preferably, the extra step of saving routing results into Postgis should be avoided. What kind of architecture would professional Geoserver users suggest for this application?

Thanks. Best wishes,
Anita

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

On Mon, Jun 7, 2010 at 8:34 AM, Anita Graser <anitagraser@anonymised.com> wrote:

Hi,

For a project, I have to design a service architecture that receives start and end coordinates, calculates routes (using different routing algorithms) and displays the different routes. The algorithms are implemented (Java) and Geoserver is set up and displays pre-calculated routes that are stored in Postgis. The next step should be live calculation of routes. Preferably, the extra step of saving routing results into Postgis should be avoided. What kind of architecture would professional Geoserver users suggest for this application?

You should be able to construct a WMS request (probably a POST) that
contains the feature (route) and style - There is a simple example at
http://geoserver.org/display/GEOSDOC/ComplexLabelingExample

Ian

--
Ian Turton

On Tue, Jun 15, 2010 at 2:20 PM, Anita Graser <anitagraser@anonymised.com> wrote:

Thank you Ian.
I gave the POST solution a try but unfortunately the performance is really
bad. The routes consist of hundreds of line elements and I have to create a
PropertyIsEqualTo rule for every one of them. Is there a way to express
something similar to the SQL statement: SELECT * FROM roads WHERE road_id IN
(123,456,789)? I couldn't find a suitable operator in the filter encoding
standard but probably geoserver developers have implemented such a
functionality.

Sounds like you need a better output from your routing engine - from
your post I assumed you had a linestring/multilinestring. But you
should be able to do what you need using a FID filter.

Ian

--
Ian Turton