[Geoserver-users] Help using BoundingBox

I am looking for some help in understanding how to use the BoundingBox tag for displaying a map:

I want to display a map of North America using one projection type and overlay it with a map of watersheds for Oregon that are in a differing projection. How do I set the values of BoundingBox in my xml file so that both of them display? I found an example at http://docs.codehaus.org/display/GEOSDOC/InlineFeature but it looks like all the coordinates fall within the BoundingBox boundaries.

Thanks,

Amy

Hi Amy:

How do I set the values of BoundingBox in my xml file so
that both of them display?

You should set the values that represent the bounding box of your
target projection. Beware of units too--for example if the units for
your projection are meters, the values are likely to be large-ish
numbers.

Geoserver will reproject layers, given that they have been properly
defined as feature types (or coverages in the case of raster data).

Alex

Sorry for my ignorance, but are you saying that in xml file, I should have the EPSGs for all the layers be the same and Geoserver will do the rest?

Alexander Petkov wrote:

Hi Amy:

  
How do I set the values of BoundingBox in my xml file so
that both of them display?
    

You should set the values that represent the bounding box of your
target projection. Beware of units too--for example if the units for
your projection are meters, the values are likely to be large-ish
numbers.

Geoserver will reproject layers, given that they have been properly
defined as feature types (or coverages in the case of raster data).

Alex

  

Amy Johnson ha scritto:

Sorry for my ignorance, but are you saying that in xml file, I should have the EPSGs for all the layers be the same and Geoserver will do the rest?

GeoServer must have the epsg codes for all your layers SRS, and when
configuring the feature types, you have to properly identify each layer
SRS so that GeoServer knows what's the starting point of the transformation.

Then, when doing the getmap request, state in which srs you want the
map be depicted into, provide a bounding box whose coordinates are
expressed in that srs, and GeoServer will do whatever on the fly
reprojection is needed to build them map.

Cheers
Andrea