mirror of
https://git.osgeo.org/gitea/postgis/postgis
synced 2024-10-24 09:02:37 +00:00
d7c4d5437d
git-svn-id: http://svn.osgeo.org/postgis/trunk@8184 b70326c6-7e19-0410-871a-916f4a2858ee
24 lines
987 B
SQL
24 lines
987 B
SQL
-----------------------------------------------------------------------
|
|
-- $Id$
|
|
--
|
|
-- Copyright (c) 2010 David Zwarg <dzwarg@azavea.com>
|
|
--
|
|
-- This is free software; you can redistribute and/or modify it under
|
|
-- the terms of the GNU General Public Licence. See the COPYING file.
|
|
-----------------------------------------------------------------------
|
|
|
|
-----------------------------------------------------------------------
|
|
--- Test of "Set" functions for properties of a raster band.
|
|
-----------------------------------------------------------------------
|
|
|
|
|
|
-----------------------------------------------------------------------
|
|
--- ST_SetBandNoDataValue
|
|
-----------------------------------------------------------------------
|
|
|
|
SELECT
|
|
(b1nodatavalue+1) AS expected,
|
|
st_bandnodatavalue(st_setbandnodatavalue(rast, 1, b1nodatavalue+1),1) AS obtained
|
|
FROM rt_band_properties_test
|
|
WHERE (b1nodatavalue+1) != st_bandnodatavalue(st_setbandnodatavalue(rast, 1, b1nodatavalue+1),1);
|