Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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

1 Answer 1

up vote 5 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.