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'm creating a data store in GeoServer from an OpenLayers DrawFeature control, using WFS-T to save the geometry into GeoServer. This works great, except the data store's bounding box doesn't get set in GeoServer. However, if you create a data store from a shapefile, the bounding box gets automatically set. I know you can go into the GeoServer admin page and tell it to calculate the bounding box, but I need a way to do it programmatically.

share|improve this question

Unfortunately there is no easy way to do it (no REST api and no URL hacking thanks to Wicket [pun intended]). In case you feel like coding, the source of the webui that handles the update of the bbox is in

share|improve this answer

You can also set the BoundingBox manually in GeoServer. If you can predict the bounds of your inserted data, you can set it beforehand. You could use for example the bounds of your country or region you are working with.

share|improve this answer

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.