[postgis-devel] [PostGIS] #681: ST_AsGML crashes on POLYGON EMPTY

PostGIS trac at osgeo.org
Wed Dec 8 09:26:13 PST 2010


#681: ST_AsGML crashes on POLYGON EMPTY
---------------------+------------------------------------------------------
 Reporter:  robe     |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  medium   |   Milestone:  PostGIS 2.0.0
Component:  postgis  |     Version:  trunk        
 Keywords:           |  
---------------------+------------------------------------------------------
 Crash
 {{{
 SELECT ST_AsGML(ST_GeomFromText('POLYGON EMPTY',4326)) As result

 }}}
 -- though this works okay --

 {{{SELECT ST_AsGML(ST_GeomFromText('GEOMETRYCOLLECTION EMPTY',4326)) As
 result;
 }}}

 yields which is same answer as 1.5:
 <gml:MultiGeometry srsName="EPSG:4326"></gml:MultiGeometry>

 -- and this works okay --

 {{{
 SELECT ST_AsGML(ST_GeomFromText('POINT EMPTY',4326)) As result;
 }}}

 yields below which is not the same answer as 1.5, but I assume that is a
 planned change.
 <gml:MultiPoint srsName="EPSG:4326"></gml:MultiPoint>

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