Hello,
I'm experimenting with geoserver 2.2.4 and the integrated geowebcache. I
published a gwc layer via GUI interface and tried to cache tiles with
direct wms requests.
Without parameters all work fine, but I need to use parameters, so I
tried to configure the parameterFilters in the file
gwc-layers/LayerGroupInfoImpl--4b52a7f3_13c8c6bb59a_-7eb2.xml (which was
automatically generated by geoserver):
<parameterFilters>
<stringParameterFilter>
<key>viewparams</key>
<defaultValue>lang:de</defaultValue>
<values>
<string>lang:de</string>
<string>lang:en</string>
</values>
</stringParameterFilter>
</parameterFilters>
So I tested if the request goes through geowebcache:
curl -v
"http://localhost:8083/geoserver/wms?LAYERS=mylayer&FORMAT=image%2Fpng&TILESORIGIN=382988.91775432,5201465.480606&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A32632&BBOX=383257.71775432,5201644.680606,383347.31775432,5201734.280606&WIDTH=256&HEIGHT=256&tiled=true&viewparams=lang:de"
> /dev/null
The problem is I can only request the parameter with the default value.
With viewparams=lang:de the request is processed by geowebcache and the
tiles are generated because lang:de is the default value. If I try
viewparams=lang:en geowebcache does not work with no errors in the curl
output but with this error in the jetty log:
31 Jan 17:47:39 ERROR [storage.StorageBroker] - Cannot fetch tile with
parameters if metastore is disabled!
Without defaultValue does not work at all.
mylayer is a layergroup and I'm using ubuntu 12.04.
Can anybody help me?
Thanks, Tommaso
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users