nens / lizard-qgis-plugin

A QGIS Lizard plugin
GNU General Public License v3.0
0 stars 0 forks source link

Rasters download UI improvements #17

Closed leendertvanwolfswinkel closed 9 months ago

leendertvanwolfswinkel commented 9 months ago
leendertvanwolfswinkel commented 9 months ago

@ldebek I got the following Python error when trying to download a raster:

AttributeError: 'QgsFeature' object has no attribute 'get' 
Traceback (most recent call last):
  File "C:\Users\leendert.vanwolfswin\AppData\Roaming\3Di\QGIS3\profiles\3Di Staging/python/plugins\lizard_qgis_plugin\widgets\lizard_archive_browser.py", line 625, in download_raster_file
    polygon_name = feat.get(polygon_name_field, raster_name)
AttributeError: 'QgsFeature' object has no attribute 'get'

What I did:

EDIT: I also get this error when I add a "name" attribute to the polygon and use this as name field in the download options.

leendertvanwolfswinkel commented 9 months ago

When I selected the option "Use current map canvas as extent", I got the following error (again):

 Lizard : Download failed due to the following error: 400 Client Error: Bad Request for url: https://nxt3.staging.lizard.net/api/v4/rasters/e40c1b96-e71f-462c-8acb-59a3a8b7db89/data/?width=6000.0&height=5000.0&bbox=132000.0%2C450000.0%2C135000.0%2C452500.0&projection=EPSG%3A28992&format=geotiff&async=true&nodata=-9999.0