mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-25 00:05:03 -04:00
Swap some geometry equality checks to topological checks
This commit is contained in:
parent
2d43dac0b5
commit
b54cc36ba0
@ -202,7 +202,7 @@ QVariantMap QgsSplitWithLinesAlgorithm::processAlgorithm( const QVariantMap &par
|
|||||||
// between geometry and splitLine, only the first one is considered.
|
// between geometry and splitLine, only the first one is considered.
|
||||||
if ( result == QgsGeometry::Success ) // split occurred
|
if ( result == QgsGeometry::Success ) // split occurred
|
||||||
{
|
{
|
||||||
if ( inGeom.equals( before ) )
|
if ( inGeom.isGeosEqual( before ) )
|
||||||
{
|
{
|
||||||
// bug in splitGeometry: sometimes it returns 0 but
|
// bug in splitGeometry: sometimes it returns 0 but
|
||||||
// the geometry is unchanged
|
// the geometry is unchanged
|
||||||
|
@ -412,7 +412,7 @@ ErrorList topolTest::checkDuplicates( double tolerance, QgsVectorLayer *layer1,
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( g1.equals( g2 ) )
|
if ( g1.isGeosEqual( g2 ) )
|
||||||
{
|
{
|
||||||
duplicate = true;
|
duplicate = true;
|
||||||
duplicateIds.append( mFeatureMap2[*cit].feature.id() );
|
duplicateIds.append( mFeatureMap2[*cit].feature.id() );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user