Skip to main content
replaced http://gis.stackexchange.com/ with https://gis.stackexchange.com/
Source Link

Following on from this question: How to turn on/off all labels of all layers in QGISHow to turn on/off all labels of all layers in QGIS, OP mentioned in his commentcomment that he uses rule-based labels. I tried searching online as to how these types of labels could be read and modified but only managed to find this post from lutraconsulting:

In order to facilitate addition of rule-based labelling, some internal changes were made to the QGIS labelling engine interface. The labelling is now driven by the new class QgsLabelingEngineV2 which may have several label providers associated with it.

Sounds great. However, when reading through the QgsLabelingEngineV2 class, it mentions:

this class is not a part of public API yet.

Is it currently possible to control rule-based labelling using python?

Following on from this question: How to turn on/off all labels of all layers in QGIS, OP mentioned in his comment that he uses rule-based labels. I tried searching online as to how these types of labels could be read and modified but only managed to find this post from lutraconsulting:

In order to facilitate addition of rule-based labelling, some internal changes were made to the QGIS labelling engine interface. The labelling is now driven by the new class QgsLabelingEngineV2 which may have several label providers associated with it.

Sounds great. However, when reading through the QgsLabelingEngineV2 class, it mentions:

this class is not a part of public API yet.

Is it currently possible to control rule-based labelling using python?

Following on from this question: How to turn on/off all labels of all layers in QGIS, OP mentioned in his comment that he uses rule-based labels. I tried searching online as to how these types of labels could be read and modified but only managed to find this post from lutraconsulting:

In order to facilitate addition of rule-based labelling, some internal changes were made to the QGIS labelling engine interface. The labelling is now driven by the new class QgsLabelingEngineV2 which may have several label providers associated with it.

Sounds great. However, when reading through the QgsLabelingEngineV2 class, it mentions:

this class is not a part of public API yet.

Is it currently possible to control rule-based labelling using python?

Notice removed Draw attention by CommunityBot
Bounty Ended with weiji14's answer chosen by CommunityBot
Notice added Draw attention by mgri
Bounty Started worth 50 reputation by mgri
Fixed broken link; edited tags
Source Link
Joseph
  • 76.3k
  • 7
  • 172
  • 286

Following on from this question: How to turn on/off all labels of all layers in QGIS, OP mentioned in his comment that he uses rule-based labels. I tried searching online as to how these types of labels could be read and modified but only managed to find this post from lutraconsulting:

In order to facilitate addition of rule-based labelling, some internal changes were made to the QGIS labelling engine interface. The labelling is now driven by the new class QgsLabelingEngineV2 which may have several label providers associated with it.

Sounds great. However, when reading through the QgsLabelingEngineV2 classQgsLabelingEngineV2 class, it mentions:

this class is not a part of public API yet.

Is it currently possible to control rule-based labelling using python?

Following on from this question: How to turn on/off all labels of all layers in QGIS, OP mentioned in his comment that he uses rule-based labels. I tried searching online as to how these types of labels could be read and modified but only managed to find this post from lutraconsulting:

In order to facilitate addition of rule-based labelling, some internal changes were made to the QGIS labelling engine interface. The labelling is now driven by the new class QgsLabelingEngineV2 which may have several label providers associated with it.

Sounds great. However, when reading through the QgsLabelingEngineV2 class, it mentions:

this class is not a part of public API yet.

Is it currently possible to control rule-based labelling using python?

Following on from this question: How to turn on/off all labels of all layers in QGIS, OP mentioned in his comment that he uses rule-based labels. I tried searching online as to how these types of labels could be read and modified but only managed to find this post from lutraconsulting:

In order to facilitate addition of rule-based labelling, some internal changes were made to the QGIS labelling engine interface. The labelling is now driven by the new class QgsLabelingEngineV2 which may have several label providers associated with it.

Sounds great. However, when reading through the QgsLabelingEngineV2 class, it mentions:

this class is not a part of public API yet.

Is it currently possible to control rule-based labelling using python?

changed second link to go to class documentation rather than blog post
Source Link
Steven Kay
  • 20.6k
  • 5
  • 34
  • 82
Loading
edited tags; edited title
Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345
Loading
Tweeted twitter.com/StackGIS/status/826422526272217088
Source Link
Joseph
  • 76.3k
  • 7
  • 172
  • 286
Loading