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

PostGIS trac at osgeo.org
Mon Oct 13 06:08:01 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 gitai):

 hmm.. new to postgis .. very confusing..

 http://postgis.net/docs/manual-dev/ST_MakePoint.html

 1. "Note x is longitude and y is latitude"

    --Return point marked as WGS 84 long lat
 2. SELECT ST_SetSRID(ST_MakePoint(-71.1043443253471,
 42.3150676015829),4326);


 Seems very dangerous .. Search the internet and you will see that
 ST_MakePoint is very popular method to quickly create points for params
 for geography calculations.. I guess people rely on the autocast.

 BTW, Is there a way to create a geography in PostGIS without cast?

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