qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.34k stars 2.98k forks source link

QGIS Server WMS GetMap cuts labels at the tile’s border #58380

Open NivGreenstein opened 1 month ago

NivGreenstein commented 1 month ago

What is the bug or the crash?

I have QGIS project with VTPK data that I serve via QGIS Server over WMS GetMap to clients. I noticed however that symbols and labels of point features that overlap 2 tiles of the map are only rendered in the tile that actually contains the feature. I have tried TILES=TRUE with tile buffer size with various sizes but still no luck.

I saw posts online from few years ago with the same issue but couldn’t resolve it with the suggested solutions.

image

image

Steps to reproduce the issue

Create simple yet dense data with labels as shown in the image. Serve it via QGIS Server (I’m using containerized) Send WMS GetMap request

Versions

QGIS 3.36.0-Maidenhead 'Maidenhead' (09951dc0acf) QGIS code revision 09951dc0acf Qt version 5.15.2 Python version 3.9.2 GDAL/OGR version 3.2.2 PROJ version 7.2.1 EPSG Registry database version v.10.008 (2020-12-16) GEOS version 3.9.0-CAPI-1.16.2 SQLite version 3.34.1 OS Debian GNU/Linux 11 (bullseye)

Supported QGIS version

New profile

Additional context

No response

troopa81 commented 1 month ago

You have probably automatic label placement enabled and so from one tile to another the label place is different. That's why you get that. You have to set label at fixed position with the mode Offset from centroid in Placement tab from labels properties widget.

You would still have to set a tile offset regarding the size of your labels, which could be big if you have long names.

github-actions[bot] commented 2 weeks ago

The QGIS project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale". If you would like to continue with this issue, please provide any missing information or answer any open questions. If you could resolve the issue yourself meanwhile, please leave a note for future readers with the same problem and close the issue. In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this issue. If there is no further activity on this issue, it will be closed in a week.