Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Swap some geometry equality checks to topological checks
  • Loading branch information
nyalldawson committed Jan 5, 2018
1 parent 2d43dac commit b54cc36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/analysis/processing/qgsalgorithmsplitwithlines.cpp
Expand Up @@ -202,7 +202,7 @@ QVariantMap QgsSplitWithLinesAlgorithm::processAlgorithm( const QVariantMap &par
// between geometry and splitLine, only the first one is considered.
if ( result == QgsGeometry::Success ) // split occurred
{
if ( inGeom.equals( before ) )
if ( inGeom.isGeosEqual( before ) )
{
// bug in splitGeometry: sometimes it returns 0 but
// the geometry is unchanged
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/topology/topolTest.cpp
Expand Up @@ -412,7 +412,7 @@ ErrorList topolTest::checkDuplicates( double tolerance, QgsVectorLayer *layer1,
continue;
}

if ( g1.equals( g2 ) )
if ( g1.isGeosEqual( g2 ) )
{
duplicate = true;
duplicateIds.append( mFeatureMap2[*cit].feature.id() );
Expand Down

0 comments on commit b54cc36

Please sign in to comment.