1

If you want to create a new layer based on a subset of an existing layer you need to export after doing your selection (right click on your selected layer then Data>Export Data... and choose export selected data) this will create a new layer with a copy of the selected data. in this case you end up with two copy of your data and any edit made in one copy ...


1

The easiest for me would be to check the properties of the symbology layer which contains symbol properties affecting the whole layer: dir(symbol) >>>['DynamicRotation', 'Fill', 'Hybrid', 'Line', 'Marker', 'RenderHint', 'RenderHints', 'ScaleArea', 'ScaleDiameter', 'ScaleMethod', 'SymbolType', '__class__', '__delattr__', '__dict__', '__dir__', '...


1

Right click the feature class in the Contents pane and open symbology from the context menu. Shift click the first and last class from the "Primary Symbology" pane to highlight all values. Click the "More" button in the "Primary Symbology" pane, and choose "Format all symbols" from the context menu. Switch from gallery view to properties view in the "Format ...


1

You probably select a non-line layer before running the script. You should select a line layer. QgsSymbol.defaultSymbol() returns default symbol (QgsMarkerSymbol, QgsFillSymbol or QgsLineSymbol) for related geometry type. The reason you get the error is that just QgsLineSymbol has setWidth() method, but QgsMarkerSymbol for points and QgsFillSymbol for ...


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