[Geoserver-users] Raster and image quality

Hallo,

I use a .PNG raster file as one of the raster layers composing my map. This
.PNG holds texts, but I cannot read them when I look at the map in the
firefox page.

However, If I open the file with any image reader, and reduce the texts so
that it has the same size as on my map, the texts can be read.

My question : what is distorting the image in the chain : PNG -> geoserver
-> openlayer -> firefox ? And how can I improve its quality?

Thanks for your help,

(Embedded image moved to file: pic08492.jpg)

CONFIDENTIALITE : Ce message et les éventuelles pièces attachées sont
confidentiels. Si vous n'êtes pas dans la liste des destinataires, veuillez
informer l'expéditeur immédiatement et ne pas divulguer le contenu à une
tierce personne, ne pas l'utiliser pour quelque raison que ce soit, ne pas
stocker ou copier l'information qu'il contient sur un quelconque support.

CONFIDENTIALITY : This e-mail and any attachments are confidential and may
be privileged. If you are not a named recipient, please notify the sender
immediately and do not disclose the contents to another person, use it for
any purpose or store or copy the information in any medium.

pic05786.jpg

Hi Christian,
it's not a good practice to encode the text in the raster image since
its readability would depend on the zoom level. The best approach is
to render text as vectorial features. However if this is not possible
I would suggest to use a very high resolution image as a source and
make sure the requested map projection is the same as the original
image.

-------------------------------------------------------
Eng. Alessio Fabiani
Vice-President /CTO GeoSolutions S.A.S.
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584 980933
fax: +39 0584 983027
mob: +39 349 8227000

http://www.geo-solutions.it

-------------------------------------------------------

On Tue, Jan 6, 2009 at 5:35 PM, <christian.dupont@anonymised.com> wrote:

Hallo,

I use a .PNG raster file as one of the raster layers composing my map. This
.PNG holds texts, but I cannot read them when I look at the map in the
firefox page.

However, If I open the file with any image reader, and reduce the texts so
that it has the same size as on my map, the texts can be read.

My question : what is distorting the image in the chain : PNG -> geoserver
-> openlayer -> firefox ? And how can I improve its quality?

Thanks for your help,

(Embedded image moved to file: pic08492.jpg)

CONFIDENTIALITE : Ce message et les éventuelles pièces attachées sont
confidentiels. Si vous n'êtes pas dans la liste des destinataires, veuillez
informer l'expéditeur immédiatement et ne pas divulguer le contenu à une
tierce personne, ne pas l'utiliser pour quelque raison que ce soit, ne pas
stocker ou copier l'information qu'il contient sur un quelconque support.

CONFIDENTIALITY : This e-mail and any attachments are confidential and may
be privileged. If you are not a named recipient, please notify the sender
immediately and do not disclose the contents to another person, use it for
any purpose or store or copy the information in any medium.

------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

christian.dupont@anonymised.com ha scritto:

Hallo,

I use a .PNG raster file as one of the raster layers composing my map. This
.PNG holds texts, but I cannot read them when I look at the map in the
firefox page.

However, If I open the file with any image reader, and reduce the texts so
that it has the same size as on my map, the texts can be read.

My question : what is distorting the image in the chain : PNG -> geoserver
-> openlayer -> firefox ? And how can I improve its quality?

Taking things from a different angle than Alessio, may it be just a matter of choosing a different interpolation? Go into config/wms/rendering and try setting the interpolation to bilinear or
bicubic. It will be slower (well, not that much if you installed
the native components of JAI and JAI Image I/O) but quality will be
better.

Cheers
Andrea

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