]> granicus.if.org Git - postgis/commitdiff
Whitespace changes to _st_hillshade4ma
authorDavid Zwarg <dzwarg@azavea.com>
Mon, 6 Feb 2012 17:49:32 +0000 (17:49 +0000)
committerDavid Zwarg <dzwarg@azavea.com>
Mon, 6 Feb 2012 17:49:32 +0000 (17:49 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9041 b70326c6-7e19-0410-871a-916f4a2858ee

raster/rt_pg/rtpostgis.sql.in.c

index a267d410679cf625ed8b192e5a73fc068a048626..094f0c2dbc3686b8dc84af44c6eaf61468aaf5dd 100644 (file)
@@ -2052,13 +2052,13 @@ CREATE OR REPLACE FUNCTION _st_hillshade4ma(matrix float[][], nodatamode text, v
         dz_dy := ((matrix[1][3] + 2.0 * matrix[2][3] + matrix[3][3]) - (matrix[1][1] + 2.0 * matrix[2][1] + matrix[3][1])) / (8.0 * pheight);
         elevation_scale := args[6]::float;
         slope := atan(sqrt(elevation_scale * pow(dz_dx, 2.0) + pow(dz_dy, 2.0)));
-                               -- handle special case of 0, 0
-                               IF abs(dz_dy) = 0::float AND abs(dz_dy) = 0::float THEN
-                                       -- set to pi as that is the expected PostgreSQL answer in Linux
-                                       aspect := pi();
-                               ELSE
-                                       aspect := atan2(dz_dy, -dz_dx);
-                               END IF;
+        -- handle special case of 0, 0
+        IF abs(dz_dy) = 0::float AND abs(dz_dy) = 0::float THEN
+            -- set to pi as that is the expected PostgreSQL answer in Linux
+            aspect := pi();
+        ELSE
+            aspect := atan2(dz_dy, -dz_dx);
+        END IF;
         max_bright := args[5]::float;
 
         IF aspect < 0 THEN