We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [qgis-plugins]

Software plugins that add functionality to the QGIS package

Filter by
Sorted by
Tagged with
5
votes
1answer
88 views

Add an extended set of plugins to a fresh QGIS installation

There are a number of non-default QGIS plugins I use every day that are not included in a fresh installation of QGIS. QuickMapServices, QConsolidate are just to name a few - I think everyone has their ...
5
votes
1answer
381 views

Displaying loaded project file name in QGIS title bar when opening via QgsProject.instance().read()

On Windows, if I open a project in QGIS then the project file name appears in the title bar. If I do the same thing in PyQGIS using the following code the title bar does not change. from PyQt4....
5
votes
1answer
483 views

Add extra item to drop down menu plugin. “Layers menu from project” plugin

I have created a drop down menu in QGIS. The code is mainly from the "Layers menu from project" plugin. I have cleaned it so it only have the drop down. My problem is that I will like to add an ...
5
votes
1answer
315 views

Adding Features with PyQGIS?

I'm new to PyQGIS and I'm having some dificulties. I'm trying to implement / utilize "Add Feature" (polyline) functionality in my python plugin. I know I can do this by defining starting and ending ...
5
votes
1answer
262 views

Is there a way to locate plugins in the QGIS gui programatically from pyqgis?

I've let my love of shiny new QGIS plugins get the better of me, and I'm finding it difficult to remember which menu / submenu / panel that a given plugin is in. I'm using well over 100 now, and going ...
5
votes
2answers
374 views

How to create a python plugin in QGIS 2.4.0?

While I am learning to create a python plugin in QGIS 2.4.0, I have followed the procedure explained in "https://qgis.readthedocs.org/en/latest/docs/pyqgis_developer_cookbook/13_plugins.html#...
5
votes
1answer
68 views

How to store the CHANGES to a map database

I'm looking into providing a map amendment service for a particular map series. The service will help map owners look into the changes made to the operational features of the map, after the map was ...
5
votes
2answers
4k views

Getting polygon shapefile node coordinates and point order

I am trying to get the coordinates of each node of a polygon in QGIS. What I basically did is use the following tools: Vector -> Geometry tools -> Extract nodes Vector -> Geometry tools -> Export ...
5
votes
2answers
5k views

Is there a way to export QGIS layers to KML?

has had anyone had any luck with the new experimental plugin qgis2kml? I keep getting the error msg layer : format not yet supported I had a look but the author has not provided any documentation, ...
5
votes
1answer
2k views

How to load a postgres view using pyQgis?

Under Qgis 1.8 on Windows 7 I have this problem with my pyArchInit plugin: I need to load on the map canvas my geometries from a postgis layer. Till the 1.7.4 version I use the method explained on the ...
5
votes
1answer
47 views

QGIS plugin development and libraries

I would like to develop a new plugin for QGIS. I'm new to python but good knowledge in other languages. I use "plugin builder" to create the bases of my plugin. Then i would like to add specifics ...
5
votes
1answer
104 views

What signal does x button in messageBar emmit or how to get rid of it using PyQGIS?

I'm creating QGIS plugin and I'm informing user about the progress of computation via QProgressBar, that is shown in messageBar. I have added Cancel button, that gives user a possibility to end the ...
5
votes
1answer
1k views

Timelapse Google Earth Engine and QGIS

Any chance somebody is working on plugin for QGIS or know about any project trying to get Timelapse Google Earth Engine (imagery) into QGIS? There was a major update recently and it looks really ...
5
votes
1answer
708 views

How to change OpenStreetMap Layer Properties in QGIS 2.0

I have loaded the OpenStreetMap layer in QGIS 2.0, but would like to edit the properties in order to better complement the map I'm producing. I can't seem to find the OSM toolbar or OSM Feature widget ...
5
votes
1answer
347 views

QGIS Globe UnsupportedOperationException

My QGIS Globe is not working: After starting it, that massage pops up in a endless loop: UnsupportedOperationException: GeometryGraph::add(Geometry &): unknown geometry type: ...
5
votes
1answer
182 views

Importing text as legend or to legend in QGIS?

I have a layer consisting of appr. 30-45 classes. The majority of the classes has an item description containing multiple lines of text. In ArcMap I can achieve a layout like this Is a similar layout ...
5
votes
0answers
336 views

Add private plugin repository to QGIS 3.4

I want to add a repository to my QGIS 3.4 which is on a private server. The repository contains all files needed (plugin.xml and metadata.txt for example) and has the structure as described here: Is ...
5
votes
1answer
550 views

Enabling QGIS Official Plugin Repository in the 3.4.1 Version?

I am using QGIS version 3.4.1. Recently, I cannot install new plugins. I have looked in the plugin setting. It seems that the link is blocked. The address is "https://plugins.qgis.org/plugins/plugins....
5
votes
1answer
329 views

getFeatures() is inaccurate with memory layers

I was writing a plugin for QGIS when I wanted to copy all my data to memory layers and edit them instead of actual shapefiles to speed up the process. In a QgsMapTool-derived class, I am using a ...
5
votes
1answer
847 views

Sending a https request from a QGIS plugin using urllib2

I'm developing a QGIS plugin that needs to send https request to an API. I have to use urllib2 (see below if you want to know why I don't just use the requests package) The first request I need to ...
5
votes
0answers
402 views

How to compute time-space maps automatically? [closed]

I am looking for a way to produce a time-space map in QGis or ArcGIS. See an example here. As input data, I have a city in the centre of Germany with travel times to some other cities around it. I am ...
5
votes
0answers
8k views

OpenLayers Plugin and QGIS 2.4 [closed]

I have installed QGIS 2.4 with the stand alone installer and the OSGeo4W too on three different computers. Two have Win7 64 and one vista 64. It seems that the OpenLayers plugin does not work any more....
4
votes
4answers
3k views

“ImportError: cannot import name uic” error in QGIS

I've just updated to the current version (2.18.5 on Windows) of QGIS, in the hope of getting rid of the above error, without success. Some time ago I tried to install the QField Sync plugin, which I ...
4
votes
2answers
2k views

Georeferencing window won't open QGIS 2.4

I had the georeferencer window open in QGIS 2.4 while project was running, I accidentally closed the Qgs document with the georeferencing window open (worked absolutely fine till then). When I opened ...
4
votes
3answers
221 views

How often is QuickMapServices updated?

I am using Google Satellite (via QuickMapServices) in QGIS to count settlements in a certain area, and I'm looking to compare this settlement data to satellite imagery from a few years back. Is there ...
4
votes
3answers
15k views

Measuring distance between points using QGIS?

I have a layer with about 500 single points. Now I want to measure the distance between each of these points and one specified observation point. I need the distance to show how far away from the ...
4
votes
1answer
2k views

How to print Bing Aerial maps in QGIS?

I need to create a big number of maps in QGIS for a breeding bird monitoring scheme. The Bing Aerial maps would be perfect as underlying layer as they have sufficient resolution and very nice ...
4
votes
1answer
2k views

How to define an event for features selected in mapcanvas in qgis using python

I have created a push button, when it is clicked it calls the function 'selectfeatures'. This function will call the Select feature by free hand tool of QGIS and allows the user to select features in ...
4
votes
1answer
5k views

How to create a dock widget correctly in QGIS plugin?

I am building a QGIS plugin and would like to use a dock widget. I have used QT creator to design the UI, with the object type being a QDockWidget. When the plugin is enabled in QGIS the dockwidget ...
4
votes
1answer
2k views

How can I delete a shapefile using OGR?

In my QGIS Python plugin, I use shapefile layers and I am having a problem rewriting existing shapefiles. Is it possible to delete a shapefile from disk using OGR?
4
votes
2answers
133 views

How to exaggerate the elevation in QGIS 3.6?

I´m using QGIS 3.6 to create a Thematic Map with a basemap (STRM). So, to do that, I downloaded the STRM file (*.TIF) in this site: https://earthexplorer.usgs.gov/ File Name: s11_e040_1arc_v3 ...
4
votes
2answers
149 views

Getting QGIS / Processing revision number from PyQGIS?

In QGIS, certain processing algorithms change between revision (in my case the merge function between version 2.14.1 and 2.14.7). How can I access this information from PyQGIS, in order to make a ...
4
votes
2answers
727 views

Python Error using MMQGIS, global name 'math' not defined

I am using QGIS 2.16 and trying to compute distances between two points using the MMQGIS plug-in (Hub -distance). This worked like a charm, but recently I have been getting a Python Error whenever I ...
4
votes
1answer
2k views

QGIS: what is the difference between heatmaps and interpolation plugins?

I need to generate a raster looking like a « heatmap » based on a points layer. On this layer, each point represents a nest (bird population study). I need to produce a nest density map (raster) from ...
4
votes
2answers
164 views

Creating space at intersection of two links

I have a shapefile consisting of two links which are crossing over each other. I want to create an empty space at the point of intersection of the two links. As of now, I have been manually doing ...
4
votes
2answers
303 views

Measuring loading times in QGIS using PyQGIS?

Is it possible to measure when QGIS starts and stops loading/rendering a layer? I used something similar in OpenLayers before (loadstart and loadend event, http://dev.openlayers.org/examples/...
4
votes
2answers
587 views

How to use Qgis Gridsplitter Plugin in Console

I would like to use Gridsplitter plugin in console. I have the following code for doing it: from qgis.core import * import qgis.utils import imp gridSplitterPath = "C:/Users/Mossy/.qgis2/python/...
4
votes
3answers
4k views

How to Continue a Line Feature in QGIS?

I'm looking for a way to continue a line feature in QGIS. I have checked the Digitizing Tools plugin (both regular and advanced) for a Prolong Line tool, but I haven't had luck. In ArcGIS there's a ...
4
votes
3answers
1k views

Separate a string value in two integers in QGIS

My problem is the following. I have a huge dataset of forest stands. All the information are separated but in many cases the stands have different age and this is marked in one attribute for example ...
4
votes
2answers
614 views

How to handle PostgreSql 1:m relationship data by using “Data-Driven Input Mask” QGIS plugin?

I have 1:m relationship tables in my PostgreSql. I like to show the main table attributes as well as the relational table attributes (like grid rows) in QGIS attribute-edit-form. What are the entries ...
4
votes
1answer
16k views

make: pyuic4: command not found [closed]

I need to develop a QGIS plugin for a project. First, I launched the following command for the installation on Ubuntu 12.04: sudo apt-get update sudo apt-get install qgis sudo apt-get install python-...
4
votes
2answers
279 views

How to show only postgres vector layers in a QgsMapLayerComboBox?

I started to develop a plugin for QGIS in python and I need to list postgres layers in a QgsMapLayerComboBox. I used a QgsMapLayerProxyModel to show only vector layers from canvas: self.dlg.comboBox....
4
votes
2answers
491 views

Change zoom factor of QGIS programmatically with PyQGIS

I would like to change the zoom factor of QGIS dynamically without restarting QGIS. The changed settings I would like to use for a plugin would be that it let's me dynamically change the zoom ...
4
votes
2answers
787 views

With QGIS Plugins/PluginBuilder, how to prevent 2nd instance of Plugin from starting

I am using QGIS 2.6.0, with PluginBuilder 2.0.3 [checking the version, I just noticed that the 2.1.0 update is available] I am writing a plugin; it installs and runs. While running, I am able to ...
4
votes
2answers
2k views

QGIS Plugin installed but reported as invalid

I'm just discovering QGIS so please excuse my ignorance! I have QGIS 2.4.0 installed, and am trying to install Ordnance Survey Mastermap data. I have installed the OS2OGR translator to handle the ...
4
votes
2answers
246 views

Where to find Documentation for developing QGIS Plugins?

I thought I would try to write a plugin for QGIS (some Python code that I hoped I could easily port) I started following http://www.qgisworkshop.org/html/workshop/plugins_tutorial.html but that turned ...
4
votes
4answers
1k views

How to display a “Save As” dialog for raster files?

I'm writing a QGIS plugin in python. I need to show a "Save as" dialog window in order to allow the user to select the path of the output raster file. Do I need to create a QFileDialog and manually ...
4
votes
1answer
66 views

Distance Matrix (plugin) - QGIS

I have two points in OSGB 1936 (EPSG 27700): A: 308188.48 608846.16 B: 308288.48 608846.16 Distance Matrix produces a result between A and B which is not exactly 100m (100.03935792736038 to be ...
4
votes
2answers
195 views

QGIS extract QTiles beyond layer extent

I'm trying to export a layer via QTiles, gotten from the Data Source Manager and connecting to (USGSHydroCached). I have QTiles set to zoom levels 0-20 and Render tiles outside of layers extent ...
4
votes
2answers
329 views

Adding missing python packages to QGIS Plugin?

In our plugin, we dependent on some external python packages. Some are available in QGIS, some (like pandas or fiona) are not. I've written small script, which checks requirements and if something is ...