[mapserver-commits] r10640 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Thu Oct 21 22:43:40 EDT 2010


Author: warmerdam
Date: 2010-10-21 19:43:40 -0700 (Thu, 21 Oct 2010)
New Revision: 10640

Modified:
   trunk/mapserver/mapfile.c
Log:
fix writing IMAGEMODE FEATURE (#3570)

Modified: trunk/mapserver/mapfile.c
===================================================================
--- trunk/mapserver/mapfile.c	2010-10-22 02:29:31 UTC (rev 10639)
+++ trunk/mapserver/mapfile.c	2010-10-22 02:43:40 UTC (rev 10640)
@@ -4059,7 +4059,7 @@
   writeString(stream, indent, "MIMETYPE", NULL, outputformat->mimetype);
   writeString(stream, indent, "DRIVER", NULL, outputformat->driver);
   writeString(stream, indent, "EXTENSION", NULL, outputformat->extension);
-  writeKeyword(stream, indent, "IMAGEMODE", outputformat->imagemode, 6, MS_IMAGEMODE_PC256, "PC256", MS_IMAGEMODE_RGB, "RGB", MS_IMAGEMODE_RGBA, "RGBA", MS_IMAGEMODE_INT16, "INT16", MS_IMAGEMODE_FLOAT32, "FLOAT32", MS_IMAGEMODE_BYTE, "BYTE", MS_IMAGEMODE_FEATURE, "FEATURE");
+  writeKeyword(stream, indent, "IMAGEMODE", outputformat->imagemode, 7, MS_IMAGEMODE_PC256, "PC256", MS_IMAGEMODE_RGB, "RGB", MS_IMAGEMODE_RGBA, "RGBA", MS_IMAGEMODE_INT16, "INT16", MS_IMAGEMODE_FLOAT32, "FLOAT32", MS_IMAGEMODE_BYTE, "BYTE", MS_IMAGEMODE_FEATURE, "FEATURE");
   writeKeyword(stream, indent, "TRANSPARENT", outputformat->transparent, 2, MS_TRUE, "TRUE", MS_FALSE, "FALSE");
   for (i=0; i<outputformat->numformatoptions; i++) 
     writeString(stream, indent, "FORMATOPTION", NULL, outputformat->formatoptions[i]);



More information about the mapserver-commits mailing list