[mapserver-commits] r12561 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Tue Sep 20 11:35:53 EDT 2011


Author: aboudreault
Date: 2011-09-20 08:35:53 -0700 (Tue, 20 Sep 2011)
New Revision: 12561

Modified:
   trunk/mapserver/mapfile.c
Log:
Added geomtransform in writeStyle function

Modified: trunk/mapserver/mapfile.c
===================================================================
--- trunk/mapserver/mapfile.c	2011-09-20 15:15:37 UTC (rev 12560)
+++ trunk/mapserver/mapfile.c	2011-09-20 15:35:53 UTC (rev 12561)
@@ -2702,6 +2702,17 @@
   
   writeNumber(stream, indent, "GAP", 0, style->gap);
 
+  if(style->_geomtransform.type != MS_GEOMTRANSFORM_NONE) {
+    writeKeyword(stream, indent, "GEOMTRANSFORM", style->_geomtransform.type, 6,
+                 MS_GEOMTRANSFORM_BBOX, "\"bbox\"",
+                 MS_GEOMTRANSFORM_END, "\"end\"",
+                 MS_GEOMTRANSFORM_LABELPOINT, "\"labelpnt\"",
+                 MS_GEOMTRANSFORM_LABELPOLY, "\"labelpoly\"",
+                 MS_GEOMTRANSFORM_START, "\"start\"",
+                 MS_GEOMTRANSFORM_VERTICES, "\"vertices\""
+    );
+  }
+
   if(style->linecap != MS_CJC_DEFAULT_CAPS) {
      writeKeyword(stream,indent,"LINECAP",(int)style->linecap,5,
            MS_CJC_NONE,"NONE",
@@ -2777,11 +2788,6 @@
     writeDimension(stream, indent, "DATARANGE", style->minvalue, style->maxvalue, NULL, NULL);
   }
 
-  if(style->_geomtransform.type != MS_GEOMTRANSFORM_NONE) {
-    /*
-    ** TODO: fprintf(stream, "        GEOMTRANSFORM \"%s\"\n",style->_geomtransformexpression);
-    */
-  }
   writeBlockEnd(stream, indent, "STYLE");
 }
 



More information about the mapserver-commits mailing list