Git Product home page Git Product logo

Comments (15)

Gustry avatar Gustry commented on May 28, 2024

image

from lizmap-web-client.

guenterw avatar guenterw commented on May 28, 2024

I find this extension very helpful, I also wanted to suggest it.
Is there a workaround for realising this right now?

from lizmap-web-client.

Gustry avatar Gustry commented on May 28, 2024

Is there a workaround for realising this right now?

This was a real screenshot from the new version of the plugin, you can do the upgrade ;-) 2.9.1 just released.

The only drawback, if the user has set this icon for production, to show warnings on his own map :) (traffic jam...)

from lizmap-web-client.

guenterw avatar guenterw commented on May 28, 2024

Thanks for the hint but unfortunately it doesn't work for me yet.
In all 3 current versions. Do I have to set anything special? I am logged in as an admin.
These two raster data files do not exist on the test server. However, the layers are displayed normally in the legend.

image

From my point of view, it would be ideal if the admin would see the “!” and the normal user would not see the layer at all.

Project "Test Jagdkataster..."
https://cx21-6.webgis.biz/
https://cx21-7.webgis.biz/
https://cx21-8.webgis.biz/

from lizmap-web-client.

Gustry avatar Gustry commented on May 28, 2024

From my point of view, it would be ideal if the admin would see the “!” and the normal user would not see the layer at all.

It's a work in progress on this.
We have some discussions.
Especially about the use of :

Indeed, for an admin, some tooltip must be added, all tools using an invalid layer must be checked : edition tool, attritube table, dataviz, form filter ... (all layers which can be configured in Lizmap plugin, or in QGIS, for Value relation, Relation reference, Atlas ...)

Can you share a screenshot of QGIS about these layers ?

Hum; I just tried a project I knew with a broken layer :
image

Indeed, the symbol is not at the correct level.

from lizmap-web-client.

Gustry avatar Gustry commented on May 28, 2024

In my legend, I can see the flag valid=False, but I don't see it in yours @guenterw :

image

Did you restart your QGIS-Server ?

from lizmap-web-client.

guenterw avatar guenterw commented on May 28, 2024

I have just restarted the server, no change:
image

the aerial image "Reute 25.09.2023 20cm" is a simple raster file with the relative path "../luftbilder/2023_....tif in the original project. This file does not exist here on the test server cx21.
image

The WebGIS layer "FNP incl. 1. + 4. Änd." is actually more complicated. It is a grouping of three raster files.
image

from lizmap-web-client.

Gustry avatar Gustry commented on May 28, 2024

The WebGIS layer "FNP incl. 1. + 4. Änd." is actually more complicated. It is a grouping of three raster files.
This is not supported. I'm not sure how the legend is built on the QGIS Server side. That could be a dev or an idea.

But for sure, by reading the logs from your server, you will have a message like :

Skipping the layer 'FNP incl. 1. + 4. Änd.' because it's not a vector layer

I have just restarted the server, no change:

As usual, you should read your QGIS Server logs. If needed, increase log level.
You will see the incoming HTTP request GetLegendGraphic (we can see it your in webbrowser like this

image

I just made a commit to have a little bit more debug if an invalid layer has been found. If you can download the latest zip.
Either the ZIP directly, or you can use our custom QGIS repository with QGIS-Plugin-Manager
https://packages.3liz.org/

Thanks for your help

from lizmap-web-client.

Gustry avatar Gustry commented on May 28, 2024

The latest ZIP might be available in a dozen of minutes, just in case. We have some CI running to build the ZIP package.

from lizmap-web-client.

guenterw avatar guenterw commented on May 28, 2024

ok, Lizmap Server Plugin 2.9.2-alpha is active:
image

If I understand it correctly, the "!" in the legend cannot work with the grouped layers (FNP...).
But it should work for the aerial view (Luftbild...)?

Otherwise, I'm afraid I don't understand everything about logging. Unfortunately, I still have some projects to work on. Many thanks for the help/feedback.

from lizmap-web-client.

Gustry avatar Gustry commented on May 28, 2024

If I understand it correctly, the "!" in the legend cannot work with the grouped layers (FNP...).

Yes, it would need some dev. I'm not sure about the current behavior.

But it should work for the aerial view (Luftbild...)?

No, this was not yet supported. It's in progress in 3liz/qgis-lizmap-server-plugin#77

Otherwise, I'm afraid I don't understand everything about logging

This is a must ;-)

That's the only way to see how your server is behaving, especially when it doesn't work as expected. QGIS Server core and plugins are verbose, about what they are doing etc.

from lizmap-web-client.

guenterw avatar guenterw commented on May 28, 2024

Thank you for the clarification.
It would of course be nice if it also worked for the raster data. But I should actually have my own vector and raster data under control.
Such a display for external WMS or WFS services would be more important to me. But that is probably even more complex?

With logging, I was referring more to the analysis in the browser. I am essentially familiar with logging from the QGIS server, even if I don't use it enough. But I also see myself more as a user and tester.

from lizmap-web-client.

guenterw avatar guenterw commented on May 28, 2024

I don't really know why, but now the “!” for raster files works. Maybe after the last update of the server plugin (2.9.2-alpha - 5098057) I had only restarted Apache and not the QGIS server.

image

This is visible to everyone, which may be a good thing.
Thank you very much.

from lizmap-web-client.

Gustry avatar Gustry commented on May 28, 2024

Good to know. Still no luck for vector layer ? Can you just add typo in the datasource of "Jagdkataster" and/or "Politisch" ?

This is visible to everyone, which may be a good thing.

It's a work in progress. The webbrowser is now aware about this invalid layer. And it's the purpose of this ticket :

  • for normal user : make the user that something, the tool is broken and Lizmap can't work properly (edition, attribute table, related table in form...)
  • for admin : explaining the reason and some clues what to check etc

In your qgis logs, you should have the warning about the raster layer.

from lizmap-web-client.

guenterw avatar guenterw commented on May 28, 2024

sorry, I hadn't tested the other data types.
Now I've tested them all and great: the “!” works for all of them. Even with WMS/WFS services. Only not with grouped layers, but you've already said that.

Should a tooltip with explanations appear now? Or is that the next step? Maybe I'm translating it incorrectly from English.

I was also able to reproduce the warnings in the qgisserver.log. They only appear at log level 0 or 1. I had always set 2.
A side note: I had many error messages in the qgisserver.log such as “CRITICAL Server[2348]: Service CADASTRE is not registered”. I have now installed the server plugin cadastre and they are gone.

The “!” for layers with errors definitely works great in 3.7.7 and 3.8.0 A2. Especially with the WMS and WFS services, this may be an important hint.
image

from lizmap-web-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.