Ticket #644 (closed defect: fixed)
[raster] ST_MapAlgebra raster/scripts/plpgsql some broken
| Reported by: | robe | Owned by: | pracine |
|---|---|---|---|
| Priority: | blocker | Milestone: | PostGIS 2.0.0 |
| Component: | raster | Version: | trunk |
| Keywords: | Cc: |
Description
-- this is invalid (that should be $4 I believe)
CREATE OR REPLACE FUNCTION ST_MapAlgebra(rast raster, band integer, expression text, nodatavalexpr text)
RETURNS raster
AS 'SELECT ST_MapAlgebra($1, $2, $3, nodatavalexpr, NULL)'
LANGUAGE 'SQL' IMMUTABLE;
--- this is invalid (it might be because I'm testing on 9.1 (though 9.0 should have the same issue) since both support named variables function call syntax and so are more stringent about naming -
CREATE OR REPLACE FUNCTION ST_MapAlgebra(rast raster, expression text, nodatavalexpr text)
RETURNS raster
AS 'SELECT ST_MapAlgebra($1, 1, $2, $3, NULL)'
LANGUAGE 'SQL' IMMUTABLE;
gives error
ERROR: cannot change name of input parameter "pixeltype" HINT: Use DROP FUNCTION first.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

