[postgis-devel] [PostGIS] #1567: [raster] The SRID of the empty raster returned by ST_MapAlgebraExpr(rast, rast, 'intersection') should be 0

PostGIS trac at osgeo.org
Fri Feb 10 13:23:55 PST 2012


#1567: [raster] The SRID of the empty raster returned by ST_MapAlgebraExpr(rast,
rast, 'intersection') should be 0
---------------------+------------------------------------------------------
 Reporter:  pracine  |       Owner:  pracine      
     Type:  defect   |      Status:  new          
 Priority:  low      |   Milestone:  PostGIS 2.0.0
Component:  raster   |     Version:  trunk        
 Keywords:           |  
---------------------+------------------------------------------------------
 {{{
 CREATE OR REPLACE FUNCTION ST_TestRaster(ulx float8, uly float8, val
 float8)
     RETURNS raster AS
     $$
     DECLARE
     BEGIN
         RETURN ST_AddBand(ST_MakeEmptyRaster(3, 3, ulx, uly, 1, 1, 0, 0,
 -1), '32BF', val, -1);
     END;
     $$
     LANGUAGE 'plpgsql';

 SELECT ST_Metadata(ST_MapAlgebraExpr(ST_TestRaster(0, 0, 1),
 ST_TestRaster(4, 4, 1), '[rast1.val] + [rast2.val]', '32BF',
 'INTERSECTION'));
 }}}

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