Skip to content
Permalink
Browse files

[quick] Fix validity condition in QgsQuickFeatureLayerPair

The extra condition enforcing that feature's geometry needs to have Z coordinate
if also its parent layer has Z coordinates was not doing good job and surprisingly
marking also valid geometries as invalid if layer type was PointZ but the geometry
had undefined Z value. This caused issues in IdentifyKit not picking up some features.
  • Loading branch information
wonder-sk committed Mar 28, 2019
1 parent d7f12ea commit 8b2e1880db5b3ebc26116f23226f15c2402624f3
Showing with 0 additions and 3 deletions.
  1. +0 −3 src/quickgui/qgsquickfeaturelayerpair.cpp
@@ -66,8 +66,5 @@ bool QgsQuickFeatureLayerPair::hasValidGeometry() const
if ( mFeature.geometry().type() != mLayer->geometryType() )
return false;

if ( QgsWkbTypes::hasZ( mLayer->wkbType() ) != QgsWkbTypes::hasZ( mFeature.geometry().wkbType() ) )
return false;

return true;
}

0 comments on commit 8b2e188

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