29 QgsRectangle bboxA = layerFeatureA.geometry().boundingBox();
31 if ( !geomEngineA->isValid() )
33 messages.append( tr(
"Contained check failed for (%1): the geometry is invalid" ).arg( layerFeatureA.id() ) );
39 if ( layerFeatureA == layerFeatureB )
44 if ( !geomEngineB->isValid() )
46 messages.append( tr(
"Contained check failed for (%1): the geometry is invalid" ).arg( layerFeatureB.id() ) );
51 if ( geomEngineA->contains( layerFeatureB.geometry().constGet(), &errMsg ) && !geomEngineB->contains( layerFeatureA.geometry().constGet(), &errMsg ) && errMsg.isEmpty() )
55 else if ( !errMsg.isEmpty() )
57 messages.append( tr(
"Contained check failed for (%1, %2): %3" ).arg( layerFeatureB.id(), layerFeatureA.id(), errMsg ) );
96 else if ( method ==
Delete )
110 static QStringList methods = QStringList()
111 << tr(
"Delete feature" )
112 << tr(
"No action" );