Skip to content
Permalink
Browse files

Swap some geometry equality checks to topological checks

  • Loading branch information
nyalldawson committed Jan 5, 2018
1 parent 2d43dac commit b54cc36ba0e4ba335621e0d46ec77034e065ea4e
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/analysis/processing/qgsalgorithmsplitwithlines.cpp
  2. +1 −1 src/plugins/topology/topolTest.cpp
@@ -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
@@ -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() );

0 comments on commit b54cc36

Please sign in to comment.
You can’t perform that action at this time.