[postgis-devel] [PostGIS] #742: raster should not rely on function names for operators

PostGIS trac at osgeo.org
Thu Dec 30 09:44:22 PST 2010


#742: raster should not rely on function names for operators
----------------------------+-----------------------------------------------
 Reporter:  robe            |       Owner:  pracine      
     Type:  defect          |      Status:  new          
 Priority:  blocker         |   Milestone:  PostGIS 2.0.0
Component:  postgis raster  |     Version:  trunk        
 Keywords:                  |  
----------------------------+-----------------------------------------------
 Okay I see why raster is failing on my gserialized install.  Nothing wrong
 with my install.  It is because raster is relying on the actual underlying
 function names rather than the operator name and since the non-gserialized
 and gserialized have different function names, this poses a problem.


 Here are the errors I get when gserialized is enabled.


 {{{
  ERROR:  function geometry_overleft(geometry, geometry) does not exist
 LINE 3:     AS 'select geometry_overleft($1::geometry, $2::geometry)...
                        ^
 }}}

 Get the same error for geometry_overright, geometry_overright,
 geometry_right, geometry_overabove etc.

 Note that in gserialized case, the underlying operators are called
 geometry_2d_overleft etc.

 Seems the solution might be to change raster code to use the operators
 instead like

 $1::geometry &< $2::geometry

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