RE: [Geoserver-users] How to put multiple data stores into one view?

Hi,

Just wonder how to put multiple data sources into one view?
The demos included in GeoServer are all single layers.

Many thanks.

Best,
Yanlin

There are a couple of ways.

1: You can specify the layers in the URL, but geoserver must already
know about the styles you want to use with each layer, i.e:
http://myserver/geoserver/wms?REQUEST=GetMap&Layers=Roads,Rivers,Countou
rs,Post-Boxes&Styles=Blue-line,Black-line,Brown-Line,Red-Dot&........

You have to specify both 'Layers=...' and 'Styles=...' (the styles must
be listed in the same order as the layers)

2: Use an SLD, which can be referenced in the URL
(&SLD=http://myserver/SLDs/styles.sld) or placed inline in the URL. The
demos will show you how to do that if you don't already know. Using an
SLD has an added bonus that you can specify the styles for layers on the
fly, without geoserver needing to know about a pre-existing one. You
might just want to use an existing one though! Note, to upload styes to
geoserver, you need to make an SLD anyway...

Best of luck.

Miles Jordan
Applications Developer
The Australian Antarctic Data Centre
___________________________________________________________________________

    Australian Antarctic Division - Commonwealth of Australia
IMPORTANT: This transmission is intended for the addressee only. If you are not the
intended recipient, you are notified that use or dissemination of this communication is
strictly prohibited by Commonwealth law. If you have received this transmission in error,
please notify the sender immediately by e-mail or by telephoning +61 3 6232 3209 and
DELETE the message.
        Visit our web site at http://www.aad.gov.au/
___________________________________________________________________________