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 have a geoserver with a postgis database on one server and an Java application on a different server.

Now I need to connect these two servers so that the Java application can manage (create, alter and remove features) on the geo server.

I thought about implementing REST web services for the communication between the servers. But then I thought that WFS-T could be sufficient. Now the question.

Are there any Java client implementations for WFS-T available?

share|improve this question
up vote 7 down vote accepted

The GeoTools library supports WFS-T.

By using the class org.geotools.data.wfs.WFSDataStoreFactory you can connect to a WFS service. A transaction can be created using any class that implements the interface org.geotools.data.Transaction, for instance, the class org.geotools.data.DefaultTransaction.

GeoTools has also classes that will allow you to work with features, filters and expressions.

An example of WFS-T update request using GeoTools can be found here.

share|improve this answer

Your Answer

 
discard

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.