qgis-js icon indicating copy to clipboard operation
qgis-js copied to clipboard

Read additional files from QGIS project file

Open fgravin opened this issue 1 year ago • 1 comments

This is a proposal to slightly improve the developer experience while using the qgis-js API.

At the moment, we have to list all the files that are used within the QGIS project, beside the QGIS project file itself. eg.

const source =
  "/Glacier_3857";
const files = ["glaciers.qgs","glaciers.gpkg", "glaciers_attachments.zip"];

It would be great if the additional files could be guessed by the API by reading the QGIS project file.

fgravin avatar Sep 10 '24 08:09 fgravin

Agree, it would be nice to just point to a project and query all involved files from there

Would be easy to expose/implement, if QGIS provides something like this internally, cc @wonder-sk.

Note that there is also the @qgis-js/utils package that helps to download many files from a web server, a GitHub repo, or the local file system

boardend avatar Sep 10 '24 10:09 boardend