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 questions only not deleted user 10123

Python bindings for QGIS 3.

1 vote
1 answer
493 views

QGIS Python get current atlas page name

I am trying to dive into Python programming in QGIS. I want to write an expression in my layout that returns some values depending on the current atlas feature. What I need first, is to get the same …
MortenSickel's user avatar
  • 3,836
1 vote
2 answers
296 views

QGIS- python - output name of overlay

I am writing a pygis plugin in which I need to do an overlay. The code of the function doing the overlay look like measure=self.dlg.fcbMeasure.layer() area=self.dlg.fcbArea.layer() params={'INPUT': …
MortenSickel's user avatar
  • 3,836
0 votes
1 answer
57 views

QGIS - moving dataset

I have a point data set that is recorded close to Ottawa in Canada. I am going to use it in some training and for the training purposes, I would like to move the data set to a place a bit east of Cape …
MortenSickel's user avatar
  • 3,836
4 votes
2 answers
1k views

Reprojecting QgsPointXY

I am writing a plugin to import some files into qgis. The files initially have coordinates in lat lon, but I want to reproject them to a local projection during the import. So, I can set the CRS on …
MortenSickel's user avatar
  • 3,836
5 votes
0 answers
288 views

PyQGIS 3: Create a layer with a primary key

I have written a plugin for QGIS that is importing some data. In this plugin, I can create a memory layer for the data like I have described here https://gis.stackexchange.com/a/349354/10123. How can …
MortenSickel's user avatar
  • 3,836
3 votes
1 answer
168 views

Calling a Python function for each page in an atlas

I have made a script to do some calculations for each page of a QGIS atlas (QGIS Atlas with insert map) The script is adjusting the bounding box of a map on the layout page. To make it run for each p …
MortenSickel's user avatar
  • 3,836
3 votes
2 answers
155 views

Reloading plugin makes new item in menu

I am writing a set of plugins doing complementary functionality. I want all the plugins under the same sub menu under Vector. This works fine, but when I am reloading the plugin during development, it …
MortenSickel's user avatar
  • 3,836