Am 10.12.2013 15:06, schrieb Mauro Bartolomeoli:
Hi Hartmuth,
as far as I know you can simply put the customParams property in the layer spec with your env value, as in the following example:

...
layers:[
...
{
   "opacity":1,
   "singleTile":false,
   "type":"WMS",
   "layers":[
      "topp:states"
   ],
   "format":"image/jpeg",
   "styles":[
      "population"
   ],
   "customParams":{
      "TRANSPARENT":false,
      "TILED":true,
      "ENV":"myenv:myvalue"
   }
...
]
...

Regards,
Mauro Bartolomeoli


2013/12/10 Hartmuth Schachinger <hartmuth.schachin...@inext.at>
Hello!

I am useing the printing module in geoserver.
I use some styles which use variable substitution. That works fine for kml and wms output. Till now I don't know how to pass the env paramter to the printing module. The documentation says, there are custom parameters for wms, but I did not find an example.

Please give me a hint, how to pass custom parameters to the wms service.

Thanks in advance
_______________________________________________
Users mailing list
us...@mapfish.org
http://lists.mapfish.org/mailman/listinfo/users



--
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information.
==

Dott. Mauro Bartolomeoli
@mauro_bart
Senior Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
fax:     +39 0584 1660272


-------------------------------------------------------
Thank you!

Now it works. I missed the {} around my params.


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to