I may be wrong, but my impression (biased by the meaning of the WMS
layer bounds in the spec) is that the bounds you declare for the layer
are purely informative and intend to declare what the area of validity
for the Layer/FeatureType is. In any case it has to be accurate, so a
good practice would be to set the layer bounds to the intended area of
interest for the layer to start with.
So even if a layer has no features, but represents a state wide set of
something, it'd be good to set the metadata layer bounds to the whole
state bounds, for example.
The GeoServer "calculate bounds" button is merely an utility to simplify
the common case. But IMHO you should set the bounds to the widest
possible area the layer is meant to.

2c/
Gabriel

On Mon, 2011-05-23 at 10:31 -0500, Ryan Zoerb wrote:
> I'm creating a data store 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. I appreciate any help.
> 
> Thanks,
> Ryan
> ------------------------------------------------------------------------------
> What Every C/C++ and Fortran developer Should Know!
> Read this article and learn how Intel has extended the reach of its 
> next-generation tools to help Windows* and Linux* C/C++ and Fortran 
> developers boost performance applications - including clusters. 
> http://p.sf.net/sfu/intel-dev2devmay
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users

-- 
Gabriel Roldan
[email protected]
Expert service straight from the developers


------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to