Skip to content
Permalink
Browse files

[Geometry checker] Report if geometry is invalid in overlap check

  • Loading branch information
manisandro committed Sep 28, 2017
1 parent db8b53f commit 87cdeda4394e3042930186c6d81b1d1b300421ff
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/analysis/vector/geometry_checker/qgsgeometryoverlapcheck.cpp
@@ -31,6 +31,11 @@ void QgsGeometryOverlapCheck::collectErrors( QList<QgsGeometryCheckError *> &err

QgsRectangle bboxA = layerFeatureA.geometry()->boundingBox();
QSharedPointer<QgsGeometryEngine> geomEngineA = QgsGeometryCheckerUtils::createGeomEngine( layerFeatureA.geometry(), mContext->tolerance );
if ( !geomEngineA->isValid() )
{
messages.append( tr( "Overlap check failed for (%1): the geometry is invalid" ).arg( layerFeatureA.id() ) );
continue;
}

QgsGeometryCheckerUtils::LayerFeatures layerFeaturesB( mContext->featurePools, QList<QString>() << layerFeatureA.layer().id() << layerIds, bboxA, mCompatibleGeometryTypes );
for ( const QgsGeometryCheckerUtils::LayerFeature &layerFeatureB : layerFeaturesB )

0 comments on commit 87cdeda

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