Tag Info

Hot answers tagged


Apologies if I misunderstood your question but perhaps you could create a new attribute column and calculate the length of each feature from there using: $length Hopefully others will help if I am indeed mistaken.


I don't know what could be the difference between console and plugin, I think it should to work either way. Also you try to replace layer.commitChanges() (which makes not sense there) with layer.triggerRepaint() and look if that helps (note it is not necessary to call mapCanvas.refresh()). You can also use custom properties for the layer to enable labeling, ...

Only top voted, non community-wiki answers of a minimum length are eligible