[postgis-tickets] [PostGIS] #2687: raster and vector overloading each others signatures

PostGIS trac at osgeo.org
Fri Mar 28 04:33:19 PDT 2014


#2687: raster and vector overloading each others signatures
----------------------+-----------------------------------------------------
 Reporter:  pramsey   |       Owner:  pramsey      
     Type:  defect    |      Status:  new          
 Priority:  critical  |   Milestone:  PostGIS 2.1.2
Component:  postgis   |     Version:  2.1.x        
 Keywords:            |  
----------------------+-----------------------------------------------------
 Our run_test harness does not test our geometry functions in the presence
 of the raster functions, and so we now have an 'unknown' signature
 collision problem similar to the one we had for geography:
 {{{
 up=# SELECT 'contains100', ST_contains('POLYGON((0 0, 0 10, 10 10, 10 0, 0
 0))', 'POINT(5 5)');
 ERROR:  function st_contains(unknown, unknown) is not unique
 }}}
 In geography we decided to default to letting geometry always win the
 unknown collisions, so we added extra functions in all the cases where the
 functions had the same signatures:
 {{{
 CREATE OR REPLACE FUNCTION ST_Intersects(text, text)
         RETURNS boolean AS
         $$ SELECT ST_Intersects($1::geometry, $2::geometry);  $$
         LANGUAGE 'sql' IMMUTABLE ;
 }}}
 It seems like we need to find the collisions in raster and add over-rides
 there too. This issue also causes failures when you use run_test in
 'extensions' mode, since in *that* case, the raster and geometry modules
 *are* tested simultaneously.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2687>
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-tickets mailing list