Skip to content
Permalink
Browse files

Make gap neighbour check more robust

  • Loading branch information
m-kuhn committed Nov 11, 2020
1 parent d334f5a commit 0ad8ff61388353809d5a1a8accc08b0af00ed296
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/analysis/vector/geometry_checker/qgsgeometrygapcheck.cpp
@@ -171,7 +171,7 @@ void QgsGeometryGapCheck::collectErrors( const QMap<QString, QgsFeaturePool *> &
for ( const QgsGeometryCheckerUtils::LayerFeature &layerFeature : layerFeatures )
{
const QgsGeometry geom = layerFeature.geometry();
if ( gapGeomEngine->distance( geom.constGet() ) < mContext->tolerance )
if ( gapGeomEngine->distance( geom.constGet() ) < mContext->tolerance && QgsGeometryCheckerUtils::sharedEdgeLength( gapGeom, geom.constGet(), mContext->reducedTolerance ) > 0 )
{
neighboringIds[layerFeature.layer()->id()].insert( layerFeature.feature().id() );
gapAreaBBox.combineExtentWith( geom.boundingBox() );

0 comments on commit 0ad8ff6

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