Skip to content

Commit b88b76b

Browse files
committedAug 8, 2013
Merge pull request #755 from ddanielvaz/fix-4189
Fix #4189
2 parents 6fe077c + 25c4337 commit b88b76b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/core/qgsgeometry.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ static GEOSInit geosinit;
143143
#define GEOSIntersection(g0,g1) GEOSIntersection( (GEOSGeometry*) g0, (GEOSGeometry*)g1 )
144144
#define GEOSBuffer(g, d, s) GEOSBuffer( (GEOSGeometry*) g, d, s )
145145
#define GEOSArea(g, a) GEOSArea( (GEOSGeometry*) g, a )
146-
#define GEOSSimplify(g, t) GEOSSimplify( (GEOSGeometry*) g, t )
146+
#define GEOSTopologyPreserveSimplify(g, t) GEOSTopologyPreserveSimplify( (GEOSGeometry*) g, t )
147147
#define GEOSGetCentroid(g) GEOSGetCentroid( (GEOSGeometry*) g )
148148

149149
#define GEOSCoordSeq_getSize(cs,n) GEOSCoordSeq_getSize( (GEOSCoordSequence *) cs, n )
@@ -6449,7 +6449,7 @@ QgsGeometry* QgsGeometry::simplify( double tolerance )
64496449
}
64506450
try
64516451
{
6452-
return fromGeosGeom( GEOSSimplify( mGeos, tolerance ) );
6452+
return fromGeosGeom( GEOSTopologyPreserveSimplify( mGeos, tolerance ) );
64536453
}
64546454
CATCH_GEOS( 0 )
64556455
}

0 commit comments

Comments
 (0)
Please sign in to comment.