kbgg / qgis-stac-browser

Plugin for QGIS to browse and download assets from STAC APIs
Apache License 2.0
26 stars 9 forks source link

Error querying Planet Staccato #16

Closed philvarner closed 5 years ago

philvarner commented 5 years ago

Version: dev/f5a35fba113c72129efc397a8a036ca5b8080af8

Repro:

  1. Open STAC dialog
  2. check Planet[Staccato]
  3. Search button
AttributeError: 'NoneType' object has no attribute 'extent' 
Traceback (most recent call last):
  File "/Users/pvarner/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/stac_browser/ui/query_dialog.py", line 59, in on_search_clicked
    self.get_time_period())
  File "/Users/pvarner/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/stac_browser/stac_browser.py", line 51, in on_search
    extent_rect = extent_layer.extent()
AttributeError: 'NoneType' object has no attribute 'extent'

The extent attribute makes me think that the Extent dialog shouldn't be empty?

Screen Shot 2019-06-14 at 2 10 29 PM
kbgg commented 5 years ago

Errors are still not being handled, this will be implemented with #15

ymoisan commented 4 years ago

I suspect "Error: Extent layer is not valid" that happens when EPSG != 4326 will either be handled with a more descriptive error message or that the API will allow other EPSG codes ?