Skip to content
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

'Start of Line' anchor bugs out and places labels at end of line instead #60057

Open
1 of 2 tasks
anitagraser opened this issue Jan 6, 2025 · 0 comments
Open
1 of 2 tasks
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!

Comments

@anitagraser
Copy link
Member

anitagraser commented Jan 6, 2025

What is the bug or the crash?

Using 'Start of Line' label anchor does not result in reliable labels. Indeed, in some cases (this changes by zoom level), the label is placed on the end of the line instead of at the start.

In the following example, the problem is that it wrongly puts the Campus label there on some (but not all) zoom levels:

label-anchor-bug.mp4

(HT to @pigreco for reproducing the issue and recording the screencast)

Steps to reproduce the issue

  1. Load the the line layer: https://nx60860.your-storageshare.de/s/KSdKEWknNpQQjgf
  2. Apply the style: https://nx60860.your-storageshare.de/s/GywQXwMXyTFBGzP
  3. Zoom to the area shown in the video above
  4. Observe how changing the zoom level leads to different (sometimes wrong) labeling results

Versions

QGIS version3.40.0-Bratislava
QGIS code branchRelease 3.40
 
Libraries
Qt version5.15.15
Python version3.12.7
GDAL/OGR version3.9.2
PROJ version9.5.0
EPSG Registry database versionv11.016 (2024-08-31)
GEOS version3.13.0-CAPI-1.19.0
SQLite version3.47.0 (Compiled)
3.47.2 (Running)
PDAL version2.8.0
PostgreSQL client versionunknown
SpatiaLite version5.1.0
QWT version6.3.0
QScintilla2 version2.14.1
OS versionLinux Mint 22
 
Active Python plugins
MemoryLayerSaver5.0.2
processing_trajectory2.3
plugin_reloader0.17
grassprovider2.12.99
MetaSearch0.3.6
db_manager0.1.20
processing2.12.99

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

Additional context

For comparison, if Geometry Generator with start_point( @geometry ) is chosen instead, the labels are placed correctly.

@anitagraser anitagraser added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!
Projects
None yet
Development

No branches or pull requests

1 participant