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 130156

Python console embedded in the QGIS GUI, which enables users to use the Python bindings for QGIS (PyQGIS) in order to interact with QGIS objects and functions.

-1 votes
2 answers
3k views

Getting position of point in PyQGIS?

How to get position of QgsPoint objects in pyqgis/ python console using QGIS 3.x? For example: 1 points in vector layer TEST_P migeometria = f.geometry() posicion=geom.asPoint() print(posicion.x()) …
leotv's user avatar
  • 449
1 vote
0 answers
57 views

How to update datasource of handle bad layer with Python console in QGIS 3.4

How do I update the datasource of file project in QGIS, for example myexample.qgz from Python console? What is the command needed, or scripts standalone? For example: layer = iface.activeLayer() n …
leotv's user avatar
  • 449
3 votes
1 answer
650 views

Setting value to defaults Layer properties using PyQGIS 3

I have a vector layer, how to set defaults value in fields from the Python console. Layer Properties / Attributes Form / Defaults | In option: Default value |______________|
leotv's user avatar
  • 449
2 votes
1 answer
323 views

Enabling QGIS Atlas from QGIS Python Console

How can I enable the checkbox of atlas of print composer in QGIS 3.4, from Python Console in QGIS? Here a image:
leotv's user avatar
  • 449