[mapserver-commits] r10150 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Mon May 10 09:00:30 EDT 2010


Author: assefa
Date: 2010-05-10 09:00:25 -0400 (Mon, 10 May 2010)
New Revision: 10150

Modified:
   trunk/mapserver/mapkmlrenderer.cpp
Log:
Correct build error

Modified: trunk/mapserver/mapkmlrenderer.cpp
===================================================================
--- trunk/mapserver/mapkmlrenderer.cpp	2010-05-07 20:50:37 UTC (rev 10149)
+++ trunk/mapserver/mapkmlrenderer.cpp	2010-05-10 13:00:25 UTC (rev 10150)
@@ -372,7 +372,7 @@
             tmpUrl = strdup( img->imageurl);
             tmpUrl = msStringConcatenate(tmpUrl, (char *)(msGetBasename(tmpFileName)));
             tmpUrl = msStringConcatenate(tmpUrl, ".");
-            tmpUrl = msStringConcatenate(tmpUrl, MS_IMAGE_EXTENSION(RasterizerOutputFormat));
+            tmpUrl = msStringConcatenate(tmpUrl, (char *)MS_IMAGE_EXTENSION(RasterizerOutputFormat));
                 
             createGroundOverlayNode(LayerNode, tmpUrl, layer);
             msFree(tmpFileName);
@@ -460,7 +460,7 @@
     /*always add a name. It will be replaced by a text value if available*/
     char tmpid[100];
     char *stmp=NULL, *layerName=NULL;
-    sprintf(tmpid, ".%d", CurrentShape->index);
+    sprintf(tmpid, ".%d", (int)CurrentShape->index);
     layerName = getLayerName(currentLayer);
     stmp = msStringConcatenate(stmp, layerName);
     stmp = msStringConcatenate(stmp, tmpid);



More information about the mapserver-commits mailing list