[mapserver-commits] r12847 - in trunk: mapserver msautotest/wxs

svn at osgeo.org svn at osgeo.org
Mon Dec 5 13:34:05 EST 2011


Author: schpidi
Date: 2011-12-05 10:34:05 -0800 (Mon, 05 Dec 2011)
New Revision: 12847

Modified:
   trunk/mapserver/HISTORY.TXT
   trunk/mapserver/mapwcs20.c
   trunk/msautotest/wxs/wcs_simple.map
Log:
Fixing single pixel coverages in WCS 2.0 (#4110)

Modified: trunk/mapserver/HISTORY.TXT
===================================================================
--- trunk/mapserver/HISTORY.TXT	2011-12-05 13:39:17 UTC (rev 12846)
+++ trunk/mapserver/HISTORY.TXT	2011-12-05 18:34:05 UTC (rev 12847)
@@ -14,6 +14,7 @@
 
 Current Version (SVN trunk, 6.1-dev, future 6.2): 
 -------------------------------------------------
+- Fixed single pixel coverages in WCS 2.0 (#4110)
 
 - Add svg symbols support (#3671)
 

Modified: trunk/mapserver/mapwcs20.c
===================================================================
--- trunk/mapserver/mapwcs20.c	2011-12-05 13:39:17 UTC (rev 12846)
+++ trunk/mapserver/mapwcs20.c	2011-12-05 18:34:05 UTC (rev 12847)
@@ -450,14 +450,14 @@
         }
 
         if (subset->timeOrScalar == MS_WCS20_TIME_VALUE && subset->min.time
-                >= subset->max.time)
+                > subset->max.time)
         {
             msSetError(MS_WCSERR,
                     "Minimum value of subset axis %s is larger than maximum value",
                     "msWCSParseSubset20()", subset->axis);
             return MS_FAILURE;
         }
-        if (subset->timeOrScalar == MS_WCS20_SCALAR_VALUE && subset->min.scalar >= subset->max.scalar)
+        if (subset->timeOrScalar == MS_WCS20_SCALAR_VALUE && subset->min.scalar > subset->max.scalar)
         {
             msSetError(MS_WCSERR,
                     "Minimum value (%f) of subset axis '%s' is larger than maximum value (%f).",

Modified: trunk/msautotest/wxs/wcs_simple.map
===================================================================
--- trunk/msautotest/wxs/wcs_simple.map	2011-12-05 13:39:17 UTC (rev 12846)
+++ trunk/msautotest/wxs/wcs_simple.map	2011-12-05 18:34:05 UTC (rev 12847)
@@ -151,7 +151,7 @@
 # GetCoverage 2.0 image/tiff trim x y both
 # RUN_PARMS: wcs_20_getcov_trim_x_y_both.tif [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WCS&VERSION=2.0.0&REQUEST=GetCoverage&COVERAGEID=grey&FORMAT=image/tiff&SUBSET=x(10,20)&SUBSET=y(10,20)" > [RESULT_DEMIME]
 # GetCoverage 2.0 image/tiff trim x y both to 1x1px image (#3857)
-# RUN_PARMS: wcs_20_getcov_trim_x_y_both_1px.tif [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WCS&VERSION=2.0.0&REQUEST=GetCoverage&COVERAGEID=grey&FORMAT=image/tiff&SUBSET=x(10,10.1)&SUBSET=y(10,10.1)" > [RESULT_DEMIME]
+# RUN_PARMS: wcs_20_getcov_trim_x_y_both_1px.tif [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WCS&VERSION=2.0.0&REQUEST=GetCoverage&COVERAGEID=grey&FORMAT=image/tiff&SUBSET=x(10,10)&SUBSET=y(10,10)" > [RESULT_DEMIME]
 #
 # GetCoverage 2.0 gml+image/tiff full
 # RUN_PARMS: wcs_20_getcov_full.dat [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WCS&VERSION=2.0.0&REQUEST=GetCoverage&COVERAGEID=grey&FORMAT=image/tiff&MEDIATYPE=multipart/mixed" > [RESULT_DEMIME]



More information about the mapserver-commits mailing list