Skip to content

Commit

Permalink
Merge pull request #755 from ddanielvaz/fix-4189
Browse files Browse the repository at this point in the history
Fix #4189
  • Loading branch information
alexbruy committed Aug 8, 2013
2 parents 6fe077c + 25c4337 commit b88b76b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/qgsgeometry.cpp
Expand Up @@ -143,7 +143,7 @@ static GEOSInit geosinit;
#define GEOSIntersection(g0,g1) GEOSIntersection( (GEOSGeometry*) g0, (GEOSGeometry*)g1 )
#define GEOSBuffer(g, d, s) GEOSBuffer( (GEOSGeometry*) g, d, s )
#define GEOSArea(g, a) GEOSArea( (GEOSGeometry*) g, a )
#define GEOSSimplify(g, t) GEOSSimplify( (GEOSGeometry*) g, t )
#define GEOSTopologyPreserveSimplify(g, t) GEOSTopologyPreserveSimplify( (GEOSGeometry*) g, t )
#define GEOSGetCentroid(g) GEOSGetCentroid( (GEOSGeometry*) g )

#define GEOSCoordSeq_getSize(cs,n) GEOSCoordSeq_getSize( (GEOSCoordSequence *) cs, n )
Expand Down Expand Up @@ -6449,7 +6449,7 @@ QgsGeometry* QgsGeometry::simplify( double tolerance )
}
try
{
return fromGeosGeom( GEOSSimplify( mGeos, tolerance ) );
return fromGeosGeom( GEOSTopologyPreserveSimplify( mGeos, tolerance ) );
}
CATCH_GEOS( 0 )
}
Expand Down

0 comments on commit b88b76b

Please sign in to comment.