[Geoserver-users] Default image type for service

Hi All.
Is there any way to control the default image type for a given service? We’ve got some remote users with a slow network using a thick client to access our GeoServer WMS. I’d like to force it to serve PNG8 to reduce the network traffic, and I don’t see anything on the client side that allows me to do that (thick in two ways, I suppose). I’m hoping I can limit the capabilities for the service of images, in the same way that I can reduce the number of coordinate systems served.

Any ideas?
Thanks,
Steve

Stephen Mather, GIS Manager

Metroparks

svm@anonymised.com

Stephen V. Mather ha scritto:

Hi All.
    Is there any way to control the default image type for a given service? We've got some remote users with a slow network using a thick client to access our GeoServer WMS. I'd like to force it to serve PNG8 to reduce the network traffic, and I don't see anything on the client side that allows me to do that (thick in two ways, I suppose). I'm hoping I can limit the capabilities for the service of images, in the same way that I can reduce the number of coordinate systems served.
Any ideas?

We have no switch to control the default wms output format... actually
there is no such a thing as a "default format", format=xxx is required
by WMS. But I guess the client would end up requesting only png8
if that was the only format provided to it?

A quick way to test it is to save the wms capabilities output, hand
edit it, and publish it again using some static file publishing tool
(e.g., you can put it into the www directory of your GeoServer
data dir and reach it at .../geoserver/www/myAmendedCapsFile.xml)

Cheers
Andrea

Thanks Andrea,
  That works perfectly. Now let's see if that relieves some of the
network traffic... .

Steve

-----Original Message-----
From: Andrea Aime [mailto:aaime@anonymised.com]
Sent: Wednesday, April 15, 2009 4:57 AM
To: svm@anonymised.com
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Default image type for service

Stephen V. Mather ha scritto:

Hi All.
    Is there any way to control the default image type for a given
service? We've got some remote users with a slow network using a thick
client to access our GeoServer WMS. I'd like to force it to serve PNG8
to reduce the network traffic, and I don't see anything on the client
side that allows me to do that (thick in two ways, I suppose). I'm
hoping I can limit the capabilities for the service of images, in the
same way that I can reduce the number of coordinate systems served.

Any ideas?

We have no switch to control the default wms output format... actually there
is no such a thing as a "default format", format=xxx is required by WMS. But
I guess the client would end up requesting only png8 if that was the only
format provided to it?

A quick way to test it is to save the wms capabilities output, hand edit it,
and publish it again using some static file publishing tool (e.g., you can
put it into the www directory of your GeoServer data dir and reach it at
.../geoserver/www/myAmendedCapsFile.xml)

Cheers
Andrea