[Geoserver-users] WMS: define multiple SRS for one Layer

Hello List !

I am configuring Data for my Geoserver 1.3.4.
Can anybody tell me if it is possible to define multiple SRS for
one WMS-Layer that again will be displayed in the GetCapabilities-Response Document? (like described in the WMS Spec. p. 26: <CRS>CRS:84</CRS> <CRS>EPSG:26718</CRS>).

Thank you in advance!

Christina
--
GMX DSL-Flatrate 0,- Euro* - Überall, wo DSL verfügbar ist!
NEU: Jetzt bis zu 16.000 kBit/s! http://www.gmx.net/de/go/dsl

geo.serv@anonymised.com ha scritto:

Hello List !

I am configuring Data for my Geoserver 1.3.4.
Can anybody tell me if it is possible to define multiple SRS for
one WMS-Layer that again will be displayed in the GetCapabilities-Response Document? (like described in the WMS Spec. p. 26: <CRS>CRS:84</CRS> <CRS>EPSG:26718</CRS>).

Thank you in advance!
  

Well, if you have a look in the capabilities document generated by geoserver you'll
see that there is one root, unamed layer holding the definition of every CRS known to
Geoserver, and then child layers that are actual layers that do define only their main
one, but inherit automatically all those defined in the parent.

Long story short, every layer you serve with Geoserver will be rendered in any known
CRS no matter what. The CRS you see attacched to the layer is just the "natural" one,
that is, the one the data is defined into.

Hope this helps
Cheers
Andrea Aime

Hello Andrea,

Thank you for the fast answer!
But...oh, no...I think I asked the wrong way: Sorry!
Actually, I would also like to define a Bounding Box with the SRS for a Layer like in the following example:

<Layer queryable="1" opaque="1" noSubsets="0">
  <Name>GEPNRW:Oeffentliche Bereiche</Name>
    <Title>Oeffentliche Bereiche</Title>
    <SRS>EPSG:31466 EPSG:31462 EPSG:31492 EPSG:31467 EPSG:25831 EPSG:25832 EPSG:25833</SRS>
  <LatLonBoundingBox minx="5.8689" miny="50.3193" maxx="8.6525" maxy="52.5276"/>

// these bounding boxes
  <BoundingBox SRS="EPSG:31466" minx="2490662.0" miny="5576372.0" maxx="2680000.0" maxy="5825362.0"/>
  <BoundingBox SRS="EPSG:31462" minx="2490662.0" miny="5576372.0" maxx="2680000.0" maxy="5825362.0"/>
  <BoundingBox SRS="EPSG:31492" minx="2490662.0" miny="5576372.0" maxx="2680000.0" maxy="5825362.0"/>
</Layer>

I'm sorry again for not asking clearly the first time.
Do you know if this is possible?

Thank you in advance!

Christina

-------- Original-Nachricht --------
Datum: Wed, 18 Oct 2006 15:58:52 +0200
Von: Andrea Aime <aaime@anonymised.com>
An: geo.serv@anonymised.com
Betreff: Re: [Geoserver-users] WMS: define multiple SRS for one Layer

geo.serv@anonymised.com ha scritto:
> Hello List !
>
> I am configuring Data for my Geoserver 1.3.4.
> Can anybody tell me if it is possible to define multiple SRS for
> one WMS-Layer that again will be displayed in the
GetCapabilities-Response Document? (like described in the WMS Spec. p. 26: <CRS>CRS:84</CRS>
<CRS>EPSG:26718</CRS>).
>
> Thank you in advance!
>
Well, if you have a look in the capabilities document generated by
geoserver you'll
see that there is one root, unamed layer holding the definition of every
CRS known to
Geoserver, and then child layers that are actual layers that do define
only their main
one, but inherit automatically all those defined in the parent.

Long story short, every layer you serve with Geoserver will be rendered
in any known
CRS no matter what. The CRS you see attacched to the layer is just the
"natural" one,
that is, the one the data is defined into.

Hope this helps
Cheers
Andrea Aime

--
GMX DSL-Flatrate 0,- Euro* - Überall, wo DSL verfügbar ist!
NEU: Jetzt bis zu 16.000 kBit/s! http://www.gmx.net/de/go/dsl

Geo Schmidt ha scritto:

Hello Andrea,

Thank you for the fast answer!
But...oh, no...I think I asked the wrong way: Sorry!
Actually, I would also like to define a Bounding Box with the SRS for a Layer like in the following example:

<Layer queryable="1" opaque="1" noSubsets="0">
  <Name>GEPNRW:Oeffentliche Bereiche</Name>
    <Title>Oeffentliche Bereiche</Title>
    <SRS>EPSG:31466 EPSG:31462 EPSG:31492 EPSG:31467 EPSG:25831 EPSG:25832 EPSG:25833</SRS>
  <LatLonBoundingBox minx="5.8689" miny="50.3193" maxx="8.6525" maxy="52.5276"/>

// these bounding boxes
  <BoundingBox SRS="EPSG:31466" minx="2490662.0" miny="5576372.0" maxx="2680000.0" maxy="5825362.0"/>
  <BoundingBox SRS="EPSG:31462" minx="2490662.0" miny="5576372.0" maxx="2680000.0" maxy="5825362.0"/>
  <BoundingBox SRS="EPSG:31492" minx="2490662.0" miny="5576372.0" maxx="2680000.0" maxy="5825362.0"/>
</Layer>

I'm sorry again for not asking clearly the first time.
Do you know if this is possible?
  

Geoserver does not do this at the moment... why do you need to provide bounding boxes in CRS
other than 4326? A client app limitation I guess? Just trying to understand, I know the spec allows
for separated bbox. Implementing what you want would mean doing
quite a bit of UI changes (because you need to choose the CRS you want to support), configuration
storage, and finally capabilities response code... that is, quite a bit of work...

Cheers
Andrea Aime

GeoServer 1.5.x alredy write just one BoundingBox element in the WMS capabilities response with the original EPSG code and coords of the feature/raster.

On 10/18/06, Andrea Aime <aaime@anonymised.com> wrote:

Geo Schmidt ha scritto:

Hello Andrea,

Thank you for the fast answer!
But…oh, no…I think I asked the wrong way: Sorry!
Actually, I would also like to define a Bounding Box with the SRS for a Layer like in the following example:

GEPNRW:Oeffentliche Bereiche Oeffentliche Bereiche EPSG:31466 EPSG:31462 EPSG:31492 EPSG:31467 EPSG:25831 EPSG:25832 EPSG:25833

// these bounding boxes



I’m sorry again for not asking clearly the first time.
Do you know if this is possible?

Geoserver does not do this at the moment… why do you need to provide
bounding boxes in CRS
other than 4326? A client app limitation I guess? Just trying to
understand, I know the spec allows
for separated bbox. Implementing what you want would mean doing
quite a bit of UI changes (because you need to choose the CRS you want
to support), configuration
storage, and finally capabilities response code… that is, quite a bit
of work…

Cheers
Andrea Aime


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Eng. Alessio Fabiani
Vice President/CTO GeoSolutions

http://www.geo-solutions.it