Questions tagged [qml]
an XML file used to define a QGIS layer style.
92
questions
0
votes
1
answer
53
views
Applying styling in bulk in QGIS
I work on many projects in QGIS where the same type of maps are created for the final reports. Each map has a particular style, and the layers always retain the same structure across projects.
Each ...
0
votes
0
answers
18
views
QGIS: Saving a custom Python function from the Function Editor to OPKG/QML
As the title states, I'm trying to save a style to OPKG or QML.
The problem is that I have used a custom Python function within the 'Function Editor' in the symbol section, which is currently not ...
0
votes
0
answers
34
views
Use exported WMS layer style (.qml or .sld) to style a vector layer in QGIS
I'm reaching out for assistance with a problem I've encountered while working with QGIS. My goal is to apply the styling defined in a WMS (Web Map Service) layer's exported style file (either .sld for ...
2
votes
0
answers
36
views
Apply "META" Map styles in QGIS
I often work with the same layers but have to use different styles on them. Is there a way to swap the styles of more layers at once.
Like for example:
I have three layers (roads, building, vegetation)...
1
vote
1
answer
138
views
QGIS export layer relations from one project to another
I have a .qgz project with a spatial layer and two non-spatial layers, primarily created for data collection. All the three layers are saved in a single .gpkg file and the non-spatial layers are ...
0
votes
0
answers
51
views
Error when trying to convert lyr to qml
I am trying to convert a lyr file created for ArcGIS to qml in order to use it in QGIS. I installed the SLYR Community Edition Plugin version 5.0.0 in QGIS version 3.28.8-Firenze, provided the input ...
2
votes
0
answers
261
views
Automatically loading QML style file based on layer name in QGIS
I have a folder with ~100 QGIS-style files (.qml). Is it possible to tell QGIS that whenever I load a layer which has the same name as one of the .qml files apply that style instead of giving the ...
2
votes
1
answer
100
views
Exporting QML in QGIS Graphical Modeler
In QGIS graphical modeler, is it possible to set and export .QML extension of an output layer (adding .qml to the others extensions .shp, .shx, .dbf, ..)?
3
votes
0
answers
215
views
In QGIS 3 forms, QML button shows when photo is missing, but not when it is present
In QGS (3.28.4 LTR), I'm trying to add a QML button to a form that will open the attached photo when pressed, but have encountered the problem that the button appears when the attachment field happens ...
3
votes
0
answers
57
views
Conditionally styling multiband raster using QGIS
I have three rasters (altitude, slope, and aspect) and I'd like to be able to merge them into one multiband raster (which I managed to do), and then style it conditionally with a QML, without having ...
6
votes
1
answer
221
views
PyQGIS: setting layer styles with QML file from URL
I was wondering how to import and apply a style from an URL to a layer with PyQGIS.
My first thought was to do this but it didn't workout :
import urllib
from urllib import request
vlayer = iface....
2
votes
1
answer
127
views
Failure to display label styles from QML style file for vector layer using PyQGIS
The following PyQGIS doesn't seem to work to load my label style (from a QML style file) for a vector layer created from WKT LINESTRINGs. The vector layer does display but not the line label styles.
...
3
votes
1
answer
118
views
Changing columns position in attributes table using PyQGIS
Well, I'm new to PyQGIS and I was creating a new shapefile and layer using some information from other layer.
I inserted the data that I wanted inside attributes table and styled it, but I wanted the ...
0
votes
1
answer
62
views
Execute Slyr Algorithm in a standalone app
I'm trying to execute the Slyr : lyr_to_qml.py script (a script written by NorthRoad) in a standalone app. I'm having trouble running it, I get an "ModuleNotFoundError: No module named 'qgis'&...
1
vote
0
answers
61
views
QGIS style overwrites layer variable
I set a layer variable with QgsExpressionContextUtils.setLayerVariable(layer, name, value) and then apply a style which is using the value of this variable (a color).
But when applying the style with ...