[postgis-devel] [PostGIS] #937: Regression: can't dump POLYGON EMPTY

PostGIS trac at osgeo.org
Thu May 5 08:26:22 PDT 2011


#937: Regression: can't dump POLYGON EMPTY
----------------------+-----------------------------------------------------
 Reporter:  strk      |       Owner:  pramsey      
     Type:  defect    |      Status:  new          
 Priority:  critical  |   Milestone:  PostGIS 2.0.0
Component:  postgis   |     Version:  trunk        
 Keywords:            |  
----------------------+-----------------------------------------------------
 This was fixed with 1.4.2 and 1.5.1, but is back in 2.0 ??

 {{{
 =# select postgis_lib_version();
 2.0.0SVN
 =# select '01030000000100000000000000'::geometry;
 ERROR:  Point array has < 1 ordinates!
 =# select st_astext('01030000000100000000000000'::geometry);
 POLYGON(())
 }}}

 In 1.4.2 we get:

 {{{
 =# select postgis_lib_version();
 1.4.2
 =# select '01030000000100000000000000'::geometry;
 01030000000100000000000000
 =# select st_astext('01030000000100000000000000'::geometry);
 POLYGON( EMPTY)
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/937>
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