Questions tagged [qgis-plugins]

Software plugins that add functionality to the QGIS package

Filter by
Sorted by
Tagged with
9
votes
1answer
6k views

QGIS - export a project with dependencies

I was wandering if there was a way to save a specific project with all layers as dependent files to make it easy to share with collaborators. for example, create a zipped or non-zipped folder ...
9
votes
4answers
5k views

What QGIS plugins do you consider to be essential? [closed]

What QGIS plugins do you consider to be essential - vector, raster, geoprocessing plugins?
9
votes
1answer
2k views

Adding PostGIS layer from QGIS Python plugin

I try to develop a plugin to add postgis layers to qgis from a plugin as part of learning python. The code for adding a postgis layer is taken from the cookbook and work fine if I run it from the ...
9
votes
2answers
1k views

Starting QGIS with virtualenv Python?

is there any means of telling QGIS to use a different Python installation than the default, system-wide one? E.g. use some virtualenv Python /myvirtualenv/bin/python instead of /usr/bin/python? ...
9
votes
2answers
9k views

Splitting irregular polygon into equal areas using QGIS?

I am a surveyor and use QGIS for maintaining soil test records on civil projects and am constantly provided with test lot area or number of lots required. These are more often than not irregular in ...
9
votes
1answer
2k views

Creating raster layer from numpy array using pyqgis?

I am working on a plugin for Qgis to calculate spatial Kernel density maps. I have all the calculations working, all I am missing is a way to turn a Numpy Array, with density values into a multiband ...
9
votes
1answer
868 views

Automatically save python scripts in QGIS

When writing python scripts, QGIS does not save them when the user saves his main project with the ctrl+S command or with Project->Save. Besides, when leaving QGIS, the program does not warn about ...
9
votes
1answer
932 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 ...
8
votes
2answers
2k views

Plugins crashing with “No module named qgsprojectionselectionwidget” in Windows?

My Python QGIS plugin works on Ubuntu (at least for me, and all fatal bugs reported so far are solved), but when I run it on QGIS installed from the official 2.10.1 64-bit installer for Windows (on ...
8
votes
3answers
3k views

Where has the cartogram plugin for QGIS gone?

This plugin used to be downloadable from Carson Farmer's plugin repository page. However, the repository is broken. An old version of the plugin source code is still available at https://code.google....
8
votes
3answers
2k views

no Get More in Plugin Manager in qgis 2 + ubuntu 13.04

After upgrade of qgis 1.8 to qgis 2.0 I couldn't find the choice "Get more" in Plugin Manager and I can't install plugins.
8
votes
1answer
11k views

PyQgis question: How to change or set active layer?

Developing a QGIS plugin, I found that if no layer is selected in the Layers panel I can iterate over all layers and do anything to them, but "activate" them. Could someone give me a hint please?
8
votes
1answer
1k views

What is the purpose of some functions and files in QGIS Python plugins?

I'm just trying to understand the architecture of a QGIS Plugin created with the QGIS Plugin Builder, as well as the workflow and the linkage among generated files. If possible, I'd prefer a diagram. ...
8
votes
1answer
2k views

Programmatically associating layer with custom UI using PyQGIS?

I know it is possible to associate a layer with a custom UI for editing feature attributes using the QGIS interface. But is this possible with Python? This link shows how to achieve the result ...
8
votes
1answer
17k views

What's the proper format for WKT linestrings when importing into QGIS?

I'm trying to run the following test CSV through the Delimited Text plugin as WKT data: oid,Line 1,LINESTRING((45.554194 -122.686101, 45.433001 -122.762632)) 2,LINESTRING((45.432505 -122.598327, 45....
8
votes
2answers
3k views

How can I add a second Toolbar Button and Dialog to a QGIS plugin built with Plugin Builder?

I want to create a toolbar with 2 buttons, each button opening a different form. The steps I followed are: Created a plugin using Plugin builder Created a toolbar with 2 buttons by doing the ...
8
votes
1answer
251 views

Setting QGIS to “show feature count” always when layer is loaded? [closed]

I am using QGIS 3. I know that i can right click the layer and check the "show feature" option but is it possible to show enable this function by default when any layer is loaded ? I know that we ...
8
votes
2answers
2k views

Loading Multiple CSV Files into QGIS 2.10

How can I load multiple CSV files into QGIS with Longitude/Latitude already included in it. I downloaded the "Load Them All" plug-in, however, the result loaded was converted as text files and cannot ...
8
votes
2answers
3k views

QGIS Processing Progress

I have been developing a python plugin that uses Processing algorithm for raster calculations. I want to support the gui with progress bar. How can i connect Processing job to progress bar? I found ...
8
votes
2answers
451 views

QGIS crashes when doing a rollback after modifying values of an user-added feature with pyQGIS

I'm developing an addon for QGIS that needs to assign a UUID to any feature as soon as it is added to the layer. I'm using the featureAdded signal to write the UUID in the corresponding field of the ...
8
votes
1answer
1k views

How to debug a QGIS python plugin with popups?

I'm trying to write a python plugin for QGis. I'd like to debug some DB queries and I need a way to display the result. I thought about using a popup to display it, but I don't know how to show a ...
8
votes
2answers
2k views

Seeking purge function to remove layers from qgs file which are not present in Layers pane of QGIS?

I have some QGIS projects that I've been using for long time, adding and removing layers, updating reference to deleted or moved files etc. Opening the qgs file with a text editor I see that it ...
8
votes
1answer
2k views

Is the use of Google Earth imagery via the OpenLayers Plugin in QGIS legal?

I understand the terms and conditions WRT use of Google Earth imagery in external applications are strict. Years ago ArcBruTile offered such service in ArcGIS the legallity of which was ...
8
votes
1answer
4k views

How to enable GRASS-modules in QGIS?

I have the latest QuantumGIS-1.9.0-master from Github with python-modules support and full GRASS-integration (GRASS-4.6.3-RC2) on Linux. When opening the GRASS-tools plugin, it only displays six ...
8
votes
3answers
5k views

How to extract slope from topographic raster map? [duplicate]

I am working on a project for a machine learning class wherein I extract features from a topographic raster map and then classify the traversability of the terrain. One of the features I need to ...
8
votes
2answers
4k views

Where can I find documentation on QGIS C++ Plugin Development?

Is external C++ plug-in support available for QGIS? I'm having a really hard time getting started here. I followed the doc here: http://download.osgeo.org/qgis/doc/manual/qgis-1.1.0_coding-...
8
votes
3answers
3k views

Snapping points to line and calculating chainage using Open Source GIS

I have a line layer (representing a pipeline) and a points layer (representing valves) and I would like to calculate the chainage of the valves along the pipeline. I assume that I would first need ...
8
votes
3answers
6k views

Unable to Install External QGIS Plugins

I'm using: QGIS version 1.8.0-Lisboa on Windows XP, installed using OSGeo4W I am behind a proxy but I have configured it in Options > Network. When I go to Plugins > Fetch Python Plugins.. All of ...
8
votes
2answers
464 views

Distributing QGIS plugin which depends on certain Python packages

I developed a plugin for Qgis which depends on some Python packages. On Linux and Mac, this is not really a problem because I can easily install them with the system pip command. Windows is another ...
8
votes
1answer
398 views

How do I implement PyQGIS multithreading to update a progress bar

I am developing a PyQGIS plugin using python. I facing a problem during the implementation of threading in my plugin. I have written a Python script which contains a class wrapping all geo-processing ...
8
votes
1answer
2k views

Issues Accessing ESRI File Geodatabase within Quantum GIS Desktop

I am trying to access ESRI file gdb from Quantum GIS. I am on Windows 7, 64-bit. I have found many useful threads on how to set up this functionality within Quantum GIS. The method I went for is ...
7
votes
6answers
5k views

Georeferencer plugin will not load in QGIS

I have downloaded and installed QGIS. I would like to georeference an image using the core georeference plugin. When loading it no toolbar appears and the 'update', 'reinstall' etc boxes in plugin ...
7
votes
5answers
17k views

How to install OpenLayers plugin on QGIS 1.8?

After having installed QGIS 1.8 I am not able to find the OpenLayers Plugin. In "the old days" I know I was supposed to check "add 3rd party repositories", but that button has disappeared. I tried ...
7
votes
2answers
3k views

How to find disconnected islands in a road network layer, using QGIS

I have a road network layer that can't route from one side of the layer to the other. Topologically, there is no connectivity between the start and end nodes, probably due to missing links. This ...
7
votes
3answers
3k views

Is it possible to set up a local QGIS Plugin repository?

I've developed a couple of custom QGIS Plugins for use by our office. I can't post them to the official QGIS Plugins repository as they reference/utilize sensitive data on our own servers. For ...
7
votes
2answers
3k views

How to select and zoom in features from a QGIS Python Plugin

I'm very new to Python. I'm trying to find a way to select and zoom to the features from a QGIS layer. I've created a plugin and built a custom form. I have 3 values from the form which I need to ...
7
votes
3answers
2k 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 ...
7
votes
1answer
1k views

Where's the Plugin called Plugin Reloader

Just installed the QGIS 2.16.1 Nodebo version, while trying to sink my teeth into building plugins , I found that the plugin called "Plugin Reloader" doesn't exist !! Please help
7
votes
3answers
2k views

How to close watermarks window in QGIS Openlayers plugin?

I'm using Quantum GIS Ver. 1.7.4. I have upgraded openlayers plugin 0.7 to 0.9. However when I open google satellite, a watermarks/copyright dialog box "Data Peta@2012 ..." appear in the middle of the ...
7
votes
2answers
1k views

GdalTools core plugin “missing metadata file”

I installed QGIS 3 with GRASS 7 this morning via OSGeo4W64, and the application opens up without any issues, however the GdalTools plugin is coming up as "Invalid", showing the error "This plugin is ...
7
votes
1answer
2k views

getting a plugin path using Python in QGIS

How to get a plugin path using Python? I tried QgsApplication.pluginPath() I got u'/Applications/QGIS.app/Contents/MacOS/../PlugIns/qgis' But I actually store the plugin in ~/.qgis2/python/plugins/...
7
votes
1answer
9k views

Installing QGIS plugins offline?

"Due to various IT policies at my workplace, QGIS is installed on a machine (Window 7, 64bits and QGIS 2.6) that is not connected to the internet. I wish to install a couple of QGIS plugins on this ...
7
votes
2answers
5k views

How to customize the QGIS GUI using Python?

Is it possible to hide/remove/customize the default UI of QGIS from a Python plugin? I want to add my own menus and toolbars and remove some included by default in QGIS. If it's possible, which ...
7
votes
1answer
3k views

How to create a dropdown menu in QGIS Toolbar with Python

I Have a set of some QAction in my QGIS-Plugin and they are created and added to the toolbar like this icon = QIcon(":/action1.png") self.action1 = QAction(icon, u"Action 1", self.iface.mainWindow()) ...
7
votes
2answers
2k views

How to build QgsExpressions in python?

How can I build a feature request expression using variable inside expression? For example values = [1, 2, 3] for j in range( y ): it = vl.getFeatures( QgsFeatureRequest().setFilterExpression ( u'"...
7
votes
1answer
726 views

Select and use raster layer from python

I'm a developer but this is the first experience with python and QGIS Plugin, I want make a plug-in for Remote Sensing Index. I have followed this basic tutorial https://www.youtube.com/watch?v=...
7
votes
1answer
478 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: ...
7
votes
2answers
686 views

Odd behavior in a QGIS plugin: my function is triggered twice

I have a plugin with a function (triggered by a button) that selects a specific layer by name, then shows its attribute table. When I close the plugin and open it again, the attribute table pops up ...
7
votes
1answer
539 views

QGIS 2.14 Python sub-menus

I'm trying to add sub-menu items to a menu that linked to a toolbar icon. It's probably best to show what result I'm getting currently, then reference the code: The code is coming from a plugin class:...
7
votes
3answers
3k views

Error when creating a new mapset with GRASS in QGIS

When I try to create a New Mapset with the GRASS plugin in QGIS I get an error or the program crashes. QGIS 2.6.1 (32-bit install, Win7). QGIS crashes completely when clicking "Finish" in the New ...