[postgis-devel] [PostGIS] #746: ST_Dump with GSerialized POINT EMPTY and EWKT/AsText mismatch?

PostGIS trac at osgeo.org
Mon Jun 20 14:03:36 PDT 2011


#746: ST_Dump with GSerialized POINT EMPTY and  EWKT/AsText mismatch?
---------------------+------------------------------------------------------
 Reporter:  robe     |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  medium   |   Milestone:  PostGIS 2.0.0
Component:  postgis  |     Version:  trunk        
 Keywords:           |  
---------------------+------------------------------------------------------

Comment(by pramsey):

 A deeper question is what the right answer to the ST_Dump() question is.
 Try the following:
 {{{
 SELECT ST_Dump(ST_GeomFromText('POINT EMPTY',4326));
 SELECT ST_Dump(ST_GeomFromText('LINESTRING EMPTY',4326));
 SELECT ST_Dump(ST_GeomFromText('MULTILINESTRING EMPTY',4326));
 SELECT ST_Dump(ST_GeomFromText('GEOMETRYCOLLECTION EMPTY',4326));
 }}}
 Try the final one in PostGIS 1.5 too. That seems to indicate the "right"
 answer for ST_Dump(empty) is "no records".

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/746#comment:4>
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