You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use a python script to add labels and it works for all geometries except linestring where labels are not displayed until we modify the labeling properties.
@nyalldawson
You said the default is not applicable/usable for line layers (is the default is QgsPalLayerSettings::AroundPoint?)
So, if it's possible - I don't know this part of QGIS code - add a conditional default something like : mDefaultPlacementMember ( layer->.geometryType() == QgsWkbTypes::LineGeometry ? QgsPalLayerSettings.Curved : QgsPalLayerSettings::AroundPoint )
But really don't know if this will change something for the python api.
Well, for my part, I consider that the problem is solved because it is a problem of using the python api.
Describe the bug
We use a python script to add labels and it works for all geometries except linestring where labels are not displayed until we modify the labeling properties.
How to Reproduce
QGIS and OS versions
All 3.X versions and OS
Additional context
Initial problem reported from Oslandia/labelconnector#13
The text was updated successfully, but these errors were encountered: