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

PostGIS trac at osgeo.org
Fri Mar 28 05:01:11 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:            |  
----------------------+-----------------------------------------------------

Comment(by robe):

 hey I just committed a similar ticket at #2686.  Though I consider this
 something we should not fix.  the reason being is that I always thought
 counting on autocasting very bad to encourage so the fix to me should be
 done in our tests.  We did it in 1.5 because we weren't allowed to
 introduce things that could break existing code.  In 2.0 I accepted that
 there would be cases of sloppy coding that people would need to fix.  So
 in my mind we SHOULD NOT CREATE OVERLOAD FUNCTIONS.

 In fact we have more serious issues with geography/geometry that people
 accidentally use ST_DWithin, ST_Intersects in combo with them -- and its a
 more pernicious problem because you get no error -- you just might get the
 wrong answer and your query doesn't use an index.

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