[postgis-devel] [PostGIS] #1536: [raster] There should be an option for setting the nodata value in certain variants of ST_Intersection(raster, raster)

PostGIS trac at osgeo.org
Tue Feb 7 11:16:12 PST 2012


#1536: [raster] There should be an option for setting the nodata value in certain
variants of ST_Intersection(raster, raster)
---------------------+------------------------------------------------------
 Reporter:  pracine  |       Owner:  pracine      
     Type:  defect   |      Status:  new          
 Priority:  low      |   Milestone:  PostGIS 2.0.0
Component:  raster   |     Version:  trunk        
 Keywords:           |  
---------------------+------------------------------------------------------

Comment(by pracine):

 I would say:

 FIRST

 ST_MapAlgebraExpr(rast1, band1, rast2, band2, '[rast1.val]',
 ST_BandPixelType(rast1, band1), 'INTERSECTION', nodata1, nodata1,
 nodata1);
 SECOND

 ST_MapAlgebraExpr(rast1, band1, rast2, band2, '[rast2.val]',
 ST_BandPixelType(rast2, band2), 'INTERSECTION', nodata2, nodata2,
 nodata2);

 BOTH is FIRST and then SECOND

 The extent should always be 'INTERSECTION' unless we want to support more
 possibilities and nodata1 (not nodata2) should replace the existing nodata
 for 'FIRST'.

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/1536#comment:22>
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