Thanks!
Not sure if I do this the best way (I'm not a programmer nor a pyQGIS-expert)...
I ended up with adding two procedures and changing the code-line for setting
the mask () accordingly:
def get_symbollayer(layer, ruleId, symbollayer_ids):
"""
Returns the symbol layer according
Sorry, an error in the code in the previous answer.
Correct code is (writer should be without indentation):
...
def create_blank_gpkg_layer(gpkg_path: str, layer_name: str, geometry: int,
crs: str, fields: QgsFields, append: bool = False
) ->
I'm not a pyQGIS-expert, but with help from gis.stackechange.com I have managed
to create an empty geopackage file and then adding several layers to it with
this code:
...
gpkg_reg = "karplanteregistrering.gpkg" # the NEW gpkg to be
created
if os.path.exists(gpkg_reg):
Thanks to the answer to this post
https://gis.stackexchange.com/questions/447362/pyqgis-to-set-masked-symbol-layer-and-mask-source
I managed to set the mask layer in QGIS version 3.28.
The code is not working In ver. 3.30 due to a change in the
QgsSymbolLayerReference class.
However I'm not
Have a look at
https://gis.stackexchange.com/questions/30990/uninstalling-qgis-that-was-installed-using-osgeo
Best regards
Anne
Fra: Qgis-user På vegne av pete kroopnick
via Qgis-user
Sendt: tirsdag 9. august 2022 05:55
Til: qgis-user@lists.osgeo.org
Emne: [Qgis-user] uninstall WIN 10
How do I
In QGIS 3.22 my raster images saved in as gpkg are shown, in QGIS 3.26 not?
Something I've missed?
Best regards
A. Nilsen
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: