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

PostGIS trac at osgeo.org
Fri Nov 11 14:50:36 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:                  |  
----------------------------+-----------------------------------------------
 I was starting to put together documentation for this when I realized --
 this does not make sense:


 {{{
 CREATE OR REPLACE FUNCTION st_mapalgebrafct(IN rast1 raster, IN band1
 integer, IN rast2 raster, IN band2 integer, IN userfunction regprocedure
 DEFAULT NULL::text, IN pixeltype text DEFAULT 'INTERSECTION'::text, IN
 extenttype text DEFAULT NULL::text[], VARIADIC userargs text[])
   RETURNS raster AS
 '$libdir/rtpostgis-2.0', 'RASTER_mapAlgebra2'
   LANGUAGE c STABLE
   COST 1;
 ALTER FUNCTION st_mapalgebrafct(raster, integer, raster, integer,
 regprocedure, text, text, text[])
 }}}

 Why is default for pixeltype INTERSECTION, should it be like 8BUI or
 something?

 The defaults don't even seem to match the signature

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1283>
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