Supported Output Formats

Parent Previous Next

Supported Output Formats


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:

aggpng24

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

aggjpeg

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

gif

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

png

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

png24

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

jpeg

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

wbmp

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

swf

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

imagemap

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

GTiff

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

pdf

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

svg

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