[postgis-devel] [PostGIS] #210: segmentation faults in lwgeom_geos.c:pgis_union_geometry_array

PostGIS trac at osgeo.org
Tue Jun 30 05:37:48 PDT 2009


#210: segmentation faults in lwgeom_geos.c:pgis_union_geometry_array
------------------------+---------------------------------------------------
  Reporter:  dfuhriman  |       Owner:  robe         
      Type:  defect     |      Status:  assigned     
  Priority:  medium     |   Milestone:  postgis 1.3.7
 Component:  postgis    |     Version:  trunk        
Resolution:             |    Keywords:               
------------------------+---------------------------------------------------
Comment (by robe):

 Mark,

 Sorry to do this to you again.  Just when I thought I was out of ideas on
 how to trip you up.  The above test works fine now.

 I have this dataset I know is bad -- its got invalid geometries.  Never
 been able to union it -- because it always throws topological errors.

 In the 1.4b1 build -- for this
 SELECT ST_NumGeometries(ST_Union(the_geom))
 from neighborhoods;

 I get this thoughtful message
 NOTICE:  TopologyException: found non-noded intersection between 779062
 2.92623e+06, 779069 2.92622e+06 and 779072 2.92622e+06, 778970 2.92625e+06
 779068 2.92622e+06


 ERROR:  Union returned a NULL geometry.

 ********** Error **********

 ERROR: Union returned a NULL geometry.
 SQL state: XX000

 In your current incarnation -- I just get a null back - no explanation
 what so ever.  It does work of course in both cases if I exclude the
 invalid geometries.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/210#comment:27>
PostGIS <http://trac.osgeo.org/postgis/>
PostGIS


More information about the postgis-devel mailing list