2

I have build an application using PostGIS, geoserver and openlayers2.12 and I am facing the following problem: When I add some data in my Postgis tables, geoserver doesn't get refreshed properly and the new data (lines and points) are not shown on the map. If I zoom in the map I get some parts of my new data (parts of lines and all the points). But when I zoom out I can not see anything. Also when I do "Layer Preview" I don't see the new geometries.

I tried to delete the cache of the layer and my browser..but no luck. What solves the problem is if I delete and then recreate the layer. Then everything its shown. But doing this I loose all my cache and the application becomes slow.

Any idea what It can cause this behavior?

  • Are the new features which you add still within the original extents of the layer? Do you get the added features with WFS GetFeature request? – user30184 Oct 2 '15 at 7:32
3

concerning your question about how to update the bounding-boxes:

Choose the layers menu:

enter image description here

--

Click on the layer in the layers list:

enter image description here

--

Recalculate the bounds

enter image description here

If the extent keeps changing you could perhaps try to set the extent manually to the world extent...

2

GeoServer comes bundled with GeoWebCache.

Have a go at truncating that cache.

Go to your GeoServer Admin Console in the web browser and choose the 'Tile Layers' section, then go to 'seed/truncate'. You can also do this directly with GWC by going to http://yourserver:8080/geoserver/gwc.

See below:

GeoServer Tile Layers

truncate GWC

  • 1
    I tried that but I still don't see the newly added information. I read here: gis.stackexchange.com/questions/16996/… that I might need to update the bounding box of the store but I don't know how to do this. Any idea? – user1919 Oct 2 '15 at 6:00
  • For sure one think I have to do is to recompute the Bounding Boxes (compute from data) inside the Layer options. – user1919 Oct 2 '15 at 6:09
  • Why exact bounding box is necessary for you? I would just make the initial BBOX so big that all data that will come in later for sure falls inside it. Only drawback I can imagine is too wide bounding box in WMS GetCapabilities. – user30184 Oct 2 '15 at 9:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.