Skip to content
Permalink
Browse files

[Geometry checker] Also check other parts of same feature in dangle c…

…heck
  • Loading branch information
manisandro committed Oct 23, 2017
1 parent 183671f commit 44ce91665660b3934b20885b472717a2ee225fe7
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/analysis/vector/geometry_checker/qgsgeometrydanglecheck.cpp
@@ -49,14 +49,14 @@ void QgsGeometryDangleCheck::collectErrors( QList<QgsGeometryCheckError *> &erro
QgsGeometryCheckerUtils::LayerFeatures checkFeatures( mContext->featurePools, QList<QString>() << layerFeature.layer().id(), line->boundingBox(), {QgsWkbTypes::LineGeometry} );
for ( const QgsGeometryCheckerUtils::LayerFeature &checkFeature : checkFeatures )
{
if ( checkFeature.feature().id() == layerFeature.feature().id() )
{
// Skip current feature, it was already checked above
continue;
}
const QgsAbstractGeometry *testGeom = checkFeature.geometry();
for ( int jPart = 0, mParts = testGeom->partCount(); jPart < mParts; ++jPart )
{
if ( checkFeature.feature().id() == layerFeature.feature().id() && iPart == jPart )
{
// Skip current feature part, it was already checked above
continue;
}
const QgsLineString *testLine = dynamic_cast<const QgsLineString *>( QgsGeometryCheckerUtils::getGeomPart( testGeom, jPart ) );
if ( !testLine )
{

0 comments on commit 44ce916

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