[postgis-devel] [PostGIS] #1869: ST_AsBinary is not unique (again)

PostGIS trac at osgeo.org
Mon Sep 3 04:34:24 PDT 2012


#1869: ST_AsBinary is not unique (again)
----------------------+-----------------------------------------------------
  Reporter:  nidi     |       Owner:  robe         
      Type:  defect   |      Status:  new          
  Priority:  medium   |   Milestone:  PostGIS 2.0.2
 Component:  postgis  |     Version:  2.0.x        
Resolution:           |    Keywords:               
----------------------+-----------------------------------------------------

Comment(by erilem):

 So this ticket's description reports about

 {{{
 SELECT ST_AsBinary('POINT(1 2)');
 }}}

 failing with this error:

 {{{
 ERROR:  function ST_AsBinary(unknown) is not unique
 }}}

 I've myself reported on a UNION-based query that also fails with a
 similar, though different error:

 {{{
 ERROR:  function ST_AsBinary(bytea) is not unique
 }}}

 Here's a simpler query that triggers the same error:

 {{{
 SELECT As_AsBinary(ST_AsBinary(ST_GeomFromText('POINT(1 2)')));
 }}}

 {{{ST_AsBinary}}} returns a {{{bytea}}}, which is a type that
 {{{ST_AsBinary}}} does no longer accept as its input argument.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1869#comment:7>
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-devel mailing list