Skip to main content
deleted 60 characters in body
Source Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345

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? if so, please advice!

I set the line width with the following code:

props['line_width'] = '1.0'
lineLayer = QgsSymbolLayerV2Registry.instance().symbolLayerMetadata("SimpleLine").createSymbolLayer(props)

IfDoes anyone hashave any idea how to check the "draw line only inside polygon" checkbox I would very much appreciate some help :).?

Please see attached image. Qgis layer properties

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? if so, please advice!

I set the line width with the following code:

props['line_width'] = '1.0'
lineLayer = QgsSymbolLayerV2Registry.instance().symbolLayerMetadata("SimpleLine").createSymbolLayer(props)

If anyone has any idea how to check the "draw line only inside polygon" checkbox I would very much appreciate some help :).

Please see attached image. Qgis layer properties

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?

Please see attached image. Qgis layer properties

deleted 19 characters in body; edited title
Source Link
underdark
  • 84.5k
  • 22
  • 233
  • 415

Qgis: How to set “draw line inside polygon” using Python?

This is a Qgis question. 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? if so, please advice!

I set the line width with the following code:

props['line_width'] = '1.0'
lineLayer = QgsSymbolLayerV2Registry.instance().symbolLayerMetadata("SimpleLine").createSymbolLayer(props)

If anyone has any idea how to check the "draw line only inside polygon" checkbox I would very much appreciate some help :).

Please see attached image. Qgis layer properties

Qgis: set “draw line inside polygon” using Python

This is a Qgis question. In the 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? if so, please advice!

I set the line width with the following code:

props['line_width'] = '1.0'
lineLayer = QgsSymbolLayerV2Registry.instance().symbolLayerMetadata("SimpleLine").createSymbolLayer(props)

If anyone has any idea how to check the "draw line only inside polygon" checkbox I would very much appreciate some help :).

Please see attached image. Qgis layer properties

How to set “draw line inside polygon” using Python?

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? if so, please advice!

I set the line width with the following code:

props['line_width'] = '1.0'
lineLayer = QgsSymbolLayerV2Registry.instance().symbolLayerMetadata("SimpleLine").createSymbolLayer(props)

If anyone has any idea how to check the "draw line only inside polygon" checkbox I would very much appreciate some help :).

Please see attached image. Qgis layer properties

Source Link

Qgis: set “draw line inside polygon” using Python

This is a Qgis question. In the 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? if so, please advice!

I set the line width with the following code:

props['line_width'] = '1.0'
lineLayer = QgsSymbolLayerV2Registry.instance().symbolLayerMetadata("SimpleLine").createSymbolLayer(props)

If anyone has any idea how to check the "draw line only inside polygon" checkbox I would very much appreciate some help :).

Please see attached image. Qgis layer properties