Grid Layer labels rendered incorrectly when Map Rotation value is not 0
Context
- MapFish print version: 3.28
- OS: Docker on Windows 10 using latest image from https://hub.docker.com/r/camptocamp/mapfish_print/
Describe the bug
When a grid layer with labels is added to the map and the map has a rotation value applied, the labels are rendered in the wrong locations. It appears the labels are not rotated with the rest of the map.
How to reproduce
Use the following report configuration, or any report with a large map: https://www.dropbox.com/s/oq4s99cchodzpng/mapfish-report-config.zip?dl=0
Send the following JSON request: https://www.dropbox.com/s/gch7lqkuwzbuxqx/rotated-grid-labels-request.json?dl=0
Actual results
Example of bad grid label placement output:
https://www.dropbox.com/s/nr140iodvwtmibz/nztopomap-print-A4-grid-BAD.pdf?dl=0
Expected results
Correct example output when no map rotation is applied:
https://www.dropbox.com/s/3840vxr6ci81ssb/nztopomap-print-A4-grid-GOOD.pdf?dl=0