All Questions
Tagged with qgis-2 python-2.7
12 questions with no upvoted or accepted answers
5
votes
0
answers
299
views
Get signal on delete group on QGIS 2.18.16
I tried :
QgsProject.instance().layerTreeRoot().willRemoveChildren.connect(self.onWillRemoveChildren)
It works if I delete a group within in the root node. But if I delete a layer within a group ...
4
votes
0
answers
569
views
Get signal on edited feature?
Regarding my pyqgis plugin 2.2 , I've implemented signal on a vector layer event successfully. For instance, whenever i create a new feature, i can read a new basic message appeared via QGIS logging ...
3
votes
0
answers
476
views
minidump written to C: in QGIS PLUGIN
I have created a simple QGIS script using QGIS 2.18.3 and windows 10 and it works fine without errors.But I want to move that script to another PC where I have QGIS 2.6 and windows 7.
I first copy-...
1
vote
0
answers
217
views
Listing items using QGIS combo box from PostgreSQL
I am building a plugin for QGIS which will have a combo box listing data from PostGreSQL.
I have already connected PostGreSQL.
Now I would want to make this a plugin and add the list of jobs to the ...
1
vote
0
answers
29
views
Getting (0,0) instead of the intersecting co-ordinates value
This code works below fine when line(The Circle I mean) intersects more than two new lines but fails when both the intersection falls in the middle of the same line
polygon_path = iface.activeLayer()
...
1
vote
0
answers
116
views
Renaming pre-existing table Field name using PyQGIS
I am using PyQGIS with QGIS 2.84.
This is the code I have used:
layer = iface.activeLayer()
parking_layer_field_names = [str(i.name()) for i in point_layer3.pendingFields()]
layer.startEditing()
...
1
vote
1
answer
95
views
Turn string data (of GPS coordinates) into a GPS tracker = frozen map. QGIS2.14/Py2.7/Win7/LAN
I am currently involved in a student project which is to turn string GPS coordinates into a GPS tracker. This is my current work: First, the UDP data is shared through a LAN (No internet available) ...
1
vote
0
answers
264
views
How can i set layer polygon in center in QGIS using python?
I am trying to set a fixed zoom level whenever I layer is shifting on different polygon. I have coordinates for all the polygons , I need each polygon to be on center with certain zoom level so that ...
1
vote
0
answers
452
views
Label layout on python in QGIS
Now the only issue is that in image I am not getting the labels, I have on polygon. Please help in that too Please see above attached screenshots here I need labels –
I have updated QGIS it's version ...
1
vote
0
answers
122
views
Buffer Csv gets repeated when more than one feature is selected in mapcanvas in PYQGIS
I have a function which will allow the user to select a feature or more features in map canvas and performs buffer for the selected feature(s) and writes the output to a csv file. I dont have any ...
0
votes
0
answers
245
views
Zooming to particular feature among selected features by feature id in PyQGIS?
Using QGIS 2.6 and PyQGIS, I want to zoom to features one by one on click among selected features list and change the colour on zoom without unselecting the other features.
canvas=iface.mapCanvas()
...
0
votes
0
answers
697
views
QGIS 2.18 python error
I very new to all the python-QGIS issue. I try to run this one line code in order to know if the PYTHON 2.7 recognize the modules of QGIS:
import qgis.core
and got this error:
Traceback (most ...