[postgis-devel] [PostGIS] #1283: ST_MapAlgebraFct 2 band version function proto looks wrong
PostGIS
trac at osgeo.org
Fri Nov 11 15:16:26 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):
Okay I think we have a small little problem here, which may or may not
related. you are right I'm not seeing this in the rtpostgis.sql.
But how would one distinguish between this:
{{{
CREATE OR REPLACE FUNCTION st_mapalgebrafct(
rast1 raster, band1 integer,
rast2 raster, band2 integer,
userfunction regprocedure,
pixeltype text DEFAULT NULL, extenttype text DEFAULT
'INTERSECTION',
VARIADIC userargs text[] DEFAULT NULL
)
}}}
and
{{{
CREATE OR REPLACE FUNCTION st_mapalgebrafct(
rast1 raster, band1 integer,
rast2 raster, band2 integer,
userfunction regprocedure,
VARIADIC userargs text[] DEFAULT NULL
)
}}}
After all in the first - those extra texts could easily fall into VARIADIC
loop since they are optional. I think your first one the arguments should
not have defaults.
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1283#comment:3>
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