Python bindings for QuantumGIS (QGIS)

learn more… | top users | synonyms

1
vote
0answers
17 views

How to align QProgressBar label in QGIS messagebar? [migrated]

Unable to align the QProgressbar label in Qgis Messagebar. see the image below While progressbar is updating,the label is vanished. so i tried the alignment for progressbar as shown below but its ...
0
votes
0answers
26 views

How to set Marker Line symbol for QgsVectoreLayer by using python?

QgsVectorLayer Right click->Properties->Style->Single symbol->click on simple line in tree node ->symbol layer type -> Marker line Kindly help me to set marker line symbol programmatically by using ...
0
votes
2answers
60 views

How to make line with arrow head in QgsVectorLayer using python?

I need to draw line with arrow head or after drawn the line i need to make it as arrow head line by using python. or can we set any arrow head symbol for line features by using python? Kindly help me ...
0
votes
0answers
43 views

How to use more than one QT form in Qgis Python? [closed]

I need a help to use multiple qt forms in PyQgis. For example, i need to open one qt form after the login form. I tried like this: from PyQt4.QtCore import * from PyQt4.QtGui import * from qgis.core ...
0
votes
0answers
40 views

qgis python app how to add edit feature button?

I'd like to develop a QGIS Python app for plotting points and editing the attributes. I've started with the tutorials here: http://blog.qgis.org/?q=node/59 and read the cookbook ...
0
votes
0answers
29 views

How to load layers from current workspace in the console?

I'm getting started with the python shell of QGIS. I followed the pyqgis documentation and learned to load layers from console at the chapter "loading layers". But the thing I want to do is define ...
1
vote
1answer
56 views

open QGIS project with parameters

I am looking at a piece of work to deploy QGIS as the standard within an organisation. There is an existing piece of software that I need to link to QGIS so that when a button is pressed within the ...
3
votes
1answer
64 views

How to find the nearest line to a point in QGIS? [duplicate]

My question is that given a point and few lines, how should I go about finding the nearest line to the point? I am aware of How to I find the nearest line to a point?, but that isin ArcGIS and ...
6
votes
1answer
118 views

How to draw perpendicular lines in QGIS?

I have a situation like this: What I need to do is to connect each point to every line that is at most, let's say 200 m, away from the point. In other words, I need to draw a perpendicular line ...
1
vote
1answer
60 views

How to “Merge Selected Features” with python?

I have been looking for the answer to this question for some time now, but can't seem to find it! My problem is straight forward: I have one layer It contains lots of features (only polygons), say ...
1
vote
2answers
73 views

Creating QGIS layers in python console vs stand-alone application

I am having trouble creating a QGIS vector layer in a stand-alone python script while exactly the same code works fine in python console inside QGIS. The following code results in a proper ...
3
votes
2answers
184 views

How to automatically reloaded raster layer if source is changed in QGIS?

How to automatically reloaded raster layer if source is changed? (The path is the same but inside source file are changes) I use: qgis.utils.iface.mapCanvas().refresh() but layer not refresh. # ...
7
votes
1answer
111 views

Is it possible to show our custom message in QGIS Status bar using python?

Is there any way to show our custom message in Qgis Status bar using python? Just like in arcgis "IApplication.statusbar.message(0) = "Please wait..." like that is there any option to show ...
1
vote
1answer
44 views

How to get a message when the map is moved in QGIS?

I want to get a message when every time I move the map. I had: def info(self): QMessageBox.information( self, self.tr( "Info" ), self.tr("info") ) I suppose that used to be something like ...
1
vote
1answer
48 views

Joining table to shapefile with pyQGIS

Joining shapefiles is a relatively straightforward proess in QGIS using 'add vector join' in the layer properties menu. I can add a csv file as a vector layer, as well as a shapefile, and join the two ...

1 2 3 4 5 11
15 30 50 per page