<refsynopsisdiv>
<funcsynopsis>
- <funcprototype>
- <funcdef>integer <function>ST_BandNoDataValue</function></funcdef>
- <paramdef><type>raster </type> <parameter>rast</parameter></paramdef>
- </funcprototype>
<funcprototype>
- <funcdef>integer <function>ST_BandNoDataValue</function></funcdef>
+ <funcdef>double precision <function>ST_BandNoDataValue</function></funcdef>
<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>
- <paramdef><type>integer </type> <parameter>bandnum</parameter></paramdef>
+ <paramdef><type>integer </type> <parameter>bandnum=1</parameter></paramdef>
</funcprototype>
</funcsynopsis>
</refsynopsisdiv>
-- Raster Band Accessors
-----------------------------------------------------------------------
-CREATE OR REPLACE FUNCTION st_bandnodatavalue(rast raster, band integer)
+CREATE OR REPLACE FUNCTION st_bandnodatavalue(rast raster, band integer DEFAULT 1)
RETURNS double precision
AS 'MODULE_PATHNAME','RASTER_getBandNoDataValue'
LANGUAGE 'C' IMMUTABLE STRICT;
-CREATE OR REPLACE FUNCTION st_bandnodatavalue(raster)
- RETURNS double precision
- AS $$ SELECT st_bandnodatavalue($1, 1) $$
- LANGUAGE SQL IMMUTABLE STRICT;
-
CREATE OR REPLACE FUNCTION st_bandisnodata(rast raster, band integer,
forceChecking boolean)
RETURNS boolean
--function out parameters changed so can not just create or replace
DROP FUNCTION IF EXISTS ST_BandMetaData(raster, integer);
+
+--function out parameter changed
+DROP FUNCTION IF EXISTS ST_BandNoDataValue(raster, integer);
+--function no longer exists
+DROP FUNCTION IF EXISTS ST_BandNoDataValue(raster);