Software plugins that add functionality to the QGIS package

learn more… | top users | synonyms

6
votes
3answers
1k views

How do I set layer transparency in QGIS 2.0 with Python?

I have a raster layer loaded in QGIS and I'd like to be able to set its transparency via the Python console. I'm new to the API and have not been able to find out how to do this. Any help would be ...
14
votes
1answer
1k views

Connecting ArcSDE to Quantum GIS for dummies?

I really have a need to be able to connect to and edit ArcSDE data in Quantum GIS. This question has been asked before and apparently is possible, but the instructions are just not specific enough ...
1
vote
0answers
25 views

python handling case in address (lowercase,uppercase) [closed]

I'm working on a python QGIS plugin that takes address info from specific parcels and lists it. The data is in various cases and I'm having a hard time figuring out how to handle it. My data looks ...
1
vote
0answers
24 views

Use QgsRasterCalculator inside function

I'm relatively new to PyQGIS and I'm building a plugin to perform some calculations between raster layers. I was seeking to use the QgsRasterCalculator for some operations, however, the function that ...
2
votes
1answer
61 views

PyQGIS: Change attribute value doesn't work, results in NULL

I am writing a QGIS plugin, which at one point attempts to change several attribute values on a layer. However, in the end no changes are made. If I punch similar code into the built-in Python ...
4
votes
4answers
4k views

How to display special characters German “ÄÜÖß” in a map?

I have a shape file with names for Regions. These don't seem to contain special characters but ugly hyroglyphes. What can I do do display them correctly. If I import the shape as UTF-8 it doesn't ...
1
vote
0answers
65 views

QPyNullVariant not recognized outside of QGIS

So here is a weird one. I'm getting an error about an operation involving a QPyNullVariant: TypeError: unsupported operand type(s) for *: 'QPyNullVariant' and 'float' So I wanted to put a check ...
1
vote
1answer
48 views

How can a gui be visible till all the work is done? (QGIS plugin, python)

I have made a gui in QTDesigner for QGIS2.10 (as a dialog). When I press the ok button (if result == QtGui.QFileDialog.Accepted:) everything works just fine but the gui is disappeared. How can the gui ...
2
votes
1answer
55 views

scripted new items don't show up in the “items” panel on Print Composer

I'm working on a plugin to put items (pictures, arrows, labels) on the Print Composer layout. Everything is fine with the exception that once they are drawn, none of these show up in the "items" panel ...
2
votes
0answers
38 views

How to launch a QGIS core plugin from within a python plugin?

In this case I want to launch the Georeferencer core plugin from within a plugin I have written in python. But I don't understand how to interact with the core C++ plugin system from python, if that's ...
1
vote
0answers
75 views

How to use QGIS ComboManager inside my plugin?

Could someone provide some detailed instructions (for very new beginners!!) on how to integrate combomanager in another plugin? What I have tried (maybe wrong way of doing it!!...): First I ...
1
vote
0answers
21 views

Python error using Vterrain in qgis

Traceback (most recent call last): File "C:/Users/Haimwant/.qgis2/python/plugins\VTerrain\VTerrain.py", line 409, in run os.spawnl(os.P_NOWAIT, directory + "Enviro", ...
1
vote
1answer
55 views

How to use QGIS plugin “Rectangles, ovals digitizing tools”

I installed the Rectangles, ovals digitizing tools-plugin, found it on the toolbar, but it's inactive. I made a layer to which I want to add rectangles, it's visible and editable... The plugin bar is ...
2
votes
1answer
83 views

how do I create simple yes/no dialog in qgis python plugin?

I'm making a QGIS plugin that processes a dataset. I started with pluginbuilder and have a GUI that allows me to set what to do. As my plugin is making changes, when it detects a certain threshold of ...
3
votes
1answer
70 views

Showing QgsAddAttrDialog in a Python plugin

I want to invoke the builtin add field dialog from my python plugin in QGIS: This is the add attribute dialog of the attribute table. It is located HERE. I expect it to return a QgsField. ...
2
votes
2answers
153 views

Road Graph Plugin missing in Qgis 2.8.3

Road Graph Qgis plugin is missing in the official repository, at least, I am not be able to find it. Is it replaced for Network tool in Vector menu? Is there another easy way to have the shortest ...
2
votes
1answer
69 views

Multi Language support for QGIS python plugin

Is there any method for python plugin in QGIS 2.8 to support multiple languages.(including .ui files that is call from this python).Please anyone can help i am new to this environment
3
votes
1answer
81 views

How to use a png image as a correctly georeferenced background in order to trace lines from it?

I have a png image which looks like this and has some lines which I need to trace (the green and red lines): The coordinate system of the map from which the image is taken is EPSG: 3034. How can I ...
0
votes
1answer
72 views

Install qgis2web plugin

I would like to know how and where I can download qgis2web Plugin. I use QGIS with 2.10.1 version.
5
votes
1answer
117 views

How to use third-party package in a QGIS plugin?

I'm developing a QGIS plugin and I would like to use arrow or requests packages as I'm used to manipulate dates and REST APIs. QGIS does not come with these packages (at less arrow), so when I try to ...
3
votes
2answers
327 views

Qgis2Threejs returns empty page

When i try to make 3D scene from DEM with Qgis2threejs it creates a empty html page. I also try to make 3D thematic map from shapefile with the same result. I have also check my browser and it ...
4
votes
3answers
3k views

How to install QGIS 1.8 plugin Georeferencer?

My question is about qgis 1.8 georeferencer plugin. I installed the new version qgis 1.8 but I don't have the georeferencer plugins, how do I install it? I used the georeferencing plugin with QGIS 1.6 ...
1
vote
1answer
39 views

Render QgsRasterLayer without adding to legend

I am trying to render a number of related QgsRasterLayer objects that are related to eachother (they are slippy-type tiles). Ideally I would like one item in the legend that can have its position ...
1
vote
1answer
36 views

How do you launch QGIS (Mac) without any plugins enabled?

On a Mac, how can you launch Qgis without any plugins enabled?
1
vote
1answer
229 views

Automated Viewshed in QGIS

I want to create a workflow with a QGIS script where I need a viewshed tool. There is a really cool viewshed plugin. Unfortunately I am not able to access it in the QGIS console. I also found out that ...
2
votes
2answers
299 views

Return list of selected items of QListWidget PyQt QGIS

I'm a little bit confused (I'm a newbie) on how to get a list of just the selected Items of a QListWidget (in a QGIS plugin). I set up the manageGui function in this way: def manageGui(self): ...
1
vote
0answers
107 views

QGIS Plugin QuickMapServices error

The plugin installs fine but fails to load with the following Python error cannot import name QgsImageOperation
1
vote
0answers
48 views

Call dot net library function from python in QGis

I have created one custom library (.dll) in Dot net. Now, i want to use that dll in my QGis plugin. How i can integrate that? For an example i have one function in library which is used to read excel ...
1
vote
0answers
27 views

How to use itemChanged signal to update data?

I'm trying to understand the itemChanged signal to be able to update some information. An example of what I'm trying to achieve could be: def setCoordText(): label1.setText(str(label1.x()) + "," ...
2
votes
0answers
98 views

Output formats not showing in heatmap plugin (QGis 2.10.1 in ubuntu 14.04)

I just upgraded to QGIS 2.10 (using the debian repos) and the heatmap plugin doesn't show any formats in the dropdown menu. I'm able to open every raster format I have at hand and, of course, the ...
2
votes
1answer
64 views

Populate combobox with postgis layers

I'm new to pyqgis/python and programming in general.. and i am working on my first small project. I want to create plugin so that I can add layers from my PostGIS database to a QGIS project. I ...
2
votes
0answers
172 views

Combining custom QWidgets with ui file generated from QGIS plugin builder?

I am having a hard time figuring out how I can include several QWidgets (created in individual scripts) into the QT Designer ui file generated from a QGIS plugin builder. These are custom widgets I ...
1
vote
0answers
50 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
0answers
37 views

How to change a point of an arrow on Print Composer?

To create an arrow on the Print Composer I've used this: qC = QgsComposition(iface.mapCanvas().mapRenderer()) arw = QgsComposerArrow(QPointF(0, 0),QPointF(10,10),qC) However, I can't find an ...
2
votes
1answer
145 views

Should the QGIS “DB Manager” have Microsoft SQL Server as an option?

I was looking for interactive query options for SQL Server (similar to SQL Server Management Studio). The "DB Manager" works great for Postgres and I'm primarily using the Load as new layer as I build ...
1
vote
1answer
45 views

Qgis layer renaming stays the same

I've been developing a plugin for Qgis, but something weird happend while renaming a layer, now whenever i add a layer using a button in my plugin, the layer is renamed with the last name I gave it. ...
3
votes
0answers
63 views

How to show only selected features from a a layer in the QgsComposerLegend?

I have developed a custom qgis plugin. I have a button to export the map canvas in the form of image along with the legend. I came up with the following code for the legend: legend = ...
4
votes
1answer
106 views

Updating feature attribute in QGIS plugin?

I am writing a plugin for QGIS (v2.12). There have been quite a few similar questions on this forum, but they don't seem to work for me. my plugin does the following: get the vector layer check ...
1
vote
0answers
43 views

TimeManager - scale up PNG?

Whilst I think 'TimeManager' works very well, is it possible to define the output scale, so that the output provides better quality data when exporting? There are no options in its interface where I ...
5
votes
1answer
235 views

Do I have to publish own QGIS plugins?

If I develop QGIS plugins for my company do I have to make them available to others? I use QT-Designer and think that it also depends on the question how you develop your plugins, right? For example: ...
3
votes
1answer
70 views

How to fix Quickfinder OperationalError: table quickfinder_info already exists?

This is what I am getting when I try to search in project layers and create a .qfts file to use quickfinder on a local shapefile. An error has occured while executing Python code: Traceback ...
2
votes
1answer
261 views

Identifying Left and Right Mouse Button Clicks in PyQgis application

I am relatively new to PyQt. I am trying create a custom plugin for Qgis which enables the user to select some features by drawing polygon on the canvas using mouse clicks and then performs ...
1
vote
0answers
29 views

Fetching qgis plugins on 2.12.0 Lyon is taking a very long time

Opening plugins for the first time on QGIS 2.12.0 Lyon there is a window popping up saying "fetching repositories". You can't do anything until it's finished. It then takes it ages to fetch. Any ...
1
vote
0answers
20 views

Creating menu item and adding more than 1 plugin in QGIS?

Because if I execute these lines for each plugin, I created a menu item for each plugin. I created many plugins and wish to place them in a new menu item (not traditionals)
2
votes
0answers
67 views

QGIS: SPIT plugin not loading

Using QGIS 2.12 Lyon on a Mac (Intel, 2013). I check the SPIT line in plug-ins, but the plugin does not appear in the menu bar as promised. Log out, restart, nothing helps. Other plug-ins work fine ...
3
votes
1answer
66 views

QGIS and python: Keep a layer always on top of the others

I am working on a python plugin for QGIS using a layer containing linestrings, which I would like to have on top at all times. I have added the layer like the following: ...
3
votes
1answer
57 views

Check QGIS processing Saga version from a plugin

I am writing a QGIS plugin using SAGA by Processing. Is is possible to test whether SAGA is installed and which version is on? For GDAL, it's OK with: processing.tools.raster.gdal.__version__
2
votes
1answer
41 views

How do I prevent my QGIS Plugin from opening twice?

I have made a new QGIS Plugin, almost everything is working fine, but I can click on my Plugin-Button several times and it starts several times. So I see my Plugin 4 or 5 times. How can I prevent ...
1
vote
0answers
17 views

python - Composer plugin menu catch-22

a plugin for the Print Composer checks if the current project has at least one Composer when loading to avoid the error when creating the menu on a Composer that doesn't exist. However, once the ...
2
votes
3answers
2k views

An error has occured while executing Python code while doing home range analysis (Qgis 1.8.0)

It keeps appearing: Traceback (most recent call last): File "C:/Users/Worten/.qgis//python/plugins\HomeRange_plugin\HRplugin_dialog.py", line 80, in QObject.connect(self.buttonBox, ...