-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QGIS Server: Single layer in group bug #1182
Comments
Can you please share if/where this layer is available publicly? You can PM me in case you don't want to publish your server details here. |
Thanks for the info. I tried and got a crash already in Admin. This is an Admin bug, right? |
See fix/1182-single-layer-in-group-qgis-server. |
That's correct. The problem is that QGIS Server's WMS sends different responses depending on the amount of layers in group (which is strange - a group should be a group). If there are more 2 or more items, the group is an Array of layers. If there's one item, the "group" is the layer item, directly. I'm not sure what the WMS specification says about it, but it's a clear case where the different WMS services handle things differently. |
Hi @WCarlsson, I've just pushed some fixes to https://github.com/hajkmap/Hajk/tree/fix/1182-single-layer-in-group-qgis-server. If you can, please check out that branch and build Admin (just Admin is enough, as there are not changes in the other directories) and see if it solves the problem. I've verified that the crash is prevented and that you can save additional fieds (such as infobox definition), but it's best if you test for yourself. |
@jacobwod it works fine for me aswell. |
Describe the bug
When using a QGIS Server WMS-source served with a single layer in a group in the QGIS-project Hajk crashes when trying to set up a layer with the WMS-source.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Hajk should handle groups with a single layer from QGIS. Groups with 0 or 2+ layers work fine.
Screenshots
Set up in QGIS Desktop
Snippet of error when Hajk crashes
The text was updated successfully, but these errors were encountered: