[postgis-devel] [PostGIS] #252: Text autocasting behavior of geography is breaking geometry functionality
PostGIS
trac at osgeo.org
Thu Sep 24 09:11:39 PDT 2009
#252: Text autocasting behavior of geography is breaking geometry functionality
----------------------+-----------------------------------------------------
Reporter: robe | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: postgis 1.5.0
Component: postgis | Version: trunk
Resolution: | Keywords:
----------------------+-----------------------------------------------------
Comment (by kneufeld):
Your proposed function does seem to solve the problem, but we would need
to add a textual overload for every function that also has a geography
overload.
ie. this also currently breaks.
SELECT ST_AsText('POINT(1 3)');
This means that geography would never benefit from the unknown->text
autocast (Not that it's a big deal, cuz I too am against autocasts
anyway). Additionally, whenever a new geography function was added,
developers would need to remember to add the textual overide to point to
the geometry method, avoiding ambiguity.
You are right. Not having these functions would likely be a breaking
change for many applications.
... or we skip a 1.5 release and go straight to 2.0 where a breaking
change is almost expected :)
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/252#comment:4>
PostGIS <http://trac.osgeo.org/postgis/>
PostGIS
More information about the postgis-devel
mailing list