Closed Samweli closed 1 year ago
The area coverage filtering in the plugin doesn't use the correct comparison when filtering out the found result images. This PR updates the area coverage value comparison with minimum and maximum values submitted in the search request.
Note: One of the unexpected operations is that the area coverage filtering is done post search see https://github.com/planetlabs/qgis-planet-plugin/blob/9217a94737b0e0d063151ffdde2f819c5216921d/planet_explorer/gui/pe_dailyimages_search_results_widget.py#L264, it would have been nice for this kind of filtering to be done in the Planet API and the returned resultset to already be filtered.
Screenshot of the current behaviour
Screenshot of the fixed behaviour
Hi @john-dupuy, We aim for thie PR to be in the final fix for the 2.3.0 release which we are planning to release today or tomorrow. thanks.
Thanks @john-dupuy
The area coverage filtering in the plugin doesn't use the correct comparison when filtering out the found result images. This PR updates the area coverage value comparison with minimum and maximum values submitted in the search request.
Note: One of the unexpected operations is that the area coverage filtering is done post search see https://github.com/planetlabs/qgis-planet-plugin/blob/9217a94737b0e0d063151ffdde2f819c5216921d/planet_explorer/gui/pe_dailyimages_search_results_widget.py#L264, it would have been nice for this kind of filtering to be done in the Planet API and the returned resultset to already be filtered.
Screenshot of the current behaviour![bug_area_coverage_filtering](https://user-images.githubusercontent.com/2663775/217625964-ed458dcb-8be0-4d7f-86b7-2f5369327b51.gif)
Screenshot of the fixed behaviour![fixed_area_coverage_filter](https://user-images.githubusercontent.com/2663775/217626031-43b850c2-6c4e-43fd-8aae-cc609a8963a1.gif)