Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Geometry checker] Report if geometry is invalid in overlap check
  • Loading branch information
manisandro committed Oct 23, 2017
1 parent db8b53f commit 87cdeda
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -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 )
Expand Down

0 comments on commit 87cdeda

Please sign in to comment.