Search Results
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 |
Python bindings for QGIS.
2
votes
1
answer
530
views
QGIS - How to update Python Init Function
In layer properties I can set a "Python Init Function" and it works perfectly.
But I can't find a way to update it when developing (without closing QGIS).
1
vote
Accepted
QGIS - How to update Python Init Function
I have updated to QGIS 2.14 and now there more option in layer properties > Fields.
Using "Load from external file", it's now possible to specify an "External File".
I can now modify that file and see …
1
vote
How to load the only selected features from the layer in postgresql to Qgis canvas
Not tested, but it looks to me that your csql should be something like:
csql='SELECT field1,field2,etc
FROM "Trainingset" t, "Polygon" p
WHERE ST_Intersects(t.geom, p.geom)'
3
votes
2
answers
1k
views
Set Snap Mode with PyQGIS
I am trying to set snap mode within QGIS plugin.
So far, I have tried:
QgsSnappingUtils().setSnapToMapMode(QgsSnappingUtils.SnapAdvanced)
and
QgsSnappingUtils().setSnapToMapMode(2)
without succ …
1
vote
How to get the feature id of features added to dataProviders?
Can you use the "python Init Function" of the layer ?
From the example in the tooltip:
def my_form_open(dialog,layer,feature):
geom = feture.geometry()
id = feature.id()
3
votes
Accepted
How to connect push button in dock widget form?
import os
from PyQt4 import QtGui, uic
from PyQt4.QtCore import pyqtSignal
FORM_CLASS, _ = uic.loadUiType(os.path.join(
os.path.dirname(__file__), 'my_dockwidget_base.ui'))
class myDockWidget( …
5
votes
Accepted
Connecting to a spatialite DB, querying, writing the queried result to a spatialite table us...
cur.execute(sql)
rows = cur.fetchall()
for row in rows:
print row
or for one record:
row = cur.fetchone()
print row
8
votes
Accepted
How to populate QTableWidget via plugin?
Let me share how it works for me:
self.setWindowTitle(title)
#data = 'Recordset back from postgis'
nb_row = len(data)
nb_col = 2
qTable.setRowCount(nb_row)
qTable.setColumnCount(nb_col)
for row in …