Skip to content

Commit

Permalink
Restore _makeUnion
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo Mercier committed Jun 16, 2014
1 parent 5963510 commit 1613d84
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/core/qgsgeometry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6402,16 +6402,12 @@ namespace QgsGeometryAlgorithms

QgsGeometry* unaryUnion( const QList<QgsGeometry*>& geometryList )
{
QVector<GEOSGeometry*> geoms;
QList<GEOSGeometry*> geoms;
foreach( QgsGeometry* g, geometryList )
{
geoms.append( GEOSGeom_clone(g->asGeos()) );
}

GEOSGeometry* geomCollection = 0;
geomCollection = createGeosCollection( GEOS_GEOMETRYCOLLECTION, geoms );
GEOSGeometry* geomUnion = GEOSUnaryUnion( geomCollection );
GEOSGeom_destroy( geomCollection );
GEOSGeometry *geomUnion = _makeUnion( geoms );
QgsGeometry *ret = new QgsGeometry();
ret->fromGeos( geomUnion );
return ret;
Expand Down

0 comments on commit 1613d84

Please sign in to comment.