On Thu, Feb 20, 2014 at 10:49 PM, Jairo de Almeida <[email protected]
> wrote:
> Hi, is possible config two sql layers in layergroup using geoserver
> For example, i have a layer group named mylayergroup and send to
> parameters
>
> parameter1 to sqllayer 1 and parameter2 to sqllayer2
>
> how to send wms request with viewparams to two layers?
>
> http://my_host:8080/geoserver/myworkspace/wms?
> service=WMS&
> version=1.1.0&
> request=GetMap&
> layers=cspagro_lg&
>
> styles=&bbox=-50.0150126143555,-24.7983216672558,-49.8200717941113,-24.5081695226998&
> width=343&
> height=512&
> srs=EPSG:4326&
> format=application/openlayers&
> viewparams=parameter1:3561149961959647279;parameter2=23232323
>
It should work, as the layer group is simply expanded in the layer list it
contains
the very moment we parse the request.
However, the correct syntax is:
viewparams=parameter1:3561149961959647279;parameter2:23232323
(mind the second param, it had a =, it should be a : instead)
Cheers
Andrea
--
== Our support, Your Success! Visit http://opensdi.geo-solutions.it for
more information ==
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------
------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users