[postgis-devel] [PostGIS] #1283: ST_MapAlgebraFct 2 band version function proto looks wrong

PostGIS trac at osgeo.org
Fri Nov 11 15:37:00 PST 2011


#1283: ST_MapAlgebraFct 2 band version function proto looks wrong
----------------------------+-----------------------------------------------
 Reporter:  robe            |       Owner:  pracine      
     Type:  defect          |      Status:  new          
 Priority:  blocker         |   Milestone:  PostGIS 2.0.0
Component:  postgis raster  |     Version:  trunk        
 Keywords:                  |  
----------------------------+-----------------------------------------------

Comment(by robe):

 Sorry that was a copy and paste mistake.  I meant: These two

 http://trac.osgeo.org/postgis/browser/trunk/raster/rt_pg/rtpostgis.sql.in.c#L1701

 {{{
 CREATE OR REPLACE FUNCTION st_mapalgebrafct(
         rast1 raster,
         rast2 raster,
         userfunction regprocedure,
         pixeltype text DEFAULT NULL, extenttype text DEFAULT
 'INTERSECTION',
         VARIADIC userargs text[] DEFAULT NULL
 )
         RETURNS raster
         AS $$ SELECT st_mapalgebrafct($1, 1, $2, 1, $3, $4, $5, VARIADIC
 $6) $$
         LANGUAGE 'SQL' STABLE;
 }}}

 http://trac.osgeo.org/postgis/browser/trunk/raster/rt_pg/rtpostgis.sql.in.c#L1712

 {{{
 CREATE OR REPLACE FUNCTION st_mapalgebrafct(
         rast1 raster,
         rast2 raster,
         userfunction regprocedure,
         VARIADIC userargs text[]
 )
         RETURNS raster
         AS $$ SELECT st_mapalgebrafct($1, 1, $2, 1, $3, NULL,
 'INTERSECTION', VARIADIC $4) $$
         LANGUAGE 'SQL' STABLE;
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1283#comment:6>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-devel mailing list