Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am having trouble using GeoServer to perform a shortest path analysis between two network points. My question is about connecting GeoServer with Java to a PostGIS/PostGres database.

I know that in MapServer we can use PHP functions like PG_CONNECT to connect and PG_QUERY to execute SQL queries... but what are the equivalent commands for GeoServer?

share|improve this question
Please don't shout. – Nathan W Aug 10 '11 at 7:25

for relatively fixed SQL Queries you can use the SQL Views functionality for more dynamic queries you might need to look at using WPS.

share|improve this answer

Your Answer


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.