Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix #4189
  • Loading branch information
ddanielvaz committed Jul 21, 2013
1 parent 4b6bc3d commit 25c4337
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 @@ -6446,7 +6446,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 25c4337

Please sign in to comment.