]> granicus.if.org Git - postgis/commitdiff
Fixed a bunch of other nodataval datatype issues.
authorBborie Park <bkpark at ucdavis.edu>
Thu, 17 Nov 2011 14:57:40 +0000 (14:57 +0000)
committerBborie Park <bkpark at ucdavis.edu>
Thu, 17 Nov 2011 14:57:40 +0000 (14:57 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8163 b70326c6-7e19-0410-871a-916f4a2858ee

raster/rt_pg/rt_pg.c
raster/rt_pg/rtpostgis.sql.in.c

index 3a5dba4fb0ed6656cda762ac160079bd36efe233..bd162c58cbe7540b57025b533fc8be8cfc6e7ade 100644 (file)
@@ -1777,7 +1777,7 @@ Datum RASTER_getBandNoDataValue(PG_FUNCTION_ARGS)
 
     rt_raster_destroy(raster);
 
-    PG_RETURN_FLOAT4(nodata);
+    PG_RETURN_FLOAT8(nodata);
 }
 
 
index 4acee61f5235f52cfb49c683eb7fffc48f3c75a4..d22fd887ca4b29fa0a0027ffa5a24b66fa187752 100644 (file)
@@ -1031,8 +1031,8 @@ CREATE OR REPLACE FUNCTION st_astiff(rast raster, options text[] DEFAULT NULL, s
        DECLARE
                i int;
                num_bands int;
-               nodata int;
-               last_nodata int;
+               nodata double precision;
+               last_nodata double precision;
        BEGIN
                num_bands := st_numbands($1);
 
@@ -1780,12 +1780,12 @@ CREATE OR REPLACE FUNCTION st_hasnoband(rast raster, nband int DEFAULT 1)
 -----------------------------------------------------------------------
 
 CREATE OR REPLACE FUNCTION st_bandnodatavalue(rast raster, band integer)
-    RETURNS float4
+    RETURNS double precision
     AS 'MODULE_PATHNAME','RASTER_getBandNoDataValue'
     LANGUAGE 'C' IMMUTABLE STRICT;
 
 CREATE OR REPLACE FUNCTION st_bandnodatavalue(raster)
-    RETURNS float4
+    RETURNS double precision
     AS $$ SELECT st_bandnodatavalue($1, 1) $$
     LANGUAGE SQL IMMUTABLE STRICT;