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

PostGIS trac at osgeo.org
Sun Nov 6 11:25:23 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):

 Somehow you've created a geometry collection that has the SRID set on an
 interior geometry. Now, that's not supposed to happen, so when you push it
 through other, saner, processes the result gets washed away. And if you go
 into geography (or into PostGIS 2.0) where it's not even possible to
 represent such a thing in the serialization, the effect is guaranteed to
 disappear.

 Since this problem is not actually a corruption of the geometry itself,
 just a slight breaking of representation rules, and because it gets washed
 away so easily, and because nobody else is likely going to be able to
 product it, I'd suggest closing as wontfix. If we're concerned about the
 AsText representation, we could leave this open and try to ensure that the
 WKT generator in 1.5 (which of course has been replaced in 2.0) doesn't
 output SRID information on subgeometries as a matter of policy. It won't
 fix the geometry, but it will hide the effect. If we're going to spend
 time farting around with 1.5 representation functions though, the bug in
 the WKB parser is far more pressing (the fact that malformed WKB can crash
 the backend is a pretty big problem, which unfortunately requires a pretty
 big solution).

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