[postgis-devel] [PostGIS] #590: [raster] Two rasters version of ST_MapAlgebra

PostGIS trac at osgeo.org
Mon Oct 24 07:14:52 PDT 2011


#590: [raster] Two rasters version of ST_MapAlgebra
----------------------------+-----------------------------------------------
 Reporter:  pracine         |       Owner:  dustymugs    
     Type:  task            |      Status:  assigned     
 Priority:  critical        |   Milestone:  PostGIS 2.0.0
Component:  postgis raster  |     Version:  trunk        
 Keywords:                  |  
----------------------------+-----------------------------------------------

Comment(by dustymugs):

 > The question we have to solve, since this is specific to raster, is
 "Should we resample implicitely when needed?" This is also the first time
 we are facing the issue since this is the first function involving two
 rasters (the question should have raised for ST_Intersects(raster, raster)
 however. Bborie, does that mean that it is possible for two rasters being
 resampled differently to return a different result for ST_Intersects()?).
 For sure there should be a warning if implicit resampling is performed.
 >

 For the ST_Intersects() function, the alignment of the two rasters do not
 matter.  Only the SRID must be the same.  This is because ST_Intersects
 uses the grid/pixel lines and sees where they intersect.  So being aligned
 and resampling is unnecessary.

 As for your question "does that mean that it is possible for two rasters
 being resampled differently to return a different result for
 ST_Intersects()?", no.  Whatever resampling is done, the output resampled
 raster's extent would contain the entirety of the input raster.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/590#comment:17>
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