qgis-stac-plugin icon indicating copy to clipboard operation
qgis-stac-plugin copied to clipboard

The plugin is failing when a collection lacks a title

Open drnextgis opened this issue 1 year ago • 3 comments

A title is not a mandatory attribute. image

drnextgis avatar Aug 31 '23 21:08 drnextgis

@drnextgis thanks for opening this, at the moment when a collection lacks a title the plugin defaults to use the collection's id which is a mandatory attribute. From the error above it seems the collections also lacks the id property.

Samweli avatar Sep 29 '23 06:09 Samweli

That is not right, the collection has id. It fails here because few lines above get_selected_collections method is called with title=True argument and as you can see here in this case id property is just ignored.

drnextgis avatar Sep 29 '23 08:09 drnextgis

That is not right, the collection has id. It fails here because few lines above get_selected_collections method is called with title=True argument and as you can see here in this case id property is just ignored.

Oh, you are right @drnextgis!

Samweli avatar Oct 02 '23 10:10 Samweli