]> granicus.if.org Git - postgis/commitdiff
Addition of comments to RASTER_mapAlgebra2()
authorBborie Park <bkpark at ucdavis.edu>
Mon, 18 Jun 2012 22:48:04 +0000 (22:48 +0000)
committerBborie Park <bkpark at ucdavis.edu>
Mon, 18 Jun 2012 22:48:04 +0000 (22:48 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9945 b70326c6-7e19-0410-871a-916f4a2858ee

raster/rt_pg/rt_pg.c

index 557bdfce3cf66137c03225358ab98083654153d0..df747bc68452794d0031360e29b2ebf28101144b 100644 (file)
@@ -9753,10 +9753,12 @@ Datum RASTER_mapAlgebra2(PG_FUNCTION_ARGS)
                (rast[0] == NULL || _isempty[0]) ||
                (rast[1] == NULL || _isempty[1])
        ) {
+               /* first raster is empty */
                if (rast[0] == NULL || _isempty[0]) {
                        i = 0;
                        j = 1;
                }
+               /* second raster is empty */
                else {
                        i = 1;
                        j = 0;