mirror of
https://git.osgeo.org/gitea/postgis/postgis
synced 2024-10-24 09:02:37 +00:00
7f35d8de48
git-svn-id: http://svn.osgeo.org/postgis/trunk@12058 b70326c6-7e19-0410-871a-916f4a2858ee
35 lines
1.3 KiB
SQL
35 lines
1.3 KiB
SQL
-----------------------------------------------------------------------
|
|
-- $Id$
|
|
--
|
|
-- Copyright (c) 2011 Jorge Arevalo <jorge.arevalo@deimos-space.com>
|
|
--
|
|
-- This program is free software; you can redistribute it and/or
|
|
-- modify it under the terms of the GNU General Public License
|
|
-- as published by the Free Software Foundation; either version 2
|
|
-- of the License, or (at your option) any later version.
|
|
--
|
|
-- This program is distributed in the hope that it will be useful,
|
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
-- GNU General Public License for more details.
|
|
--
|
|
-- You should have received a copy of the GNU General Public License
|
|
-- along with this program; if not, write to the Free Software Foundation,
|
|
-- Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
-----------------------------------------------------------------------
|
|
|
|
CREATE TABLE empty_raster_test (
|
|
rid numeric,
|
|
rast raster
|
|
);
|
|
|
|
INSERT INTO empty_raster_test
|
|
VALUES (1, ST_MakeEmptyRaster( 100, 100, 0.0005, 0.0005, 1, 1, 0, 0, 4326) );
|
|
|
|
-------------------------------------------------------------------
|
|
-- st_hasnodata
|
|
-----------------------------------------------------------------------
|
|
select st_hasnoband(rast) from empty_raster_test;
|
|
|
|
DROP TABLE empty_raster_test;
|