Skip to content
Permalink
Browse files

Merge pull request #8336 from m-kuhn/doNotReportEnvelopeAsGap

Do not report envelope as gap
  • Loading branch information
m-kuhn committed Oct 26, 2018
2 parents 2c835f9 + 32cdf3a commit 0633ee04a30ba7732824c62742d0a4b8cdc546f1
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/analysis/vector/geometry_checker/qgsgeometrygapcheck.cpp
@@ -98,7 +98,8 @@ void QgsGeometryGapCheck::collectErrors( const QMap<QString, QgsFeaturePool *> &
{
std::unique_ptr<QgsAbstractGeometry> gapGeom( QgsGeometryCheckerUtils::getGeomPart( diffGeom.get(), iPart )->clone() );
// Skip the gap between features and boundingbox
if ( gapGeom->boundingBox() == envelope->boundingBox() )
const double spacing = context()->tolerance;
if ( gapGeom->boundingBox().snappedToGrid( spacing ) == envelope->boundingBox().snappedToGrid( spacing ) )
{
continue;
}

0 comments on commit 0633ee0

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