Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 40616

QGIS is a cross-platform GIS application licensed under the GNU General Public License.

3 votes
2 answers
926 views

Do QGIS layer definition files (qlr) support joined layers?

I tried to save a qlr file for a shp layer joined to an xls file, but when I load it, the join definition isn't there anymore... Join definition is present in the qlr file, so I assume it should work …
sigeal's user avatar
  • 879
4 votes
Accepted

How to convert QGIS 2.x composer templates to QGIS 3.x layouts templates?

I found the answer here : http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-QGIS-3-layout-conversion-from-old-template-format-td5352994.html 1- Create composers from templates (.qpt) in QGIS 2.x 2- … Save the project 3- Open the project in QGIS > 2.99 4- Save each layout (composer) as a layout template (.qpt) This process is ok for a limited number of templates. …
sigeal's user avatar
  • 879
3 votes
1 answer
946 views

How to convert QGIS 2.x composer templates to QGIS 3.x layouts templates?

I have a bunch of QGIS 2.x composer templates (.qpt) which I would like to use in QGIS 3.x. … I tried to create a layout from template, to add items from template and to copy/paste from QGIS 2.x composer to QGIS 3.x layout, but none succeed. …
sigeal's user avatar
  • 879
0 votes

How to get a composer label by ID with Python in QGIS?

Here is the workaround I found with the help of QGIS Developer list : @staticmethod def getCompositionItem(composition, itemId, itemClass): item = None for item in composition.items(): …
sigeal's user avatar
  • 879
2 votes
Accepted

How to get a composer label by ID with Python in QGIS?

Another workaround suggested by Nyall Dawson (cast) : from qgis.core import QgsProject, QgsLayoutItemPicture import sip myLayout = QgsProject.instance().layoutManager().layoutByName('test') myLayoutP …
sigeal's user avatar
  • 879
2 votes

How to write a custom function for a label?

You can try : cap = capt if capt is not None else '' instead of : cap=coalesce(capt,'') and : cap2 = (dist1 + ' ' + unit1 + ' ' + label1 + ' ' + dist2 + ' ' + unit2 + ' ' + label2).strip() in …
sigeal's user avatar
  • 879
1 vote
1 answer
74 views

Why does setSubSymbol causes QGIS to crash?

I am having problems creating a multilayer line symbol with this code : symbol = QgsLineSymbolV2.createSimple({}) symbol.deleteSymbolLayer(0) symbolLine = QgsSimpleLineSymbolLayerV2() symbol.appendS …
sigeal's user avatar
  • 879
1 vote
Accepted

How to modify spatialite table column names with QGIS?

3.4.1 Note : DropGeoTable should be replaced by DropTable when SpatiaLite lib will be updated in QGIS. … For more detailed information : QGIS issue SpatiaLite ticket …
sigeal's user avatar
  • 879
1 vote

How to make Portable QGIS 3

This batch seems to work, adding a /qgisconfig directory in the current one to store QGIS config : set DRV_LTR=%~dp0 REM set a specific Qgis variable with a variable setting before set OSGEO4W_ROOT=% … Else open a Qgis program with a new empty project if "%1" == "" (start "QGIS" /B %OSGEO4W_ROOT%\bin\qgis.bat --profiles-path %DRV_LTR%qgisconfig) else (start "QGIS" /B %OSGEO4W_ROOT%\bin\qgis-ltr.bat - …
sigeal's user avatar
  • 879
2 votes
1 answer
529 views

How to specify data defined rounded background corners for labels in QGIS 3?

In QGIS 2 I could specify data defined rounded corners for labels background, using a string, for example '5, 5' : In QGIS 3, this same syntax is correctly recognised by the expression generator, but …
sigeal's user avatar
  • 879
1 vote
3 answers
2k views

How to modify spatialite table column names with QGIS?

However, when I load the resulting table in QGIS and open the attribute table, I get old column names and datas replaced by column names. Table before : Table after : …
sigeal's user avatar
  • 879
3 votes
1 answer
177 views

Display label with both direction symbols

I have a line layer describing a road network, with traffic attribute values for both driving directions. I would like to display label for both traffic values with direction symbols (above label is t …
sigeal's user avatar
  • 879
6 votes
1 answer
751 views

Angle orientation for data defined label rotation in QGIS?

It seems that angle orientation for data defined label rotation is different in QGIS 2 (anti-clockwise) and QGIS 3 (clockwise). …
sigeal's user avatar
  • 879
1 vote
Accepted

How to add feature to auxiliary layer and commit changes to auxilliary field in QGIS 3.x?

It turns out that it didn't work because myLayer was a virtual layer, referencing a WFS source. Changing it to a straight WFS layer made it work like a charm, with second version of code (EDIT 2)...
sigeal's user avatar
  • 879
2 votes
1 answer
158 views

How to add feature to auxiliary layer and commit changes to auxilliary field in QGIS 3.x?

I can't figure how to do that, here is my code : auxKeyField = myLayer.fields().field(myLayer.fields().indexOf('id')) auxStorage = QgsProject.instance().auxiliaryStorage() myAuxLayer = auxStorage.crea …
sigeal's user avatar
  • 879

15 30 50 per page