[Geoserver-users] [MapFish-Users] printing module for geoserver

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:[

{
“baseURL”:“http://localhost:8080/geoserver/wms?”,
“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.schachinger@anonymised.com>

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
Users@anonymised.com
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
phone: +39 0584 962313
fax: +39 0584 1660272

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


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

···

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:[

{
“baseURL”:“http://localhost:8080/geoserver/wms?”,
“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.schachinger@anonymised.com>

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
Users@anonymised.com
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
phone: +39 0584 962313
fax: +39 0584 1660272

http://www.geo-solutions.it
http://twitter.com/geosolutions_it