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

New Labeling, Rotation over Point is not enabled #15457

Closed
qgib opened this issue Jul 29, 2012 · 8 comments
Closed

New Labeling, Rotation over Point is not enabled #15457

qgib opened this issue Jul 29, 2012 · 8 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Labeling Related to QGIS map labeling
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented Jul 29, 2012

Author Name: Gerhard Spieles (Gerhard Spieles)
Original Redmine Issue: 6118
Affected QGIS version: 1.8.0
Redmine category:labelling
Assignee: Larry Shaffer


New Labeling, section advanced, Placement: "over point" let appear the label midth of the point.
Set y, y and rotation in the advanced section the over point function ist dissabled and the label begins right of the point.

The rotation over point point should be enabled.

Generaly, the rotation field in point layers should be available without the presence or setting of an x and y field in the "datadefined section".
When no field is present or the x and y field is empty, then the coordinate from point geometrie is the right value, in the other cases, the x and y values from the attribute fields.
This functionality was possible in the old labeling engine.


@qgib
Copy link
Contributor Author

qgib commented Sep 4, 2012

Author Name: Paolo Cavallini (@pcav)


  • fixed_version_id was configured as Version 2.0.0

@qgib
Copy link
Contributor Author

qgib commented Sep 4, 2012

Author Name: Larry Shaffer (Larry Shaffer)


Should be implemented with commit 61a5022

Please test.

@qgib
Copy link
Contributor Author

qgib commented Sep 4, 2012

Author Name: Gerhard Spieles (Gerhard Spieles)


Hello,

have tested it with revision 9e9d1ce.
Offset from point functions. It is only possible to rotate all labels with the same rotation-angle. (see attached file "test1_label_offsetfrompoint.jpg"

When you want to get data-field defined rotation, you have to do this in the 'data defined settings' in the group 'position'. The field 'Rotation' is only available, when 'X' and 'Y' are as field defined (otherwise 'Rotation' ist grayed).
Setting X, Y and Rotation fields, dissables the 'Offset from point function'(see attached file "test2_label_offsetfrompoint_with_rotationfield.jpg"

It should be good to add a data defined 'Rotation' field in the 'Offset from point' group.


  • 4843 was configured as test1_label_offsetfrompoint.jpg
  • 4844 was configured as test2_label_offsetfrompoint_with_rotationfield.jpg

@qgib
Copy link
Contributor Author

qgib commented Sep 7, 2012

Author Name: Giovanni Manghi (@gioman)


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Sep 7, 2012

Author Name: Larry Shaffer (Larry Shaffer)


gespiel wrote (in separate posts):

It should be good to add a data defined 'Rotation' field in the 'Offset from point' group.

My apologies; commit 61a5022 only implements the rotation for the whole PAL (new labeling engine) layer, data defined rotation currently remains the same as with v. 1.8. I see now you were requesting two features.

I will be adding the ability to set the rotation independent of x/y for data defined layers as well, but that support will probably only extend to point features that have known or calculated locations prior to the PAL solution (e.g. Offset from point/centroid, as is the case here).

Offset from point functions. It is only possible to rotate all labels with the same rotation-angle.

All labels rotated the same is the intended behavior for the whole PAL layer with current 'Offset from point' functionality.

New Labeling, section advanced, Placement: "over point" let appear the label midth of the point.
Set y, y and rotation in the advanced section the over point function ist dissabled and the label >begins right of the point.

This is correct current behavior. The data defining of x/y (regardless of rotation) will currently override 'Offset from point' settings. Using 'Offset from point' for position, but overriding the rotation value with a data defined rotation field is not yet supported.

To get the label to be centered over the point when x/y are data defined, also map horizontal and vertical alignment fields in the data defined position section to your data source. Populate those mapped fields in your data source with Center for horizontal and Half for vertical.

See this description for v. 1.8: http://gis.stackexchange.com/questions/31478

This issue should remain open until data defined rotation, independent from data defined x/y, can also be used in conjunction with some PAL layer-level settings.

@qgib
Copy link
Contributor Author

qgib commented Sep 16, 2012

Author Name: Giovanni Manghi (@gioman)


This issue should remain open until data defined rotation, independent from data defined x/y, can also be used in conjunction with some PAL layer-level settings.

This has been added 8a347eb

can this ticket be closed?


  • assigned_to_id was configured as Larry Shaffer
  • operating_system was changed from all to

@qgib
Copy link
Contributor Author

qgib commented Sep 16, 2012

Author Name: Larry Shaffer (Larry Shaffer)


Between the above noted commit and commit d83b618 this should now work as expected. New issues with existing functionality in master branch should probably be on a new ticket.


  • status_id was changed from Feedback to Closed
  • resolution was changed from to fixed

@qgib
Copy link
Contributor Author

qgib commented Sep 17, 2012

Author Name: Gerhard Spieles (Gerhard Spieles)


Hello,
perfect!
Thank you verry much.
Gerhard

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Labeling Related to QGIS map labeling labels May 24, 2019
@qgib qgib added this to the Version 2.0.0 milestone May 24, 2019
@qgib qgib closed this as completed May 24, 2019
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

1 participant