[mapserver-commits] r9097 - sandbox/davidK
svn at osgeo.org
svn at osgeo.org
Mon Jun 8 00:36:37 EDT 2009
Author: assefa
Date: 2009-06-08 00:36:37 -0400 (Mon, 08 Jun 2009)
New Revision: 9097
Modified:
sandbox/davidK/mapoutput.c
Log:
create default kml output
Modified: sandbox/davidK/mapoutput.c
===================================================================
--- sandbox/davidK/mapoutput.c 2009-06-07 17:33:22 UTC (rev 9096)
+++ sandbox/davidK/mapoutput.c 2009-06-08 04:36:37 UTC (rev 9097)
@@ -275,7 +275,7 @@
}
#endif
- #if defined(USE_KML)
+#if defined(USE_KML)
if( strcasecmp(driver,"KML") == 0 )
{
format = msAllocOutputFormat( map, "kml", driver );
@@ -431,6 +431,11 @@
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;
More information about the mapserver-commits
mailing list