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

Data defined override for label rotation does not respect defined data #60647

Open
2 tasks done
phidrho opened this issue Feb 17, 2025 · 0 comments
Open
2 tasks done

Data defined override for label rotation does not respect defined data #60647

phidrho opened this issue Feb 17, 2025 · 0 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Labeling Related to QGIS map labeling

Comments

@phidrho
Copy link
Contributor

phidrho commented Feb 17, 2025

What is the bug or the crash?

We have an option to use data defined values for label rotation under Layer Properties > Labels > Placement > Data defined.

Unfortunately if we set this override to active and define our own angles, text rotations don't follow defined angles, but it behaves semi automatic - rotating text to be most readable (upright). Although this is a nice feature to have while working on a monitor, for print preparation and for data exchange with other formats (import/export) we need to be able to set exact angles.

Rotation is interpreted as clockwise angle with 0° pointed to East.

Example 1 - OK - Offset from Point - placement set to upper right quadrant, without setting Rotation override
default values

Example 2 - OK - Offset from Point - placement set to upper right quadrant, with Rotation override set to 45°
45 degree angle override

Example 3 - OK - Offset from Point - placement set to upper right quadrant, with Rotation override set to 89°
89 degree angle override

Example 4 - BUG - Offset from Point - placement set to upper right quadrant, with Rotation override set to 90°
90 degree angle override

Example 5 - BUG - Offset from Point - placement set to upper right quadrant, with Rotation override set to 110°
110 degree angle override

Example 6 - BUG - Offset from Point - placement set to upper right quadrant, with Rotation override set to -270°
Minus 270 degree angle override

Behavior is the same with Cartographic Mode and Around Point Mode.

I consider this as a bug report rather than Feature request, because with current implementation we have no option to rotate text in desired direction, and by enabling "override" option this is what should be possible, to override automatic placement and rotation of labels.

Steps to reproduce the issue

Create a point with label. Set Data defined override for Rotation to =>90°.

Versions

QGIS version3.40.2-Bratislava
QGIS code revision14826ca1
 
Libraries
Qt version5.15.13
Python version3.12.8
GDAL/OGR version3.9.3
PROJ version9.5.0
EPSG Registry database versionv11.016 (2024-08-31)
GEOS version3.13.0-CAPI-1.19.0
SQLite version3.46.1
PDAL version2.8.1
PostgreSQL client version16.2
SpatiaLite version5.1.0
QWT version6.3.0
QScintilla2 version2.14.1
OS versionWindows 11 Version 2009
 
Active Python plugins
db_manager0.1.20
grassprovider2.12.99
MetaSearch0.3.6
processing2.12.99

Supported QGIS version

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

New profile

Additional context

No response

@phidrho phidrho added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Feb 17, 2025
@agiudiceandrea agiudiceandrea added the Labeling Related to QGIS map labeling label Feb 18, 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! Labeling Related to QGIS map labeling
Projects
None yet
Development

No branches or pull requests

2 participants