[mapserver-commits] r8704 - trunk/docs/tutorial

svn at osgeo.org svn at osgeo.org
Mon Mar 9 12:04:28 EDT 2009


Author: pnaciona
Date: 2009-03-09 12:04:28 -0400 (Mon, 09 Mar 2009)
New Revision: 8704

Added:
   trunk/docs/tutorial/example1-8.txt
Log:
add tutorial example 1.8: changing map output format

Added: trunk/docs/tutorial/example1-8.txt
===================================================================
--- trunk/docs/tutorial/example1-8.txt	                        (rev 0)
+++ trunk/docs/tutorial/example1-8.txt	2009-03-09 16:04:28 UTC (rev 8704)
@@ -0,0 +1,28 @@
+.. _example1-8:
+
+===========
+Example 1.8
+===========
+Changing the Map's Output Format
+--------------------------------
+
+.. image::  http://biometry.gis.umn.edu/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example1-8.map&layers=states+states_label+modis&map.imagetype=AGG&mode=map
+
+Depending on the format you choose, the image may not display on your browser.
+If the link fails to display on your browser, right click on the graphic above
+and save the link as whatever format you specified on your mapfile.
+
+Here's the mapfile: `Example1-8.map <http://biometry.gis.umn.edu/tutorial/example1-8.map>`_.
+
+Our mapfile now contains a new object, OUTPUTFORMAT. This object is defined 
+within the MAP object and is used in conjunction with the IMAGETYPE keyword. 
+Depending on the libraries you compiled with MapServer, you can have several
+output format choices--the GD library provides PNG (8- and 24-bit), GIF, JPEG,
+and WBMP; the GDAL library, a source for many of MapServer's input formats, can
+also provide output to PNG, JPEG, TIFF/GeoTIFF, and other raster formats; the 
+PDFLib library provides PDF output; and the MING library provides Flash output. 
+Have a look at the OUTPUTFORMAT object and experiment by changing the IMAGETYPE 
+keyword on you mapfile. The NAME of your OUTPUT format should be used as your 
+IMAGETYPE value ex: IMAGETYPE png or IMAGETYPE png24).
+
+Please consult the OUTPUTFORMAT object reference at: `<http://ms4w.gis.umn.edu/doc/mapfile-reference.html#outputformat>`_.
\ No newline at end of file



More information about the mapserver-commits mailing list