Comments (15)
from lizmap-web-client.
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.
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.
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.
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.
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 :
- https://docs.qgis.org/3.34/en/docs/server_manual/config.html#environment-variables
QGIS_SERVER_IGNORE_BAD_LAYERS
- https://docs.3liz.org/py-qgis-server/configuration.html#cache-strict-check
CACHE_STRICT_CHECK
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 :
Indeed, the symbol is not at the correct level.
from lizmap-web-client.
In my legend, I can see the flag valid=False
, but I don't see it in yours @guenterw :
Did you restart your QGIS-Server ?
from lizmap-web-client.
I have just restarted the server, no change:
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.
The WebGIS layer "FNP incl. 1. + 4. Änd." is actually more complicated. It is a grouping of three raster files.
from lizmap-web-client.
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
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.
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.
ok, Lizmap Server Plugin 2.9.2-alpha is active:
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.
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.
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.
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.
This is visible to everyone, which may be a good thing.
Thank you very much.
from lizmap-web-client.
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.
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.
from lizmap-web-client.
Related Issues (20)
- Error with "form filter" tool on a GeoPackage HOT 4
- [Bug]: selection tool - circle not present in toolbar
- Different speed of the various Lizmap versions HOT 9
- Layer group not automatically active despite corresponding setting (group as Layer) HOT 1
- SMTP with MS ExchangeServer HOT 1
- [Question]: delete geom nodes in mobile mode
- [Bug]: data - table, virtual field with expression to show small image preview HOT 19
- [Bug]: plot should not display loading gif when there is no data
- [Bug]: popup relation - div popup_lizmap_dd_relation empty in parent HOT 1
- [Bug]: Minidock popup not working in Lizmap Web Client : 3.7.7, 3.8.0-alpha.2 HOT 6
- [Bug]: values in relation tables are not sorted alphabetically HOT 1
- Differences Lizmap 3.8.0 Alpha.2 - 3.7.7 - 3.6.12 HOT 8
- Dataviz: scatterplot traces are not coloured according to values in attribute table
- [Question]: Service unavailable after installing lizmap web client HOT 2
- [Bug]: Filter tools does not update web map URL + Idea
- [Question]: QGIS Server plugins installation and error 500 in LWC about the plugin HOT 4
- [Bug]: Popup In mini dock can't be closed HOT 1
- [Bug]: Filtering not working in Lizmap when layer authenticated against a qGIS auth config stored in qgis-auth.db HOT 1
- [Question]: Server/Browser Cache Issues
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lizmap-web-client.