[postgis-devel] [PostGIS] #1515: [raster] Optimization in ST_MapAlgebra fails
PostGIS
trac at osgeo.org
Tue Jan 31 11:20:16 PST 2012
#1515: [raster] Optimization in ST_MapAlgebra fails
----------------------------+-----------------------------------------------
Reporter: pracine | Owner: pracine
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.0.0
Component: postgis raster | Version: trunk
Keywords: |
----------------------------+-----------------------------------------------
When doing:
SELECT ST_MapAlgebraExpr(ST_AddBand(ST_MakeEmptyRaster(3, 3, 0, 0, 1, 1,
0, 0, -1), '32BSI'::text, 1, -1), 1, '32BF'::text, 'rast'::text)
to convert a 32BSI band to a 32BF band, RASTER_mapAlgebraExpr() fails to
copy the band (this is an optimization when the map algebra expression
resume to 'rast') with this notice:
NOTICE: rt_raster_copy_band: Second raster has no band.
I am pretty sure this line in rt_pg.c:
rt_raster_copy_band(raster, newrast, nband - 1, 0);
should look like:
rt_raster_copy_band(newrast, raster, nband - 1, 0);
Unfortunately I can't commit now as I still don<t have a working windows
build.
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1515>
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