<div dir="ltr"><div>Hello</div><div><br></div><div>I am writing a plugin to create label.</div><div class="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><span style="font-size:12.8px">Sample code like below</span></div><div><div><span style="font-size:12.8px">        # parameters for advanced labeling -- picked up from a qgs model file</span></div><div><span style="font-size:12.8px">        # generic labeling propertiesNo Labels</span></div><div><span style="font-size:12.8px">        layer.setCustomProperty("labeling/fieldName",  'No Labels')</span></div><div><span style="font-size:12.8px">        layer.setCustomProperty("labeling/fieldName", share.field_list[0][0])  #[0][0] )</span></div><div><span style="font-size:12.8px">        layer.setCustomProperty("labeling","pal" ) # new gen labeling activated</span></div><div><span style="font-size:12.8px">        layer.setCustomProperty("labeling/fontSize","9" ) # default value</span></div><div><span style="font-size:12.8px">        layer.setCustomProperty("labeling/multiLineLabels","true" ) # default value</span></div><div><span style="font-size:12.8px">        layer.setCustomProperty("labeling/enabled","true" ) # default value</span></div><div><span style="font-size:12.8px">        # layer.setCustomProperty("labeling/displayAll", "true") # force all labels to display</span></div><div><span style="font-size:12.8px">        layer.setCustomProperty("labeling/priority", "10") # puts a high priority to labeling layer</span></div><div><span style="font-size:12.8px">        layer.setCustomProperty("labeling/multilineAlign","1") # multiline align to center</span></div><div><span style="font-size:12.8px">        # layer.setCustomProperty("labeling/wrapChar", "%") # multiline break symbol</span></div><div><span style="font-size:12.8px">        # line properties case</span></div><div><span style="font-size:12.8px">        layer.setCustomProperty("labeling/placement","4" ) </span></div><div><span style="font-size:12.8px">        </span></div><div><span style="font-size:12.8px">        # data defined properties</span></div><div><span style="font-size:12.8px">        layer.setCustomProperty("labeling/dataDefined/PositionX", "1~~0~~~~" + share.field_list[1][0])  </span></div><div><span style="font-size:12.8px">        layer.setCustomProperty("labeling/dataDefined/PositionY", "1~~0~~~~" + share.field_list[2][0])  </span></div><div><span style="font-size:12.8px">        layer.setCustomProperty("labeling/dataDefined/Rotation" ,"1~~0~~~~" + share.field_list[3][0])</span></div><div><span style="font-size:12.8px">        layer.setCustomProperty("labeling/dataDefined/Size" ,"1~~0~~~~" + share.field_list[4][0])</span></div><div><span style="font-size:12.8px">        layer.setCustomProperty("labeling/dataDefined/Hali", "1~~0~~~~" + share.field_list[5][0])  </span></div><div><span style="font-size:12.8px">        layer.setCustomProperty("labeling/dataDefined/Vali","1~~0~~~~" + share.field_list[6][0])  </span></div></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Everything goes well.</span></div><div><span style="font-size:12.8px">However sometimes, when I use this to create label, the label shows "Discourage other labels from covering features in this layer"</span></div><div>Is there any method to force to label?</div><div><br></div><div>This is my codes:<a href="http://plugins.qgis.org/plugins/SuperLabeling/" target="_blank" style="font-size:12.8px">http://plugins.qgis.org/<wbr>plugins/SuperLabeling/</a></div><div><br></div><div>Please help me.</div><div>Thank you very much.</div></div></div></div></div></div></div></div>
</div>