mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
[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.
This commit is contained in:
parent
d7f12ea5b4
commit
8b2e1880db
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user