The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [qgis-plugins]

Software plugins that add functionality to the QGIS package

528 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
20 views

How to call for Matrix Parameter / Enum Parameter using Field Calculator in the graphical modeler of QGis?

I am using QGis Graphical Modeler v.3 It is possible to define, as an Input, a Matrix, defined as follows: "A table (matrix) parameter for processing algorithms". I want to use values stored within a ...
1
vote
0answers
26 views

Installing plugin from URL in XML doesn't move files in plugin folder

When I try to install a plugin using a repo I created the downloaded zip file doesn't place the files within the plugins folder correctly. They are placed outside the folder. For example QGIS is ...
1
vote
0answers
20 views

Converting Model in Plug-in in QGIS

Recently, I started making a model on QGIS and now I want to transform it into a plug-in, but it seems that I have to change the code to do it, otherwise it won't work. I already have the plug-in, I ...
1
vote
0answers
29 views

Drawing/putting pushpin in QGIS map layer for specific lat/long or NGR?

How do I draw/put a pushpin in QGIS map layer for a specific lat/long or NGR? In MapInfo it is quite easy but just wanted to learn how to do the same in QGIS. I have version 3.8.3.
1
vote
1answer
42 views

Reading source code of QGIS tool?

I can see the source code of the core QGIS plugins from the repository in github. I want to use the code snippets of "information about object" tool of QGIS. I tried searching in program files but I'm ...
1
vote
0answers
30 views

How can to find tolerance in topology?

I am working with Topology plugins in Qgis 3.8, but I don't see tolerance in topology. I hope to get help. I have attach images.
1
vote
0answers
22 views

Choosing script writer/editor in QGIS Script Runner Preferences

I am a beginner to QGIS and have recently installed QGIS ver.3.82 onto my Windows OS laptop. I have downloaded the Script Runner plugin. I want to use my favorite my script writer/editor (either ...
1
vote
0answers
19 views

Creating rotated local grid/fishnet in QGIS with known AMG origin & rotation angle?

I have a local grid with known origin that is in AMG (metres) and a rotation angle. How do I establish that grid so that it can be projected into known CRS eg GDA94/ MGA Zone projection? I located ...
1
vote
0answers
33 views

AutoForm Plugin for QGIS 3.6

I cannot find the AutoForm plugin. I am using QGIS 3.6, have this plugin perhaps given another name, or where do I find the functionality. I am trying to create lookup tables following this tutorial ...
1
vote
0answers
35 views

QGIS log Error displayed within Quick OSM Plugin

I am having an issue using the Quick OSM Plugin. I am using QGIS V3.4. I am following this tutorial linked below. QGIS Training Manual The issue I am facing is occuring at Step 9 of section 1.2.1 '...
1
vote
0answers
24 views

Find Topology error in polygon layer

I try to find topology error in this polygon layer using QGIS 2.18 with topology rule of "must not overlap": but i don't understand why with the Topology checker, only several areas marked in red, ...
1
vote
0answers
22 views

Using QGIS plugin that's designed for use in interface within PyQGIS?

I need to use a plugin that's designed for use within the QGIS interface in PyQGIS. For example https://github.com/dgoedkoop/joinmultiplelines works great but I want to run it within a script, so ...
1
vote
0answers
47 views

Functions like iface.actionSelect().trigger() not working in Plugin?

I want to activate the 'selection Button' in the attribute Toolbar with a click on a button. I always get the error that my class object has no attribute 'iface'. What am I missing here? (I am ...
1
vote
1answer
44 views

Showing attribute table in QGIS plugin

I'm trying to develop a plugin which grabs a layer from the project and shows its attribute table in a tableView. My code is as follows: def getVectorLayer(self): layer = None layername = ...
1
vote
1answer
51 views

Automatically exchange QGIS layer datasources during project opening?

Do you know of any existing QGIS plugin that automatically exchanges layer datasources during opening of a Project? I would like to transparently switch our users from "PostGIS A" server to "PostGIS ...
1
vote
0answers
47 views

Storing information from a Combobox in layer in QGIS/PyQt

I am building a plugin for QGIS and want to add a string to a created polygon. In my dialog I was able to create a ComboBox filled with 10 different strings which can be added while creating the ...
1
vote
1answer
36 views

PyQGIS QgsProcessingAlgorithm: no output layer when cancelled

For one plugin I maintain, I can't figure out how to return output layer when the user hits 'Cancel'. Basically I'm looping over a set of results in processAlgorithm which populates the output layer ...
1
vote
1answer
26 views

FloodRisk plugin not working in qgis v.3

Does anyone knows the equivalent of FloodRisk plugin qgis2. in qgis 3.? or alternatives to FloodRisk that work in qgis3?
1
vote
0answers
43 views

How to use a plugin in the QGIS 3.4 toolbox

I have version 3.4 of QGIS and I want to generate a model, so I need SCP tools (unsupervised classification). I can not find a way to add it to the tool box in order to finish my working model.
1
vote
0answers
49 views

QGIS Python - Error: Feature 0 for attribute update not found

I'm new to QGIS python development. I'm trying to create new features in an existing vector layer and then to display the Feature Form so that the user can fill the attribute values. The problem is, ...
1
vote
0answers
145 views

ImportError: cannot import name 'QgsGeometryAnalyzer' from 'qgis.analysis'

I am trying to do a buffer analysis of my shapefile by Python script but I have this problem in every beginning. The warning message is: ImportError: cannot import name 'QgsGeometryAnalyzer' from '...
1
vote
1answer
65 views

Listing active radio buttons within tab widget or layout?

I have a plugin widget with some tabs, and within the tabs a layout of radio buttons as shown below: I would like to capture the list of active radio buttons within each tab like so: Is there an ...
1
vote
0answers
31 views

Join 3D points into a 3D line in QGIS (with Qgis2threejs plugin)

I have a series of several points in a csv, with each row being a different point, with information for various attributes, including the x and y coordinates, stored across the columns. I've been able ...
1
vote
0answers
112 views

PyQGIS (3.6.3 Noosa) Why is self.iface.mapCanvas().setExtent() being overridden in plugin?

I am writing a plugin that first adds the Google Imagery XYZ tile layer and then adds various other layers - some from a GeoPackage and others by creating their geometry in PyQGIS. The last function ...
1
vote
0answers
69 views

Python Floating Point Error when using SCP plug-in (QGIS 3.6)

I receive a python error every time i try to save a temporary ROI to training input in the Semi-automatic classification plug-in in QGIS 3.6. I'm unable to add any training ROI to training input. ...
1
vote
0answers
10 views

An internal QGIS plugin repository shows available plugin (3.1) version predating the installed version (3.2)

The metadata file is updated and the ui and resource files were compiled. The .xml file is also updated. Where else does QGIS store the plugin version? The plugin works just fine but the 'installed ...
1
vote
0answers
20 views

Is there an API to tell which feature is currently being a target of “identify” tool?

I want to make a plugin that calculates some property of a selected feature. I can use "select feature" tool and then use l=iface.layerTreeView().selectedLayers()[0] f=list(l.getSelectedFeatures())[0]...
1
vote
0answers
29 views

How to update datasource of handle bad layer with Python console in QGIS 3.4

How do I update the datasource of file project in QGIS, for example myexample.qgz from Python console? What is the command needed, or scripts standalone? For example: layer = iface.activeLayer() ...
1
vote
0answers
35 views

Creating tiled QuickMapServices layer programmatically?

I’m writing a stand-alone app using Python and QGIS 2.14.9 (upgrading is not an option). Previous to 2.18, tiled services are not supported directly; you need a plugin like QuickMapServices. I have ...
1
vote
0answers
48 views

Getting rectangle coordinates created in custom QgsMapTool Class of PyQGIS?

I am developing a QGIS (QGIS 3.6) dockwidget plugin where the user creates a rectangle (boundingbox) on the canvas and the plugin sends the rectangles coordinates attached to a HTTP request to my FME ...
1
vote
0answers
60 views

Problems with LecoS plugin in QGIS on Mac Mojave

I wanted to install LecoS plugin in Qgis. But first error appears that I have to instal scipy for python in orderd to use plugin. Python was instaled using instructions from Qgis document, version 3....
1
vote
0answers
67 views

Collecting features from multiple layers, with different attribute fields, in one layer using PyQGIS?

I am developing a plugin for Qgis. I have three layers that contain polygon geometries, and that need to be combined in one layer. During this process, I also collect all the attributes from the input ...
1
vote
0answers
68 views

Reporting distances to polygon features along river network using QGIS?

I am using QGIS 3.6 on windows 10. I am trying to work out a way of reporting on the distances to polygon features (ecological sites) located along a river network. I have extracted the shortest path ...
1
vote
0answers
53 views

Error installing visibility analysis plugin

When I try to download and install the latest version of the visibility analysis plugin from both https://plugins.qgis.org/plugins/ViewshedAnalysis/ and http://www.zoran-cuckovic.from.hr/QGIS-...
1
vote
0answers
20 views

Why does a Remove feature plugin does not work

from PyQt5.QtCore import QSettings, QTranslator, qVersion, QCoreApplication from PyQt5.QtGui import QIcon from PyQt5.QtWidgets import QAction from qgis.core import * # Initialize Qt resources from ...
1
vote
0answers
46 views

Road distance travelled between multiple postcodes

Is there anyway of using QGIS offline... not using API... I want to calculate road distance travelled between multiple postcodes to single destination.. it works perfectly for small number (200) but ...
1
vote
0answers
33 views

How to rectify the error while processing GFA tool?

We are civil engineering students from India. As part of our final year B.tech project based on preparing Floodplain Map , we use QGIS. The tool we came across was GFA (Geomorphic Flood Area) tool. ...
1
vote
0answers
47 views

PyQGIS - QgsProcessingParameterFeatureSink, Why is user input required?

I'm working with a QGIS plugin widget and I have a box which creates a temporary table as an output. I've created the box using the QgsProcessingParameterFeatureSink class. Here is how I created my ...
1
vote
0answers
44 views

QGIS 2.18 - Can't get click coordinates from mapCanvas

Trying to get click coordinates from map canvas but code is not working. Newbie for Python, pyqgis, pyqt I already check these topics but still code is NOT working 1 - QGIS 3 Get coordinates from ...
1
vote
0answers
18 views

How to pull in and push out text browser?

I am using Qt designer to create a plugin in Qgis3. I want to add description of a tool beside the tool. For this I have tried using 'Text Browser' by connecting it with button. I am able to hide and ...
1
vote
0answers
284 views

Looking for freehand editing tool in QGIS 3.x

Is any tool in QGIS 3.x for freehand editing? In 2.4 version it is there but in 3.x I can't find any tools.
1
vote
0answers
26 views

How to use QgsLayerTreeViewDefaultActions Class

I am writing plugin, that connects to postgresql and loads some layers. I am trying to add my own QgsLayerTreeViewMenuProvider for some groups with my layers but to let old menus for all other layers ...
1
vote
0answers
26 views

Panel data regression

I have GIS data on individual events (with timestamps), and I am running a panel data regression, with the outcome variable being the number of events by district by month. My independent variables ...
1
vote
0answers
13 views

QgisPlugin_Faculty

This is the formula for calculating stdev. My goal is to get raster but I'm getting a result in python console [ ] insted of raster. formula_st = '((' + str(k) + '-2)/(' + str(k) + '-1)*C + (1/' + ...
1
vote
0answers
101 views

Remove and reload raster layer from previously created QgsRasterLayer object

I have created a QgsRasterLayer object using: lyr=QgsRasterLayer(url,'lyr_name') and the layer is displayed by: QgsProject.instance().addMapLayer(lyr) Now when this layer is removed through: ...
1
vote
0answers
101 views

QGIS: Zoom to selected feature via plugin doesn't works in first attempt

I recently migrated from QGIS 2.18 to QGIS 3.6. In the plugin, I load a vector layer and then select and zoom to a particular feature. This worked fine in v2.18 but now on 3.6, what happens is the ...
1
vote
0answers
91 views

Dimensioning line with QAD plugin

I would like to use QAD plugin to emulate AutoCAD, especially to draw some dimensioning. There are two possibilities to do so: click on 2 points or select an object. I want to use the object ...
1
vote
0answers
124 views

Can't load Python in QGIS

I am following a tutorial developing a Python plugin in QGIS. After completing the script for the plugin I got the following message the next time I started QGIS. Warning I am a complete novice with ...
1
vote
0answers
39 views

Convert QDialog Plugin to QDockWidget

I have a QGIS 3 plugin that is in QDialog. Everything is functional but i want to change it to QDockWidget and dock it within QGIS. How can i convert it to QDockWidget? I am using QGIS 3 with Pyqt5. ...
1
vote
0answers
39 views

Eventfilter on MapCanvas

I'm trying to capture MouseClick events on the QgsMapCanvas. The goal is to intercept the right mouse button and display a custom context menu. If the right mouse button is pressed with a modifier key ...