Septima / qgis-qlrbrowser

QGIS plugin. This plugin enables a layer menu in a nested tree structure based on .qlr files. The layer tree is nested according to the location in folder/subfolder of the .qlr files.
GNU General Public License v2.0
5 stars 5 forks source link

Can't read QLR-files with groups #82

Closed Geodataodense closed 2 years ago

Geodataodense commented 3 years ago

QLR-Browser fails when loading qrl-files. qlr-files works fine when read manual from layers menu. Works fine when read through the QLR-browser in QGIS-version 3.16

Geodataodense commented 3 years ago

The problem seems to occur only when qlr-files are pointing at databasesource from a database. qlr-example attashed Fredning (DAI).zip

AsgerPetersen commented 3 years ago

Hi @Geodataodense

Could you please clarify what it takes to make the QLR Browser fail? Do we have to use a specific QGIS version (you say that it works in 3.16)?

Thank you for reporting this issue.

Geodataodense commented 3 years ago

I am using the latest version of QGIS an plugin. The QLR-browser fails to load the qlr-file in QGIS 3.18.1 only. It works fine when read through the QLR-browser in QGIS-version 3.16

We are happy users an depend on the plugin in Odense. The QLR-browser makes it easy for the users to access all kinds off datasources. :-)

If it is a big issue let us now - perhaps we can find a way to support you

Regards Peter Jørgensen

MieWinstrup commented 3 years ago

Hi. Yes, thanks for reporting the issue.

I have tried to reproduce the problem by:

  1. In QGIS 3.16 saving a qlr-file, pointing to a vector dataset in a Postgres-database, to the folder of the qlr-browser
  2. Adding the qlr-file in QGIS 3.16 - works fine
  3. Adding the qlr-file in QGIS 3.18 - works fine

We need some more details about the problem that you experience.

In QGIS 3.18 - can you add the qlr-file from the normal browser in QGIS? image

What happen when you add the qlr-file from the Qlr-browser in QGIS 3.18 - do you get an error message? Or something else?

Geodataodense commented 3 years ago

Hello Mie :-) Did you succeed using attached - the qlr-file connecting to Geo Fyn. The error messages is. 2021-04-12T08:54:45 WARNING HTTP fetch ../../Direkte adgang/Fmk mislykkedes med fejl: Protokollen "" er ukendt Give me a call if you cannot reproduce the issue

MieWinstrup commented 3 years ago

Hi Peter, Unfortunately, I can't test it with the attached qlr-file:

image

Geodataodense commented 3 years ago

Perhaps there is IP-validation on the database server

MieWinstrup commented 3 years ago

The problem with loading a qlr-file from Qlr-browser in QGIS 3.18 happens when the layers in a qlr-file is a ordered in a group of layers.

Since the problem occurs when datasources in a group are from database or webservices (WMS, WFS), it seems like it is the group that makes the problem, and that is it not related to the kind of data (database, webservice etc.).

Geodataodense commented 3 years ago

Can you fix the group-error in the QLR-code or is it a core-issue. I have just installed QGIS 3.18.2-1 and the QLR-browser doesn't work properly here either

reginaldc commented 3 years ago

I'm using Qgis 3.16.5 and I am having the same issues with qlrfiles derived from grouped layers. They used to show up correctly but it looks like something has changed and they don't show up anymore. There is also a lot of commented code in the qlrfiles. I don't remember that it was there before.

MieWinstrup commented 3 years ago

We have estimated that the bugfix is something between 2 and 10 hours including packaging the plugin as a new version and upload to plugin repository. If anyone want to fund - or co-fund - the bugfix, please let me know (mie@septima.dk)

bvthomsen commented 2 years ago

Solved if pull request https://github.com/Septima/qgis-qlrbrowser/pull/84#issue-1074183762 is implemented. in master

MieWinstrup commented 2 years ago

Fixed in version 3.0.0.