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.62k stars 3.01k forks source link

Font marker symbols not rotating correctly in rotated print layout #45506

Open styrke10 opened 3 years ago

styrke10 commented 3 years ago

What is the bug or the crash?

When setting rotation (from an attribute value) on a point layer with a font marker based symbol, then rotation angle is apparently not recalculated correctly when you rotate you print layout.

Steps to reproduce the issue

  1. Setup a point layer with a font marker symbol and rotate the symbols based on an attribute field. Example of QGIS canvas: qgis canvas

  2. Setup a print layout QGIS layout before rotating: qgis layout before rotating

  3. Rotate the print layout - marker symbols will be incorrectly rotated (apparently the rotation angle doesn't adjust for the layout rotation angle) QGIS layout rotated 45 degrees: qgis layout rotated 45 degrees :

Versions

QGIS version 3.20.2-Odense QGIS code revision 9f59a156 Qt version 5.15.2 Python version 3.9.5 GDAL/OGR version 3.3.1 PROJ version 8.1.0 EPSG Registry database version v10.027 (2021-06-17) GEOS version 3.9.1-CAPI-1.14.2 SQLite version 3.35.2 PDAL version 2.3.0 PostgreSQL client version 13.0 SpatiaLite version 5.0.1 QWT version 6.1.3 QScintilla2 version 2.11.5 OS version Windows 10 Version 2009

Active Python plugins AddressToolsDK AnotherDXF2Shape autoSaver cartography_tools changeDataSource Datafordeler Dataforsyningen DataPlotly DigitizingTools featureattachments geosearch_dk GroupStats Kortforsyningen layout_loader lrs mmqgis networks ORStools OSMtools pg_history_viewer pluginbuilder3 plugin_reloader profiletool qchainage Qgis2threejs qgis2web qgiscloud qgis_resource_sharing QuickOSM quick_map_services raster_tracer-master scriptrunner3 searchlayers septimasearch SpreadsheetLayers VectorBender wfsclient db_manager processing

Supported QGIS version

New profile

Additional context

I successfully reproduced this on other installations running QGIS 3.10. and 3.18.

signedav commented 11 months ago

This is the same on the canvas map orientation. When setting a data defined orientation on map rotation 0 everything appears fine: image

But on rotating the map: image

Simple Marker rotates, SVG Marker rotates but the Font Marker persists...

signedav commented 11 months ago

testproject.zip

Project from my Screenshot (qgz in gpkg)