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

Implementation of labeling engine rules (Request in QGIS) #9244

Open
qgis-bot opened this issue Sep 10, 2024 · 0 comments
Open

Implementation of labeling engine rules (Request in QGIS) #9244

qgis-bot opened this issue Sep 10, 2024 · 0 comments
Labels
3.40 Labels Layer labels properties Style manager
Milestone

Comments

@qgis-bot
Copy link
Collaborator

Request for documentation

From pull request qgis/QGIS#58580
Author: @nyalldawson
QGIS version: 3.40

Implementation of labeling engine rules

PR Description:

See qgis/QGIS-Enhancement-Proposals#299

Implements the API framework for setting advanced labeling engine rules for a project, and implements 4 initial rule types:

  • QgsLabelingEngineRuleMinimumDistanceLabelToFeature: prevents labels being placed too close to features from a different layer
  • QgsLabelingEngineRuleMaximumDistanceLabelToFeature: prevents labels being placed too far from features from a different layer
  • QgsLabelingEngineRuleMinimumDistanceLabelToLabel: prevents labels being placed too close to labels from a different layer
  • QgsLabelingEngineRuleAvoidLabelOverlapWithFeature: prevents labels being placed overlapping features from a different layer

(note that the first 3 rules require a build based on GEOS >= 3.10, they are not available for older GEOS builds)

Also implements a registry for storing available rule classes, and serialization of rules and configuration in QGIS projects

Now with GUI:

Peek.2024-09-06.13-06.mp4

Sponsored by Rubicon Concierge Real Estate

Commits tagged with [need-docs] or [FEATURE]

@github-actions github-actions bot added the 3.40 label Sep 10, 2024
@github-actions github-actions bot added this to the QGIS 3.40 milestone Sep 10, 2024
@DelazJ DelazJ added the Labels Layer labels properties label Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.40 Labels Layer labels properties Style manager
Projects
None yet
Development

No branches or pull requests

3 participants