[Geoserver-users] Tile size (size as KB not dimension) is too big

Just noticed it on GeoServer 1.7.4 on WinXP with gdaljni installed.
I compare tiles from google and from my GeoServer WMS.
Both have dimension 256x256 pix.
Trouble is that ones from google has size 10-20 KB, but ones from
GeoServer are five times bigger: from 60 to 100+ KB!
Is it a bug or it can be fixed by configuration?

dixi

Raja Kajiev ha scritto:

Just noticed it on GeoServer 1.7.4 on WinXP with gdaljni installed.
I compare tiles from google and from my GeoServer WMS.
Both have dimension 256x256 pix.
Trouble is that ones from google has size 10-20 KB, but ones from
GeoServer are five times bigger: from 60 to 100+ KB!
Is it a bug or it can be fixed by configuration?

It's a matter of choosing the right format. By default the
tiles are served back in png format, and if you need the
tiles to be translucent overlays that do look really
good, there is not much that can be done at the moment.

Google tiles are solid, this allows using PNG 8bit format
which will use only 256 colors.
You can use that in GeoServer as well requesting
the image/png8 format (which works with transparency as
well, but will ruin antialiasing when the pixels are close
to a fully transparent area).

If the tiles you're serving are satellite/aerial imagery
instead, I suggest you use image/jpeg.

Hope this helps
Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.