From 8d767add1e67558977cd12e48aac67dc57aa6aff Mon Sep 17 00:00:00 2001 From: Ines Torres <102751335+ines-torres@users.noreply.github.com> Date: Fri, 26 Apr 2024 14:35:10 +0200 Subject: [PATCH] Allowing multiple polygons for z-profile values MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Following the pull request from @mazhe (https://github.com/EnMAP-Box/enmap-box/pull/825), we removed the warning "cannot handle multiple polygons" which we had initially written as a precaution. Ultimately, after testing the new functionality, it proves to be very useful to average spectra of multiple polygons inside the same layer. Regards, Authorship: - Matthieu Volat, CNRS engineer, Observatoire de Lyon - Ines Torres, Phd student, LGLTPE / Université Claude Bernard Lyon 1 Signed-off-by: Ines Torres <102751335+ines-torres@users.noreply.github.com> --- .../eo4qapps/profileanalyticsapp/profileanalyticsdockwidget.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/enmapbox/eo4qapps/profileanalyticsapp/profileanalyticsdockwidget.py b/enmapbox/eo4qapps/profileanalyticsapp/profileanalyticsdockwidget.py index a1254217..7600d508 100644 --- a/enmapbox/eo4qapps/profileanalyticsapp/profileanalyticsdockwidget.py +++ b/enmapbox/eo4qapps/profileanalyticsapp/profileanalyticsdockwidget.py @@ -438,9 +438,6 @@ def onApplyClicked(self): selectedFeatureCount = polygonLayer.selectedFeatureCount() if selectedFeatureCount == 0: return - elif selectedFeatureCount > 1: - warnings.warn('handling multiple shapes is not yet implemented') - return polygonId = polygonLayer.selectedFeatureIds()[0] name = f'{layer.name()} [band {bandNo}, polygon ID {polygonId}]'