]> granicus.if.org Git - postgis/commitdiff
Quiet down ST_SameAlignment(raster, raster) as it was way too talkative
authorBborie Park <bkpark at ucdavis.edu>
Fri, 14 Dec 2012 20:25:45 +0000 (20:25 +0000)
committerBborie Park <bkpark at ucdavis.edu>
Fri, 14 Dec 2012 20:25:45 +0000 (20:25 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@10827 b70326c6-7e19-0410-871a-916f4a2858ee

raster/rt_pg/rt_pg.c
raster/test/regress/rt_asraster_expected
raster/test/regress/rt_gdalwarp_expected

index 50e7b9a061983d54a5e9dec2054a58194df2aae2..968cce5c55368295290ccc25e9944d900ce3280b 100644 (file)
@@ -13167,7 +13167,8 @@ Datum RASTER_sameAlignment(PG_FUNCTION_ARGS)
                PG_RETURN_NULL();
        }
 
-       if (reason != NULL)
+       /* only output reason if not aligned */
+       if (reason != NULL && !aligned)
                elog(NOTICE, "%s", reason);
 
        PG_RETURN_BOOL(aligned);
index 8fde45d6c72c16154b157775fb1b47a8c23ffe19..79b1cd977ca62a8874da315df7f26f998974a97b 100644 (file)
@@ -10,13 +10,6 @@ NOTICE:  The geometry's SRID (993310) is not the same as the raster's SRID (9921
 NOTICE:  The geometry's SRID (993310) is not the same as the raster's SRID (992163).  The geometry will be transformed to the raster's projection
 NOTICE:  The geometry's SRID (993310) is not the same as the raster's SRID (992163).  The geometry will be transformed to the raster's projection
 NOTICE:  The geometry's SRID (993310) is not the same as the raster's SRID (992163).  The geometry will be transformed to the raster's projection
-NOTICE:  The rasters are aligned
-NOTICE:  The rasters are aligned
-NOTICE:  The rasters are aligned
-NOTICE:  The rasters are aligned
-NOTICE:  The rasters are aligned
-NOTICE:  The rasters are aligned
-NOTICE:  The rasters are aligned
 NOTICE:  The rasters have different scales on the X axis
 NOTICE:  The rasters have different scales on the X axis
 NOTICE:  The rasters have different scales on the X axis
index 75ba9623a473547b60525e6564bce7d15f0fc0c0..08cf1eee32ad346a5822c39757603de615d2f04e 100644 (file)
@@ -112,23 +112,7 @@ NOTICE:  Values must be provided for both X and Y when specifying the scale.  Re
 5.7|992163|10|11|1|1000.000|-1000.000|0.000|0.000|-500000.000|600991.000|t|t|t
 5.8|992163|10|11|1|1000.000|-1000.000|0.000|0.000|-500000.000|600001.000|t|t|t
 5.9|992163|10|11|1|1000.000|-1000.000|0.000|0.000|-500000.000|600009.000|t|t|t
-NOTICE:  The rasters are aligned
 NOTICE:  The rasters (pixel corner coordinates) are not aligned
-NOTICE:  The rasters are aligned
-NOTICE:  The rasters are aligned
-NOTICE:  The rasters are aligned
-NOTICE:  The rasters are aligned
-NOTICE:  The rasters are aligned
-NOTICE:  The rasters are aligned
-NOTICE:  The rasters are aligned
-NOTICE:  The rasters are aligned
-NOTICE:  The rasters are aligned
-NOTICE:  The rasters are aligned
-NOTICE:  The rasters are aligned
-NOTICE:  The rasters are aligned
-NOTICE:  The rasters are aligned
-NOTICE:  The rasters are aligned
-NOTICE:  The rasters are aligned
 t|f|t
 1|0|0|500|500|1|-1|0|0|0|1
 2|0|0|500|100|1|-1|0|0|0|1