Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [qgis-plugins]

Software plugins that add functionality to the QGIS package

0
votes
0answers
5 views

self.iface.mapCanvas().destinationCrs() Replacement in QGIS 3

I need to store the map canvas' destinationCrs in a variable, but when using the following line: self.iface.mapCanvas().destinationCrs() I get the error: 'QgsMapCanvas' object has no attribute '...
3
votes
1answer
31 views

Customizing QGIS plugins

Is a user legally allowed to make changes to available plugins according to his needs? e.g. changing UI, code etc but not the licenses and other info.
0
votes
1answer
37 views

Updating two or more fields in QGIS?

I have 5 layers: NAM_USA (It has four fields of our interest, named 'bare', 'sand', 'woody' and 'built' depicting feature counts in each of the below corresponding layers.) Baresoil Woodyland ...
3
votes
1answer
67 views

Using libraries other than PyQGIS to develop plugin for QGIS?

I develop a plugin for QGIS. Before to integreted it in the QGIS I developped it with GIS library (Fiona, shapely, geopandas, ...) and it work well. Now I try to build it with plugin_builder of QGIS. ...
2
votes
1answer
29 views

QGIS Table Manager

in QGIS 2.18 I used the table manager plugin for renaming or removing columns in a table. This plugin doesn´t exist in QGIS 3.4.1. Is there any other plugin or way to rename,remove or order columns in ...
1
vote
0answers
47 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 ...
2
votes
0answers
30 views

“slyr-master” plugin for QGIS doesn't work due to “missing meta data”

I downloaded the "slyr" plugin from GitHub which should be able to convert .style data into QGIS. According to the README file, I'm just supposed to add the "slyr" folder to the Python -> Plugin ...
1
vote
0answers
18 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
votes
0answers
37 views

Current Tips for Developing Plugins [on hold]

I was taking a look at PyQGIS cookbook, but I'm struggling too much to set up the development environment. Can't understand how to make the remote debugger to work with Eclipse. I wonder how are you ...
-5
votes
0answers
33 views

Making another layer dependent on field values in QGIS? [on hold]

Could you help me to achieve the automation written in point no 5 of this query: Automate filling of attribute table using QGIS?
2
votes
0answers
11 views

Performing viewshed analysis from each pixel (now points) in raster and getting JSON out of it using QGIS? [on hold]

My question can be divided in 3 steps and I guess I can answer 1.5 of them already. To perform the viewshed analysis from every single pixel in a raster I will need: A viewshed plugin (which I am ...
0
votes
0answers
19 views

Looping group of layers and keeping another layer on in QGIS?

While using loop visible layer plugin, it simply makes a loop of a predefined group of layers, rest of the layers are turned off. What I want is to keep a vector layer on and visible all the time ...
0
votes
0answers
20 views

QGIS 3 crashes when trying to download semi-automatic classification plugin

Installed QGIS 3 in prescribed manner. (i.e. FIRST python, then GDAL, then QGIS 3). Then installed matplotlib manually by typing "sudo pip3 install matplotlib" into terminal. Then, (as per ...
1
vote
0answers
14 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 ...
2
votes
1answer
46 views

Forcing QgsTask to cancel in QGIS plugin?

I want to force closing Qgis project (QgsTask) in some point NOTE: QgsProject.instance().clear() # NOT WORKING QgsTaskManager().cancelAll() # NOT WORKING QgsTask.cancel() # NOT ...
4
votes
1answer
93 views
+50

QGIS Plugin folder names mixup

I've created a python plugin for QGIS. Before I upload it to the QGIS plugins repository, I was doing some testing to make sure it works. In Github, I forked the master repository and created a ...
3
votes
0answers
69 views

Canceling task currently running in background using PyQGis?

I am trying to close QgsProject on loading layer (if password and username from QgSProject - datasource are incorrect) before QgsCredentialDialog is shown. on signal : QgsProject.instance()....
3
votes
0answers
33 views

Hiding Layer Source using PyQGIS

I am developing a plugin for QGIS that loads the layers of a WFS. For security reasons I would like the user could not know the layer source. How can I remove the path of the layer in Vector ...
0
votes
0answers
23 views

Automatic switching between chronological imagery set at 1 month interval in PyQGIS? [on hold]

I have 12 imagery layers of every month in a year. Now I have to manually switch between different image to visualize the permanent/temporary water, grassland changes and cropland changes at that ...
2
votes
0answers
35 views

QGIS Python plugin crashes when using processing algorithms and QThread

I'm developing a QGIS plugin which calls several processing algorithms. I call them in a pipeline where the input layer of each algo is the output of the previous one. The pipeline is called on each ...
1
vote
0answers
45 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 ...
2
votes
1answer
51 views

Using Hot Spot Analysis Plugin on QGIS 3?

I need a help on trying to use the Hot Spot Analysis Plugin on QGIS Noosa. I am not able to install the module "moran".
0
votes
0answers
22 views

Easy AHP returns error because it can not find the SAGA 2.3.2 folder

When I try to complete the AHP in QGIS 2.18.27 using easy_AHP, the plugin responds: although the SAGA tools are working perfectly by the Processing Toolbox. The SAGA configuration options in QGIS ...
-1
votes
0answers
16 views

Seeking editing-plug in for QGIS?

Is there a plug-in to QGIS that "copys" ArcMap's Editor-tools? I am mapping orthophoto in ArcMap. And looking at QGIS I found it not so smooth and quick in creating a map from scratch.
0
votes
0answers
25 views

Python error in “Semi Automatic Classification” plugin while doing PCA of band set (QGIS 3.6.1)

I am trying to do PCA on QGIS with "Semi Automatic Classification" plugin, but it generates an error saying An error has occurred while executing Python code How do I resolve this?
1
vote
0answers
16 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
14 views

QGIS 2 to 3 (QObject.connect) [duplicate]

I can't seem to port this line to QGIS 3.0 API QObject.connect(self.dlg.ui.chkActivate,SIGNAL("stateChanged(int)"),self.toggle_activate) Any ideas? I believe QObject is deprecated.
0
votes
2answers
38 views

QField sync.FileNotFoundError: [Errno 2]

I am using QGIS 3.4.5 (Madeira) alongside with QField 1.0.3 (Matterhorn) with the QField Sync 3.1.3. Everthing worked fine. I made my Project, made it to a QField-Project (with QFiledSync), then to ...
4
votes
2answers
96 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 ...
1
vote
0answers
30 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 ...
2
votes
2answers
26 views

What expression will give age in years in QGIS?

I have the date at which a pipe was laid. I want to create a field giving the age of the pipe in years. How do I do this in QGIS?
1
vote
0answers
25 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
13 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
53 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
1answer
26 views

QGIS- Try writing plugin - neither 'make' nor 'pyrcc4' is known command

I want to write a python plugin for QGIS 3.6. Following the Guide I've installed the mentioned software Qt Creator and the OSGeo4W . There is written, that in the OSGeo4W Shell It would be possible ...
1
vote
1answer
38 views

How to update the attribute table of feature using PyQGIS?

Following code updates the value of field ("name") in console and shows the result but actual attribute table does not get update .Can anybody suggest the error in code. layer=iface.activeLayer() ...
1
vote
0answers
14 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
19 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 ...
2
votes
0answers
36 views

Testing for vector joins in PyQGIS 3

I'm writing a plugin in PyQGIS 3, and I've to test for vector joins before run a code, so I've found here about vectorJoin() and write this: def joinTables(self): d, f = self.lyrPair() # d = {...
1
vote
2answers
39 views

qgis_version_2: add layer or group of layers always on the top of the legendInterface / Insert the layer at the top of the ToC

I have a code which is adding raster layeror group of raster layers, its working fine. I want to know if there is a way to add layer or group of the layers always on the top of the legend Interface? ...
1
vote
1answer
47 views

QgsLayerTree alternative in QGIS 2.x

I developed a plugin for QGIS 3.x but I need to adjust it to work with QGIS 2.x too. Here is code which is working nice with QGIS 3.x: root = QgsProject.instance().layerTreeRoot() #QgsLayerTree ...
0
votes
0answers
32 views

How to get full attribute list of selected feature in PyQGIS?

Following code gets the feature which is chosen by mouse click.But I want to get list of all of the attribute name and values using script of that selected feature.Can anybody provide the method ...
1
vote
0answers
18 views

Saving QgsRasterBlock object as .tif, or to add it as QgsRasterLayer?

I am currently working on a qgis plugin and I need to simulate each pixel value in raster. I read that the best way to read each pixel value is by using QgsRasterBlock object and I assigned simulated ...
1
vote
1answer
113 views

pyqgis processing, grass: --overwrite does not work

I have a QGIS plugin that tries to call the v.clean algorithm multiple times in a row and use the same output file each time the algorithm runs through. But even though I set the --overwrite parameter ...
2
votes
1answer
47 views

Handling field null values in PyQGIS?

I've wrote a plugin and when I was tested it I found a plugin's case of use that it has to handle with null values. I've had some research and doesnt found much about it in PyQGIS3 documentation, but ...
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/' + ...
2
votes
1answer
43 views

Proper output while using geom.buffer in PyGIS?

I am developing a plugin in QGIS using PyQt5. I have used the following code to create a buffer of different distance for different features in a layer. layers = [layer for layer in QgsProject....
3
votes
1answer
43 views

Using internal QGIS icons / banner in own plugin

I have a problem using the internal symbols/icons in my plugin. For example I want to use the "save" Symbol in a QToolButton or the "cancel" symbol in a QPushButton. I designed the GUI in QT 5 ...
1
vote
0answers
39 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: ...
0
votes
1answer
32 views

Loading *.mrr files in QGIS or using GDAL

Does anyone know how to load the new proprietary MRR files using QGIS or GDAL? I tried using Add Vector Layer but QGIS did not recognize this file.