[mapserver-commits] r9467 - in trunk/msautotest/gdal: . data expected

svn at osgeo.org svn at osgeo.org
Thu Oct 15 16:49:33 EDT 2009


Author: warmerdam
Date: 2009-10-15 16:49:33 -0400 (Thu, 15 Oct 2009)
New Revision: 9467

Added:
   trunk/msautotest/gdal/class16_intoddscale.map
   trunk/msautotest/gdal/data/int16.vrt
   trunk/msautotest/gdal/expected/class16_intoddscale.png
Log:
add case to test scale_buckets for int16 (#3174)

Added: trunk/msautotest/gdal/class16_intoddscale.map
===================================================================
--- trunk/msautotest/gdal/class16_intoddscale.map	                        (rev 0)
+++ trunk/msautotest/gdal/class16_intoddscale.map	2009-10-15 20:49:33 UTC (rev 9467)
@@ -0,0 +1,46 @@
+#
+# Test of classification methods on a int16 data with SCALE_BUCKETS
+# set (related to bug http://trac.osgeo.org/mapserver/ticket/3174)
+#
+MAP
+
+NAME TEST
+STATUS ON
+SIZE 400 300
+EXTENT 0.5 0.5 399.5 299.5
+IMAGECOLOR 255 255 0
+
+IMAGETYPE png8_t
+
+OUTPUTFORMAT
+  NAME png8_t
+  DRIVER "GD/PNG"
+  IMAGEMODE PC256
+  TRANSPARENT ON
+END
+
+LAYER
+  NAME grid1
+  TYPE raster
+  STATUS default
+  DATA data/int16.vrt
+  PROCESSING "SCALE=-10.5,10.5"
+  PROCESSING "SCALE_BUCKETS=4"
+  CLASS 
+    NAME "red"
+    EXPRESSION ([pixel] < -3)
+    COLOR 255 0 0 
+  END
+  CLASS 
+    NAME "green"
+    EXPRESSION ([pixel] >= -3 and [pixel] < 3)
+    COLOR 0 255 0
+  END
+  CLASS 
+    NAME "blue"
+    EXPRESSION ([pixel] >= 3)
+    COLOR 0 0 255
+  END
+END
+
+END # of map file

Added: trunk/msautotest/gdal/data/int16.vrt
===================================================================
--- trunk/msautotest/gdal/data/int16.vrt	                        (rev 0)
+++ trunk/msautotest/gdal/data/int16.vrt	2009-10-15 20:49:33 UTC (rev 9467)
@@ -0,0 +1,15 @@
+<VRTDataset rasterXSize="40" rasterYSize="30">
+  <GeoTransform>  0.0000000000000000e+00,  1.0000000000000000e+01,  0.0000000000000000e+00,  3.0000000000000000e+02,  0.0000000000000000e+00, -1.0000000000000000e+01</GeoTransform>
+  <Metadata/>
+  <VRTRasterBand dataType="Int16" band="1">
+    <Metadata/>
+    <ColorInterp>Gray</ColorInterp>
+    <SimpleSource>
+      <SourceFilename relativeToVRT="1">float.tif</SourceFilename>
+      <SourceBand>1</SourceBand>
+      <SourceProperties RasterXSize="40" RasterYSize="30" DataType="Float32" BlockXSize="40" BlockYSize="30"/>
+      <SrcRect xOff="0" yOff="0" xSize="40" ySize="30"/>
+      <DstRect xOff="0" yOff="0" xSize="40" ySize="30"/>
+    </SimpleSource>
+  </VRTRasterBand>
+</VRTDataset>

Added: trunk/msautotest/gdal/expected/class16_intoddscale.png
===================================================================
(Binary files differ)


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



More information about the mapserver-commits mailing list