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

PostGIS trac at osgeo.org
Mon Oct 13 06:16:39 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 nicklas):

 But the easiest in your case I guess would be to do the cast manually:

 select ST_Distance(ST_SetSRID(ST_MakePoint(-73.9662500, 40.7834300),
 4326)::geography, ST_SetSRID(ST_MakePoint(-74.1960983, 40.739418),
 4326)::geography);

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