Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [qlr]

QGIS Layer Definition file.

1
vote
0answers
34 views

QLR loaded via PyQGIS not loading correctly but works when using layer--add qlr

Based on Load .qlr with loadNamedStyle I was able to add a QLR to a python tool via PyQGIS -however, it appears broken... elif ftype=='qlr': try: print ...
2
votes
1answer
445 views

Load .qlr with loadNamedStyle

I tried >>>QgsVectorLayer.loadNamedStyle(r'C:\Some\Path\FOO.qlr') Get this error: Traceback (most recent call last): File "<input>", line 1, in <module> TypeError: arguments ...
1
vote
0answers
41 views

Load .qlr file shows up as group, not layer (works on one machine, not another)

I have a project with a few virtual layers that I've saved as .qlr files so to be reused in other projects. When I reload layer from definition file or drag in by browser, everything works as ...
2
votes
0answers
47 views

Linked styles between .QGS projects

Is there a way to share (linked) a style form one project into other projects so that if I change the style in the "source" project, it's updated in the destination projects? QLR would be great if it ...
1
vote
1answer
296 views

qml style differs from the same sld style saved in QGIS

I am trying to save style that I made in QGIS via layer properties in *.SLD format, but when opening my layer and import this saved *.SLD style - it differs from the initial one! As you can see: my ...
1
vote
0answers
300 views

Add qlr group layer definition to existing QGIS map document

I am able to drag and drop a .qlr group layer definition into new QGIS map projects prior to a first save, but when I drag and drop a .qlr file into a map project in QGIS after the initial save, none ...
3
votes
0answers
221 views

Adding multiple styles to single layer with pyQGIS? [closed]

On QGIS, I would like to programmatically assign multiple .qml styles to a single layer with python. I can add styles manually from the Properties dialog on the layer by selecting Styles->Add... ...
2
votes
1answer
3k views

Problem when inserting a QLR file in QGIS

I work with a polyline layer: and the layer located in "G:\desktop\qgis\lyr". After i save the layer in qlr file and saved it in "G:\desktop\qgis\lyr", i try to load the qlr file with "add from ...