[mapserver-commits] r7656 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Sun Jun 8 13:17:41 EDT 2008


Author: warmerdam
Date: 2008-06-08 13:17:41 -0400 (Sun, 08 Jun 2008)
New Revision: 7656

Modified:
   trunk/mapserver/maptemplate.c
Log:
syntax fix related to r7654 so geos works again

Modified: trunk/mapserver/maptemplate.c
===================================================================
--- trunk/mapserver/maptemplate.c	2008-06-07 13:16:13 UTC (rev 7655)
+++ trunk/mapserver/maptemplate.c	2008-06-08 17:17:41 UTC (rev 7656)
@@ -1521,7 +1521,7 @@
     } 
 #ifdef USE_GEOS
     else if(buffer != 0 && bufferUnits != MS_PIXELS) {
-      shapeObj bufferShape=NULL;
+      shapeObj *bufferShape=NULL;
 
       bufferShape = msGEOSBuffer(shape, buffer);
       if(!bufferShape) return(MS_FAILURE); /* buffer failed */
@@ -1563,9 +1563,9 @@
 
 #ifdef USE_GEOS
       if(buffer != 0 && bufferUnits == MS_PIXELS) {
-        shapeObj bufferShape=NULL;
+        shapeObj *bufferShape=NULL;
 
-	bufferShape = msGEOSBuffer(tShape, buffer);
+	bufferShape = msGEOSBuffer(&tShape, buffer);
 	if(!bufferShape) return(MS_FAILURE); /* buffer failed */
 	msFreeShape(&tShape); /* avoid memory leak */
 	msCopyShape(bufferShape, &tShape);



More information about the mapserver-commits mailing list