[mapserver-commits] r9251 - sandbox/davidK

svn at osgeo.org svn at osgeo.org
Thu Aug 13 09:47:20 EDT 2009


Author: assefa
Date: 2009-08-13 09:47:19 -0400 (Thu, 13 Aug 2009)
New Revision: 9251

Modified:
   sandbox/davidK/mapoutput.c
Log:
create kml output format

Modified: sandbox/davidK/mapoutput.c
===================================================================
--- sandbox/davidK/mapoutput.c	2009-08-13 01:45:32 UTC (rev 9250)
+++ sandbox/davidK/mapoutput.c	2009-08-13 13:47:19 UTC (rev 9251)
@@ -424,6 +424,12 @@
         msCreateDefaultOutputFormat( map, "CAIRO/SVG" );
 #endif
 
+#if defined(USE_KML)
+    if( msSelectOutputFormat( map, "kml" ) == NULL )
+        msCreateDefaultOutputFormat( map, "kml" );
+
+#endif
+
     if( map->imagetype != NULL )
         free( map->imagetype );
     map->imagetype = saved_imagetype;
@@ -951,7 +957,8 @@
         if( j == mime_count && map->outputformatlist[i]->driver &&
             (strncasecmp(map->outputformatlist[i]->driver, "GD/", 3)==0 ||
              strncasecmp(map->outputformatlist[i]->driver, "GDAL/", 5)==0 ||
-             strcasecmp(map->outputformatlist[i]->driver, "svg")==0)) 
+             strcasecmp(map->outputformatlist[i]->driver, "svg")==0 ||
+             strcasecmp(map->outputformatlist[i]->driver, "kml")==0))
             mime_list[mime_count++] = map->outputformatlist[i]->mimetype;
     }
 



More information about the mapserver-commits mailing list