[postgis-tickets] [PostGIS] #2965: ST_Distance, use_spheroid default
PostGIS
trac at osgeo.org
Mon Oct 13 05:35:55 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):
What is happening is that ST_MakePoint won't give you a geography type but
a geoemtry type
http://postgis.net/docs/manual-dev/ST_MakePoint.html
Then I guess when you call ST_Distance with false/true for Sphere you will
get an autocast to geography since that option is not valid for geometry
type.
I guess the ticket as it stands should be closed as invalid, but maybe it
is worth discussing if the auto cast in this case is a little dangerous.
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2965#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