[Geoserver-users] Specify the quantizer and caching options for a layer via Java API

I’m adding data stores and layers in a WPS process. I’d like those layers to be tile-cached, non-antialiased and use the octree quantizer (non-default for this type of layer).

So two questions:

  1. Is there some way in the Java LayerInfo object (or some other catalog object) to force a layer to render as non-antialiased with the octree quantizer?

  2. How do I set attributes that appear on the Tile Caching tab of the layer admin pages, particularly the parameter filters, via the Java API?

I realize I can force the rendering options in WMS requests by adding this vendor param:
format_options=antialiasing:none;quantizer:octree

However, that causes caching misses without the appropriate GWC parameter filters set on the layer tile cache page (thus question #2).

Thanks in advance for any suggestions or pointers,

···

Eric Everman

CIDA - Center for Integrated Data Analytics
US Geological Survey
Middleton, WI
http://cida.usgs.gov/