[mapserver-commits] r9318 - in trunk/msautotest/misc: . expected

svn at osgeo.org svn at osgeo.org
Fri Sep 18 19:06:34 EDT 2009


Author: tbonfort
Date: 2009-09-18 19:06:32 -0400 (Fri, 18 Sep 2009)
New Revision: 9318

Added:
   trunk/msautotest/misc/chartlayer_pie2.map
   trunk/msautotest/misc/chartlayer_vbar.map
   trunk/msautotest/misc/expected/chartlayer_pie2.png
   trunk/msautotest/misc/expected/chartlayer_vbar.png
Modified:
   trunk/msautotest/misc/chartlayer_bar.map
   trunk/msautotest/misc/expected/chartlayer_bar.png
   trunk/msautotest/misc/expected/chartlayer_pie.png
Log:
add tests for vertical bar charts, and dynamic diameter for pies


Modified: trunk/msautotest/misc/chartlayer_bar.map
===================================================================
--- trunk/msautotest/misc/chartlayer_bar.map	2009-09-18 23:01:42 UTC (rev 9317)
+++ trunk/msautotest/misc/chartlayer_bar.map	2009-09-18 23:06:32 UTC (rev 9318)
@@ -40,7 +40,7 @@
   TYPE CHART
   STATUS DEFAULT
   PROCESSING "CHART_TYPE=bar"
-  PROCESSING "CHART_SIZE=30"
+  PROCESSING "CHART_SIZE=30.0"
   DATA chartlayer
 
   FILTERITEM "MAINPOLY"

Added: trunk/msautotest/misc/chartlayer_pie2.map
===================================================================
--- trunk/msautotest/misc/chartlayer_pie2.map	                        (rev 0)
+++ trunk/msautotest/misc/chartlayer_pie2.map	2009-09-18 23:06:32 UTC (rev 9318)
@@ -0,0 +1,62 @@
+#
+# Test on chart creation
+#
+#
+MAP
+
+NAME DEMO
+STATUS ON
+SIZE 400 300
+EXTENT 2253355.750000 -76361.773438 2747648.500000 515489.031250
+UNITS METERS
+SHAPEPATH "data"
+IMAGECOLOR 255 255 255
+IMAGETYPE png
+
+
+LAYER
+  NAME charts
+
+  TYPE CHART
+  STATUS DEFAULT
+  PROCESSING "CHART_TYPE=pie"
+  PROCESSING "CHART_SIZE_RANGE=V1 10 30 0 2000"
+  DATA chartlayer
+
+  FILTERITEM "MAINPOLY"
+  FILTER "1"
+
+  CLASS
+    NAME "var1"
+    STYLE
+      SIZE [V1]
+      COLOR 255 0 0
+    END
+  END
+  CLASS
+    NAME "var2"
+    STYLE
+      SIZE [V2]
+      COLOR 0 255 0
+    END
+  END
+  CLASS
+    NAME "var3"
+    STYLE
+      SIZE [V3]
+      COLOR 0 0 255
+    END
+  END
+  CLASS
+    NAME "var4"
+    STYLE
+      SIZE [V4]
+      COLOR 255 0 255
+    END
+  END
+ END
+
+
+
+
+END # Map File

Added: trunk/msautotest/misc/chartlayer_vbar.map
===================================================================
--- trunk/msautotest/misc/chartlayer_vbar.map	                        (rev 0)
+++ trunk/msautotest/misc/chartlayer_vbar.map	2009-09-18 23:06:32 UTC (rev 9318)
@@ -0,0 +1,83 @@
+#
+# Start of map file
+#
+# $Id: gmap75.map,v 1.23 2003/02/25 19:46:42 daniel Exp $
+#
+MAP
+
+NAME DEMO
+STATUS ON
+SIZE 400 300
+EXTENT 2253355.750000 -76361.773438 2747648.500000 515489.031250
+UNITS METERS
+SHAPEPATH "data"
+IMAGECOLOR 255 255 255
+
+#
+# Start of web interface definition
+#
+WEB
+  MINSCALE 2000000
+  MAXSCALE 50000000
+#
+# On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the root 
+# of the drive where the .MAP file resides.
+#
+  IMAGEPATH "/tmp/ms_tmp/" 
+  IMAGEURL "/ms_tmp/"
+#  LOG "/tmp/gmap.log"
+END
+
+
+
+#
+# Start of layer definitions
+#
+
+LAYER
+  NAME charts
+
+  TYPE CHART
+  STATUS DEFAULT
+  PROCESSING "CHART_TYPE=VBAR"
+  PROCESSING "CHART_SIZE=30"
+  PROCESSING "CHART_SCALE=0.01"
+  DATA chartlayer
+
+  FILTERITEM "MAINPOLY"
+  FILTER "1"
+
+  CLASS
+    NAME "var1"
+    STYLE
+      SIZE [V1]
+      COLOR 255 0 0
+    END
+  END
+  CLASS
+    NAME "var2"
+    STYLE
+      SIZE [V2]
+      COLOR 0 255 0
+    END
+  END
+  CLASS
+    NAME "var3"
+    STYLE
+      SIZE [V3]
+      COLOR 0 0 255
+    END
+  END
+  CLASS
+    NAME "var4"
+    STYLE
+      SIZE [V4]
+      COLOR 255 0 255
+    END
+  END
+ END
+
+
+
+
+END # Map File

Modified: trunk/msautotest/misc/expected/chartlayer_bar.png
===================================================================
(Binary files differ)

Modified: trunk/msautotest/misc/expected/chartlayer_pie.png
===================================================================
(Binary files differ)

Added: trunk/msautotest/misc/expected/chartlayer_pie2.png
===================================================================
(Binary files differ)


Property changes on: trunk/msautotest/misc/expected/chartlayer_pie2.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: trunk/msautotest/misc/expected/chartlayer_vbar.png
===================================================================
(Binary files differ)


Property changes on: trunk/msautotest/misc/expected/chartlayer_vbar.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream



More information about the mapserver-commits mailing list