Changes between Initial Version and Version 1 of Ticket #4699, comment 1


Ignore:
Timestamp:
06/07/20 21:34:33 (5 years ago)
Author:
jcasanov

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #4699, comment 1

    initial v1  
     1
    12This patch fixes the problem for me
     3
     4
     5{{{
     6diff --git a/raster/rt_pg/rtpg_mapalgebra.c b/raster/rt_pg/rtpg_mapalgebra.c
     7index b3b6323cb..33ec63a80 100644
     8--- a/raster/rt_pg/rtpg_mapalgebra.c
     9+++ b/raster/rt_pg/rtpg_mapalgebra.c
     10@@ -2896,8 +2896,11 @@ Datum RASTER_union_finalfn(PG_FUNCTION_ARGS)
     11                                PG_RETURN_NULL();
     12                        }
     13                }
     14-               else
     15+               else {
     16                        _raster = iwr->bandarg[i].raster[0];
     17+                       if (_raster == NULL)
     18+                               continue;
     19+               }
     20 
     21                /* first band, _rtn doesn't exist */
     22                if (i < 1) {
     23}}}