]> granicus.if.org Git - postgis/commitdiff
Testing the wrong variable when checking if two rasters is different.
authorBborie Park <bkpark at ucdavis.edu>
Sat, 24 Dec 2011 15:52:08 +0000 (15:52 +0000)
committerBborie Park <bkpark at ucdavis.edu>
Sat, 24 Dec 2011 15:52:08 +0000 (15:52 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8567 b70326c6-7e19-0410-871a-916f4a2858ee

raster/loader/raster2pgsql.c

index 81d72a1e38bc702397f71c2c3f931521e9606756..35c35e263cb4685882c4710272ef992280965bea 100644 (file)
@@ -530,7 +530,7 @@ diff_rastinfo(RASTERINFO *x, RASTERINFO *ref) {
        /* tile size */
        if (!msg[5]) {
                for (i = 0; i < 2; i++) {
-                       if (FLT_NEQ(x->gt[i], ref->gt[i])) {
+                       if (FLT_NEQ(x->tile_size[i], ref->tile_size[i])) {
                                fprintf(stderr, _("WARNING: Different tile sizes found in the set of rasters being converted to PostGIS Raster\n"));
                                msg[5]++;
                                break;