MapManager allows you to select range of image output formats supported by MapServer. The output format defines which renderer will be used to create the output of rendering operations. Not all of the formats are rendered directly in the Map Window. Some formats as can be rendered directly to the screen or to a file while others are supported as output files only. The output format can be selected with the Image Type parameter of the Map Property Editor.
Each output format has a name (shown as the the Image Type parameter of the Map Property Editor) that defines the driver to use for rendering the map and a mime-type which is used by the CGI mapserver to specify the web content header accordingly. Further output format parameters are the image mode which define the layout of the image and the extension to specify the desired extension when saving the output file. These parameters cannot be set directly by MapManager, however it can be adjusted by manually editing the mapfile.
The following image modes are supported by MapServer:
For more information about the details of the map file format see Further Information. Currently the following output formats can be selected in the Map Property Editor:
Specifies the AGG (Anti-Grain Geometry) renderer to produce 24 bit png images. The corresponding mapfile section:
OUTPUTFORMAT
NAME aggpng24
DRIVER "AGG/PNG"
MIMETYPE "image/png"
IMAGEMODE RGB
EXTENSION "png"
END
Specifies the AGG (Anti-Grain Geometry) renderer to produce jpeg images. The corresponding mapfile section:
OUTPUTFORMAT
NAME aggjpeg
DRIVER "AGG/JPEG"
MIMETYPE "image/jpeg"
IMAGEMODE RGB
EXTENSION "jpg"
END
Specifies the GD renderer to produce gif images. The corresponding mapfile section:
OUTPUTFORMAT
NAME gif
DRIVER "GD/GIF"
MIMETYPE "image/gif"
IMAGEMODE PC256
EXTENSION "gif"
END
Specifies the GD renderer to produce png images. The corresponding mapfile section:
OUTPUTFORMAT
NAME png
DRIVER "GD/PNG"
MIMETYPE "image/png"
IMAGEMODE PC256
EXTENSION "png"
END
Specifies the GD renderer to produce 24 bit png images. The corresponding mapfile section:
OUTPUTFORMAT
NAME png24
DRIVER "GD/PNG24"
MIMETYPE "image/png; mode=24bit"
IMAGEMODE RGB
EXTENSION "png"
END
Specifies the GD renderer to produce jpeg images. The corresponding mapfile section:
OUTPUTFORMAT
NAME jpeg
DRIVER "GD/JPEG"
MIMETYPE "image/jpeg"
IMAGEMODE RGB
EXTENSION "jpg"
END
Specifies the GD renderer to produce wap images. The corresponding mapfile section:
OUTPUTFORMAT
NAME wbmp
DRIVER "GD/WBMP"
MIMETYPE "image/vnd.wap.wbmp"
IMAGEMODE PC256
EXTENSION "wbmp"
END
Specifies the SWF renderer to produce flash output. The corresponding mapfile section:
OUTPUTFORMAT
NAME swf
DRIVER "SWF"
MIMETYPE "application/x-shockwave-flash"
IMAGEMODE PC256
EXTENSION "swf"
END
Specifies the IMAGEMAP renderer to produce html image map output. The corresponding mapfile section:
OUTPUTFORMAT
NAME imagemap
DRIVER "IMAGEMAP"
MIMETYPE "text/html"
EXTENSION "html"
END
Specifies the GDAL driver to produce geotiff images. The corresponding mapfile section:
OUTPUTFORMAT
NAME GTiff
DRIVER "GDAL/GTiff"
MIMETYPE "image/tiff"
IMAGEMODE RGB
EXTENSION "tif"
END
Specifies the PDF renderer to produce Adobe PDF output. The corresponding mapfile section:
OUTPUTFORMAT
NAME pdf
DRIVER "PDF"
MIMETYPE "application/x-pdf"
IMAGEMODE PC256
EXTENSION "pdf"
END
Specifies the SVG renderer to produce svg (Scalable Vector Grapics) output. The corresponding mapfile section:
OUTPUTFORMAT
NAME svg
DRIVER "SVG"
MIMETYPE "image/svg+xml"
EXTENSION "svg"
END