Hi,
I've setup a layer-group, which is then cached by GWC, I've setup a
parameter filter for the layer-group like this:
<parameterFilters>
<stringParameterFilter>
<key>bgcolor</key>
<defaultValue>0xb5d0d0</defaultValue>
<values>
<string>0xb5d0d0</string>
</values>
</stringParameterFilter>
</parameterFilters>
If I understand correctly, this would allow both requests with bgcolor
set to 0xb5d0d0 to be cached, or requests without bgcolor would have
0xb5d0d0 set by default.
However, it does not work - the tiles are cached ok, but the bgcolor
is always white.
Somewhere I read something about the quota store having to be enabled
for GWC parameter filters to work correctly, and I've tried enabling
quotas for GWC, but it make no difference.
A bit of the geoserver log output when generating new tiles is here:
http://paste2.org/5DgLBOV0
It looks like the bgcolor parameters DOES arrive with the geoserver -
see the lines: BgColor = java.awt.Color[r=181,g=208,b=208]
I use geoserver 3.5
Any ideas?
Thanks a lot!
- Gunnar
--
http://gromgull.net
Good call! The tiles were transparent, and while debugging I also
found that bgcolor filters do not take effect if you use the default
value, i.e I need to set the default bgcolor in the filter to
something else, then it will work.... nearly 
Now I don't get transparent or white tiles, but instead weirdly bands
of alternating colours:
http://cl.ly/image/3O263A3J0X1Q
The bluer one is what I want 
Any ideas?
Cheers,
- Gunnar
On 9 September 2013 18:20, Kevin Smith <ksmith@anonymised.com> wrote:
Are you sure it's white or is it transparent and appearing on a white
background? You may want to try setting transparent=false using a similar
parameter filter.
On 7 September 2013 00:22, Gunnar Aastrand Grimnes <gromgull@anonymised.com>
wrote:
Hi,
I've setup a layer-group, which is then cached by GWC, I've setup a
parameter filter for the layer-group like this:
<parameterFilters>
<stringParameterFilter>
<key>bgcolor</key>
<defaultValue>0xb5d0d0</defaultValue>
<values>
<string>0xb5d0d0</string>
</values>
</stringParameterFilter>
</parameterFilters>
If I understand correctly, this would allow both requests with bgcolor
set to 0xb5d0d0 to be cached, or requests without bgcolor would have
0xb5d0d0 set by default.
However, it does not work - the tiles are cached ok, but the bgcolor
is always white.
Somewhere I read something about the quota store having to be enabled
for GWC parameter filters to work correctly, and I've tried enabling
quotas for GWC, but it make no difference.
A bit of the geoserver log output when generating new tiles is here:
http://paste2.org/5DgLBOV0
It looks like the bgcolor parameters DOES arrive with the geoserver -
see the lines: BgColor = java.awt.Color[r=181,g=208,b=208]
I use geoserver 3.5
Any ideas?
Thanks a lot!
- Gunnar
--
http://gromgull.net
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft
technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
Kevin Smith
Junior Software Developer, OpenGeo
<ksmith@anonymised.com>
--
http://gromgull.net