Article about MapServer 5.0

Flavio Hendry flavio at TYDAC.CH
Tue Aug 28 05:03:59 EDT 2007


Hi Yves

> Another question, I tested the new outputformat with AGG, is it
> possible to get jpg or gif image with it? If so, how can I setting up
 > mapfile to realize this?

You should output to 24 bit as far as I know, means JPEG or PNG24 (the
latter not suggesed, as the files become very large). With JPEG we were
surprised to see the files being a third or less the size using AGG! And
the quality is just amazing. 

See our first test with teleatlas data (zoom in to see the street level):
http://test/ortsplan/frame.php?lang=en&city=Bern

The Map-File changes are straight forward:

before:
IMAGETYPE JPEG

OUTPUTFORMAT
  NAME jpeg
  DRIVER "GD/JPEG"
  MIMETYPE "image/jpeg"
  IMAGEMODE RGB
  EXTENSION "jpg"
  FORMATOPTION "QUALITY=100"
END

after:
IMAGETYPE AGG_JPEG

OUTPUTFORMAT
  NAME 'AGG_JPEG'
  DRIVER AGG/JPEG
  IMAGEMODE RGB
  FORMATOPTION "QUANTIZE_FORCE=ON"
  FORMATOPTION "QUANTIZE_DITHER=OFF"
  FORMATOPTION "QUANTIZE_COLORS=256"
END

Mit freundlichem Gruss / Best Regards
Flavio Hendry

----------------------------------------------------------------
TYDAC Web-Site:  http://www.tydac.ch
TYDAC MapServer: http://www.mapserver.ch
----------------------------------------------------------------
############      Mit freundlichen Gruessen / Kind Regards
############             mailto:flavio at tydac.ch
############         TYDAC AG - http://www.tydac.ch
####    ####        Geographic Information Solutions
####    ####         Luternauweg 12 -- CH-3006 Bern
############   Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860
----------------------------------------------------------------



More information about the mapserver-users mailing list