Controlling the spacing of symbols from an ArcGIS Rest Service layer in a QGIS print composer legend

28 views
Skip to first unread message

Colin Mazengarb

unread,
Jul 26, 2023, 11:02:32 PM7/26/23
to QGIS Australia User Group
Hi everyone,

I have loaded the NZ GNS QMAP geological structural symbols in a legend in the print composer. Unfortunately, each symbol has a large space between them and the spacing controls don't seem to work (i.e. I have reduced them all to 0mm in the Spacing settings - see figure). The spacing is not affected by limiting to the map area or not. The legend in the Map Canvas appears normal.
The URL is below. I am using QGIS 3.32. Is this a known limitation with Rest layers in QGIS?
Legend.png

Regards
Colin

Andrew Jeffrey

unread,
Jul 26, 2023, 11:28:28 PM7/26/23
to australian-qg...@googlegroups.com
Hi Colin,

Check out the "WMS Legend Graphic" settings and see if adjusting these help at all.

If the layer has been added as a WMS or an ArcGIS Mapserver end point the legend will be an image from that provider. If you add multiple WMS layers maybe the white space around the legend graphic is causing that issue??
image.png

--
You received this message because you are subscribed to the Google Groups "QGIS Australia User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to australian-qgis-use...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/australian-qgis-user-group/c20e233f-4031-467e-9f4b-8aa7c2b0ba6cn%40googlegroups.com.

Colin Mazengarb

unread,
Jul 27, 2023, 5:33:32 AM7/27/23
to QGIS Australia User Group
Hi Andrew,
thanks for the suggestion but the wms settings did not work for me. The layer is a feature service in any case. I am wondering if this is something that needs further development?
cheers
Colin

Andrew Jeffrey

unread,
Jul 27, 2023, 5:37:27 AM7/27/23
to australian-qg...@googlegroups.com
Ok good to know.

What layer of the feature service is it? I loaded a few in and didn’t see the styles you have in your screen shot. Be interested in tested the exact same layer.

Colin Mazengarb

unread,
Jul 27, 2023, 7:00:20 AM7/27/23
to australian-qg...@googlegroups.com
The symbols are from locally installed fonts and a qml styling. Locally loaded  data does not have this issue.

Andrew Jeffrey

unread,
Jul 27, 2023, 7:04:03 AM7/27/23
to australian-qg...@googlegroups.com
Righto. If you want someone to double check it pop the fonts into a folder and I check it out for you.

Do you know if it happens with the standard styling when you add the layer to the map? Would be good to eliminate whether it’s the fonts causing the problem or not.

Colin Mazengarb

unread,
Jul 27, 2023, 10:57:54 PM7/27/23
to QGIS Australia User Group
Hi Andrew,
I have just tested with locally loaded data (not web services) and the legend behaves itself. So the font is not the problem.
I will send the fonts to your email if you want to test the REST service layer. It would be good to identify where the problem lies.
Colin

Colin Mazengarb

unread,
Aug 13, 2023, 12:06:20 AM8/13/23
to QGIS Australia User Group
Hi All,

just completing this issue. Thanks Andrew for your help. The problem was not the WFS; this works fine. The fonts are OK in the canvas view but not in the Print Layout Legend where the symbols are widely spaced out as previously described. I cannot control the size or spacing there so there is something about these fonts that I don't understand. I have recreated the symbols using QGIS simple markers and this solves that issue. I will be posting a related question as a separate post shortly.

Colin
Reply all
Reply to author
Forward
0 new messages