[postgis-devel] [PostGIS] #2129: ST_CollectionHomogenize drops SRID

PostGIS trac at osgeo.org
Mon Dec 3 04:15:41 PST 2012


#2129: ST_CollectionHomogenize drops SRID
-------------------------------------------+--------------------------------
 Reporter:  michischolz                    |       Owner:  pramsey      
     Type:  defect                         |      Status:  new          
 Priority:  low                            |   Milestone:  PostGIS 2.0.2
Component:  postgis                        |     Version:  2.0.x        
 Keywords:  ST_CollectionHomogenize, SRID  |  
-------------------------------------------+--------------------------------
 Moin.
 When applying ''ST_CollectionHomogenize'' to a GeometryCollection the SRID
 is dropped:


 {{{
 SELECT ST_SRID(
   ST_CollectionHomogenize(
     ST_Collect(
       ST_GeomFromText('MultiPoint((0 0))', 32632)
     )
   )
 )
 }}}


 returns 0 for the SRID. Replace MultiPoint((0 0)) by Point(0 0) and 32632
 is returned correctly.

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