Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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 need to implement a WFS Server using Geo tools, I have an application developed in Java using a spatial database. I wish to develop a WFS service using GeoTools. As a first step, I am implementing the "GetCapabilities" functionality and generating information in GML, both GET and POST queries.

My idea is to use the Geotools classes, which will allow me to implement the following parts: Identification Service, Service Provider, Operation Metadata, etc., and then to generate a GML document to send to the client.

In using Geotools, the Geotools class started with GetCapabilitiesResponse ( and Class WFSCapabilities ( Could someone please help me with a reference, tutorial or a sample code, to know how to use it?

Patrick Morales

share|improve this question
Wouldn't it be easier to just use and customize Geoserver instead of coding all that from scratch? – R.K. Mar 4 '13 at 3:53
The getcapabilities response is in XML not GML - as R.K says look at GeoServer (it's built using GeoTools) and consider making your application a WPS or custom datastore – iant Mar 4 '13 at 8:34

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.