[QGIS-trac] Re: [Quantum GIS] #1424: split feature segfault

Quantum GIS qgis at qgis.org
Thu Nov 27 08:05:25 EST 2008


#1424: split feature segfault
--------------------------------------------------------------+-------------
        Reporter:  wonder                                     |         Owner:  mhugent      
            Type:  bug                                        |        Status:  new          
        Priority:  critical: causes crash or data corruption  |     Milestone:  Version 1.0.0
       Component:  Digitising                                 |       Version:  HEAD         
      Resolution:                                             |      Keywords:  split        
Platform_version:                                             |      Platform:  All          
        Must_fix:  No                                         |   Status_info:  0            
--------------------------------------------------------------+-------------
Comment (by mhugent):

 Ok, I compiled geos 2.2.3 and I also have the crash.
 The geos documentation also gives the reason (see below). I'm going to
 look for a workaround for geos2 (or an ifdef).

 /* May be called on all geometries in GEOS 3.x, returns -1 on error and 1
 00374  * for non-multi geometries. Older GEOS versions only accept
 00375  * GeometryCollections or Multi* geometries here, and are likely to
 crash
 00376  * when feeded simple geometries, so beware if you need
 compatibility with
 00377  * old GEOS versions.
 00378  */
 00379 extern int GEOS_DLL GEOSGetNumGeometries(const GEOSGeometry* g1);

-- 
Ticket URL: <http://trac.osgeo.org/qgis/ticket/1424#comment:5>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list