Allow point-based shapes to be individually rotated based on a 'Rotation' field in the shapefile


Right now, rotation of a point-based shape (during rendering) is based on a drawing property that applies to the entire layer rather than a single feature. As such, all shapes within that layer would have the same rotation applied.

It has been requested that we allow for a field attribute within the shapefile to carry a rotation value that would apply to the shape within that row of the shapefile (similar to behavior supported by ESRI). This allows the user to easily set an individual rotation for each shape.


Jerry Faust
June 22, 2020, 7:16 AM

Additional changes have been applied

  1. The rotationExpression member variable was not being copied within the DrawingOptions ‘equal’ operator

  2. Resulting rotation is now applied to all point types (Standard, Font, and Picture)

  3. Assorted unrelated changes to reduce the number of compiler warnings

Mathijs Dumon
December 13, 2019, 6:43 AM

Not all of those changes are ment to be merged though. I'll clean the branch up a bit today.

Jerry Faust
December 13, 2019, 12:48 AM

I will try to merge changes soon (from develop-mad-staging) and work with it in my dev branch. Thanks for working on this.

Mathijs Dumon
December 10, 2019, 10:12 AM

I’ve been testing this & pushing some changes to that feature branch - since this is my active dev branch, it’s no longer the last commit, but I’ve added this issue nr. in the relevant commit’s message

Mathijs Dumon
December 6, 2019, 7:59 AM

Just to clarify: I completely forgot you said you had something ready, it’s only when I went looking for the issue I was reminded



Mathijs Dumon


Jerry Faust

Fix versions