[postgis-tickets] [PostGIS] #2965: ST_Distance, use_spheroid default

PostGIS trac at osgeo.org
Tue Oct 14 13:23:27 PDT 2014


#2965: ST_Distance, use_spheroid default
---------------------------------------+------------------------------------
 Reporter:  gitai                      |       Owner:  pramsey      
     Type:  defect                     |      Status:  new          
 Priority:  critical                   |   Milestone:  PostGIS 2.1.5
Component:  postgis                    |     Version:  2.1.x        
 Keywords:  ST_Distance, use_spheroid  |  
---------------------------------------+------------------------------------

Comment(by pramsey):

 Removing the implicit geometry::geography cast would be a big change,
 though not probably one that would effect many people, since nearly every
 geography function has an exact geometry analogue, so the case of calling
 st_geogfunction(geom) almost never happens current. The reverse, on the
 other hand, happens quite a lot.

 And, in fact, we don't have an implicit cast in the other direct, for
 reasons that are probably good, but I cannot recall.
 {{{
 select st_x('POINT(1 2)'::geography);
                ^
 HINT:  No function matches the given name and argument types. You might
 need to add explicit type casts.
 }}}

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