[mapserver-commits] r7923 - in trunk/mapserver: . mapscript/php3

svn at osgeo.org svn at osgeo.org
Tue Sep 23 13:58:55 EDT 2008


Author: dmorissette
Date: 2008-09-23 13:58:55 -0400 (Tue, 23 Sep 2008)
New Revision: 7923

Modified:
   trunk/mapserver/mapdebug.c
   trunk/mapserver/mapscript/php3/README
   trunk/mapserver/mapscript/php3/php_mapscript.c
Log:
Changed base type for styleObj size and width from int to double. (#2766)


Modified: trunk/mapserver/mapdebug.c
===================================================================
--- trunk/mapserver/mapdebug.c	2008-09-23 15:51:45 UTC (rev 7922)
+++ trunk/mapserver/mapdebug.c	2008-09-23 17:58:55 UTC (rev 7923)
@@ -1,5 +1,5 @@
 /******************************************************************************
- * $Id:$
+ * $Id$
  *
  * Project:  MapServer
  * Purpose:  Implementation of debug/logging, msDebug() and related functions.

Modified: trunk/mapserver/mapscript/php3/README
===================================================================
--- trunk/mapserver/mapscript/php3/README	2008-09-23 15:51:45 UTC (rev 7922)
+++ trunk/mapserver/mapscript/php3/README	2008-09-23 17:58:55 UTC (rev 7923)
@@ -1684,18 +1684,18 @@
 
   int           symbol
   string        symbolname
-  int           size
-  int           minsize 
-  int           maxsize 
+  double        size
+  double        minsize 
+  double        maxsize 
   int           offsetx
   int           offsety
   int           antialias
   colorObj      color
   colorObj      backgroundcolor
   colorObj      outlinecolor
-  int           width
-  int           minwidth
-  int           maxwidth
+  double        width
+  double        minwidth
+  double        maxwidth
   double        angle
   string        angleitem  
   string        sizeitem

Modified: trunk/mapserver/mapscript/php3/php_mapscript.c
===================================================================
--- trunk/mapserver/mapscript/php3/php_mapscript.c	2008-09-23 15:51:45 UTC (rev 7922)
+++ trunk/mapserver/mapscript/php3/php_mapscript.c	2008-09-23 17:58:55 UTC (rev 7923)
@@ -13870,22 +13870,22 @@
 
 
     /* editable properties */
-    add_property_long(return_value,   "symbol",     pstyle->symbol);
-    PHPMS_ADD_PROP_STR(return_value,  "symbolname", pstyle->symbolname);
-    add_property_long(return_value,   "size",       pstyle->size);
-    add_property_long(return_value,   "minsize",       pstyle->minsize);
-    add_property_long(return_value,   "maxsize",       pstyle->maxsize);
-    add_property_long(return_value,   "width",       pstyle->width);
-    add_property_long(return_value,   "minwidth",       pstyle->minwidth);
-    add_property_long(return_value,   "maxwidth",       pstyle->maxwidth);
-    add_property_long(return_value,   "offsetx",       pstyle->offsetx);
-    add_property_long(return_value,   "offsety",       pstyle->offsety);
-    add_property_double(return_value,   "angle",       pstyle->angle);
-    add_property_long(return_value,   "antialias",  pstyle->antialias);
-    add_property_double(return_value,   "minvalue", pstyle->minvalue);
-    add_property_double(return_value,   "maxvalue", pstyle->maxvalue);
-    PHPMS_ADD_PROP_STR(return_value,  "rangeitem", pstyle->rangeitem);
-    add_property_long(return_value,   "opacity",       pstyle->opacity);
+    add_property_long(return_value,   "symbol",         pstyle->symbol);
+    PHPMS_ADD_PROP_STR(return_value,  "symbolname",     pstyle->symbolname);
+    add_property_double(return_value, "size",           pstyle->size);
+    add_property_double(return_value, "minsize",        pstyle->minsize);
+    add_property_double(return_value, "maxsize",        pstyle->maxsize);
+    add_property_double(return_value, "width",          pstyle->width);
+    add_property_double(return_value, "minwidth",       pstyle->minwidth);
+    add_property_double(return_value, "maxwidth",       pstyle->maxwidth);
+    add_property_long(return_value,   "offsetx",        pstyle->offsetx);
+    add_property_long(return_value,   "offsety",        pstyle->offsety);
+    add_property_double(return_value, "angle",          pstyle->angle);
+    add_property_long(return_value,   "antialias",      pstyle->antialias);
+    add_property_double(return_value, "minvalue",       pstyle->minvalue);
+    add_property_double(return_value, "maxvalue",       pstyle->maxvalue);
+    PHPMS_ADD_PROP_STR(return_value,  "rangeitem",      pstyle->rangeitem);
+    add_property_long(return_value,   "opacity",        pstyle->opacity);
     
     MAKE_STD_ZVAL(new_obj_ptr);  /* Alloc and Init a ZVAL for new object */
     _phpms_build_color_object(&(pstyle->color),list, new_obj_ptr TSRMLS_CC);
@@ -14016,12 +14016,12 @@
 
     IF_SET_LONG(  "symbol",             self->symbol)
     else IF_SET_STRING( "symbolname",   self->symbolname)
-    else IF_SET_LONG( "size",           self->size)
-    else IF_SET_LONG( "minsize",        self->minsize)
-    else IF_SET_LONG( "maxsize",        self->maxsize)
-    else IF_SET_LONG( "width",          self->width)
-    else IF_SET_LONG( "minwidth",       self->minwidth)
-    else IF_SET_LONG( "maxwidth",       self->maxwidth)
+    else IF_SET_DOUBLE( "size",         self->size)
+    else IF_SET_DOUBLE( "minsize",      self->minsize)
+    else IF_SET_DOUBLE( "maxsize",      self->maxsize)
+    else IF_SET_DOUBLE( "width",        self->width)
+    else IF_SET_DOUBLE( "minwidth",     self->minwidth)
+    else IF_SET_DOUBLE( "maxwidth",     self->maxwidth)
     else IF_SET_LONG( "offsetx",        self->offsetx)
     else IF_SET_LONG( "offsety",        self->offsety)
     else IF_SET_DOUBLE("angle",         self->angle)



More information about the mapserver-commits mailing list