I have spatial function in my PostgreSQL/PostGIS DB that when sent a set of coordinates (Long Lat) returns single value. I am not a web developer but I would like to serve the function up as a web service.

GeoServer and Apache Tomcat are currently installed on the same server.

Is there is way to use the existing infrastructure to call the function?

2 Answers 2


If you're able to install a new service, you can use pg_featureserv to do this.


You can install an additional service https://github.com/PostgREST/postgrest and call it using the API

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.