[postgis-tickets] [PostGIS] #3777: POINT EMPTY, POINT 0 0 anomaly

PostGIS trac at osgeo.org
Wed Jun 21 14:54:32 PDT 2017


#3777: POINT EMPTY, POINT 0 0 anomaly
----------------------+---------------------------
  Reporter:  robe     |      Owner:  pramsey
      Type:  defect   |     Status:  new
  Priority:  medium   |  Milestone:  PostGIS 2.3.3
 Component:  postgis  |    Version:  2.3.x
Resolution:           |   Keywords:
----------------------+---------------------------

Comment (by robe):

 okay strk per your suggestion, here is what UNION does:


 {{{
 SELECT ST_AsText(geom) txt
 FROM (
 SELECT 'POINT(0 0)'::geometry geom
 UNION
 SELECT 'POINT(0 0)'::geometry geom
 UNION
 SELECT 'POINT(0 0)'::geometry geom
 UNION
 SELECT 'POINT(0 1)'::geometry geom
 UNION
 SELECT 'LINESTRING(0 0,0 1)'::geometry geom
 UNION
 SELECT 'GEOMETRYCOLLECTION EMPTY'::geometry geom
 UNION
 SELECT 'POINT EMPTY'::geometry geom
 ) foo;
 }}}

 In 2.4.0dev/2.3.2 it returns:


 {{{
            txt
 --------------------------
  POINT(0 0)
  POINT EMPTY
  POINT(0 0)
  LINESTRING(0 0,0 1)
  GEOMETRYCOLLECTION EMPTY
  POINT(0 1)
 (6 rows)
 }}}


 In my PostGIS 1.5.5 returns


 {{{
            txt
 --------------------------
  GEOMETRYCOLLECTION EMPTY
  LINESTRING(0 0,0 1)
  GEOMETRYCOLLECTION EMPTY
  POINT(0 1)
 (4 rows)

 }}}

--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3777#comment:5>
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