[postgis-tickets] [PostGIS] #2965: ST_Distance, use_spheroid default
PostGIS
trac at osgeo.org
Tue Oct 14 15:32:02 PDT 2014
#2965: ST_Distance, use_spheroid default
-----------------------+----------------------------------------------------
Reporter: gitai | Owner: pramsey
Type: defect | Status: closed
Priority: critical | Milestone: PostGIS 2.1.5
Component: postgis | Version: 2.1.x
Resolution: wontfix | Keywords: ST_Distance, use_spheroid
-----------------------+----------------------------------------------------
Comment(by gitai):
The ticket is about ST_Distance, not about removing the implicit
geometry::geography cast across the board... fact is that calling
st_geogfunction(geom) is exactly what (unintentionally) happened to me due
to function overloading. Point being is that there is no "hint" as to what
ST_MakePoint returns as opposed to functions like ST_GeogFromText where
its clear, I mean like what makes a point more special for geometry than
geography? Now I'm not suggesting to rename ST_MakePoint to
ST_MakeGeomPoint,which is what it really does, as this would probably be a
breaking change, but at least enforce the type safety in ST_Distance in a
consistent manner.. I don't understand how this can be classified as
"enhancement" seems like as a small overlooked usability bug that's
painful to spot especially for newcomers to postgis (like me :)
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2965#comment:16>
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