Skip to content
Permalink
Browse files

Respect z range when identifying point cloud features

  • Loading branch information
nyalldawson authored and wonder-sk committed Jan 4, 2021
1 parent 0b61871 commit fde80e3f330c7b46cd67c900af54be0dbaa878aa
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/pointcloud/qgspointcloudrenderer.cpp
@@ -260,7 +260,7 @@ QVector<QVariantMap> QgsPointCloudRenderer::identify( QgsPointCloudLayer *layer,
}
}

selectedPoints = layer->dataProvider()->identify( maxErrorInMapCoordinates, selectionGeometry );
selectedPoints = layer->dataProvider()->identify( maxErrorInMapCoordinates, selectionGeometry, renderContext.zRange() );

selectedPoints.erase( std::remove_if( selectedPoints.begin(), selectedPoints.end(), [this]( const QMap<QString, QVariant> &point ) { return !this->willRenderPoint( point ); } ), selectedPoints.end() );

0 comments on commit fde80e3

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