mirror of
https://git.osgeo.org/gitea/postgis/postgis
synced 2024-10-24 00:52:40 +00:00
Added regression test for error case reported in #1638.
git-svn-id: http://svn.osgeo.org/postgis/trunk@9379 b70326c6-7e19-0410-871a-916f4a2858ee
This commit is contained in:
parent
da2ddaa065
commit
c566325249
|
@ -44,3 +44,20 @@ WITH op AS ( select rast AS rin,
|
|||
ST_MapAlgebraExpr(rast, 1, NULL, 'SELECT g from (select [rast],NULL::double precision as g) as foo', 2)
|
||||
AS rout FROM ST_TestRaster(0, 0, 10) rast )
|
||||
SELECT 'T11.2', ST_Value(rin, 1, 1), ST_Value(rout, 1, 1) FROM op;
|
||||
|
||||
-- Test pracine's new bug #1638
|
||||
SELECT 'T12',
|
||||
ST_Value(rast, 1, 2) = 1,
|
||||
ST_Value(rast, 2, 1) = 2,
|
||||
ST_Value(rast, 4, 3) = 4,
|
||||
ST_Value(rast, 3, 4) = 3
|
||||
FROM ST_MapAlgebraExpr(
|
||||
ST_AddBand(
|
||||
ST_MakeEmptyRaster(10, 10, 0, 0, 0.001, 0.001, 0, 0, 4269),
|
||||
'8BUI'::text,
|
||||
1,
|
||||
0
|
||||
),
|
||||
'32BUI',
|
||||
'[rast.x]'
|
||||
) AS rast;
|
||||
|
|
|
@ -23,3 +23,4 @@ T10.8.4|10|30
|
|||
ERROR: division by zero
|
||||
T11.1|10|2
|
||||
T11.2|10|2
|
||||
T12|t|t|t|t
|
||||
|
|
Loading…
Reference in a new issue