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 need to create a new gis application with OpenLayers and PostGIS.

I think that Geotools is a good choice for the Layer between these two. I thought about embedding geotools in a web application

Now I need same samples to understand how geotools can be used together with OpenLayers.

Everything I found so far is good for developing a Java client application and of course for receiving and processing geo objects, but nothing that could help to build a web application.

Where should I continue to look?

share|improve this question

Look at GeoServer which will probably provide the solution you need out of the box and will provide plenty of code samples if you really need.

share|improve this answer
I cannot use GeoServer since I have to authorize some objects on row level and GeoServer is only able to provide authorization on layer level. :-( – I. Gona Jul 6 '12 at 13:35
GeoServer will remain your best source of example code using GeoTools for web services – iant Jul 6 '12 at 14:06
ok, that requires that I have to understand the structure of geoserver and geotools at the same time. Since I'm lost in all the pages of geoserver and geotools, do You have an idea where exactly I can find an example of an implementation which provides WMS or an other service for a web client - like the nich beginner tutorial with the java application that displays the wolrd shape ? – I. Gona Jul 6 '12 at 14:55

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.