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

Im currently running a GeoServer and my task is to make the vectors rougher thant they are right now. I really dont know where and how the Geoserver processes the data from the DB and how it will be displayed.

I want to do this to speed up the render time for loading the map. If the server uses 20 points right now, i want it to use 10 for example.

I dont know where to start. If my information provided is not enough, just tell me and ill tell everything you want to know.

Thanks alot.

share|improve this question

Using the GeoTools feature-pregeneralized module:

share|improve this answer
Hi thanks for the quick answer. As I understand it the tutorial is working with shapefiles. i have my datastore configured from a postgis database where the information is stored. sorry if my question is not asked proper, but im new to geoserver and stuff im currently learning. – shitake83 Dec 6 '10 at 16:06
Instead of a file url you need to use a jdbc url. E.g. jdbc:postgresql:database or jdbc:postgresql://host:port/database – Sean Dec 6 '10 at 16:27
It is a GeoServer module (not GeoTools) – iant Dec 6 '10 at 16:32
as above iant & Sean – Mapperz Dec 6 '10 at 17:19

GeoServer won't simplify the data for you. You'll have to do that outside of GeoServer. Create the levels of generalization that you want then follow the instructions in Mapperz's link.

How to simplify them depends on the tools you have available. In PostGIS, use the method Paul Ramsey describes in another question. In ArGIS Desktop there is a Simplify Polygon tool (use the Resolve Errors option).

share|improve this answer
i dont really understand the way hes trying to do it. can you help me ? – shitake83 Dec 6 '10 at 16:57
it takes a congested polygon (lots of vertices) and converts it to lines where it is generalised (vertices removed) then rebuilds the simplified lines back to a polygon - the point is use to carry the attributes between the original poly to the newer simplified polygon. – Mapperz Dec 6 '10 at 21:20
He dumps the polygons as rings (ST_DumpRings) which gives exterior and interior rings. Then he unions those rings so that the simplify on works on one copy of the boundary between to polys. Then, he simplifies the rings and recreates the polygons. This creates a collection of polygons that are dumped into a table as individual polygons. However, this whole process has stripped away the attribute data. So, the new polygons are joined to a point on the surface of the old polygons to get the attribute data onto the new polygons. If you have access to ArcGIS or QGIS it might be easier. – Sean Dec 6 '10 at 21:35

creates a layer in geoserver using SQL View. In SQL query, use postgis function to simplify the geometry. I do not know if it will improve the total time, but time to create tile is sure to be improved.

share|improve this answer

Thanks for all the responses.

Ive researched ArcGis (cost $$$) and QGis and i think im going for QGis but the one thing i dont get with QGis is how i could manipulate my data inside my database that im using right now. If ArcGis has an implementation for such isnt there an OpenSource Program that does the same thing ??

Sorry, but i didnt think it would be that complicated, but im willing to try!

share|improve this answer
Don't post more questions as answers to your own question. Post another question to the site. – Sean Dec 7 '10 at 14:34
sorry im new to this page :) – shitake83 Dec 7 '10 at 14:46

Your Answer


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