[postgis-devel] [PostGIS] #1252: SRID appearing in ST_AsText for particular multipolygon

PostGIS trac at osgeo.org
Sun Nov 6 16:07:57 PST 2011


#1252: SRID appearing in ST_AsText for particular multipolygon
-----------------------------+----------------------------------------------
 Reporter:  robe             |       Owner:  pramsey      
     Type:  defect           |      Status:  new          
 Priority:  medium           |   Milestone:  PostGIS 1.5.4
Component:  postgis          |     Version:  1.5.X        
 Keywords:  windows, 64-bit  |  
-----------------------------+----------------------------------------------

Comment(by pramsey):

 Voila, the small test case:
 {{{
 select st_summary(st_union(geom))
 from (
  select (st_dump('SRID=4326;MULTIPOLYGON(((0 0, 1 1, 1 0, 0 0)),((4 4, 4
 5, 5 5, 4 4)))'::geometry)).geom
 ) as foo;

 }}}
 Probably the union is the culprit, leaving an SRID intact on a
 subgeometry. This works for multipoly, but not multipoint, odd.

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