In the QGIS properties of a layer I want to activate "draw line only inside polygon" for a specific layer, but using Python. I don't want to use the GUI for it.
Can this be done?
I set the line width with the following code:
props['line_width'] = '1.0'
lineLayer = QgsSymbolLayerV2Registry.instance().symbolLayerMetadata("SimpleLine").createSymbolLayer(props)
Does anyone have any idea how to check the "draw line only inside polygon" checkbox?
props['draw_inside_polygon'] = '1'
.