Questions tagged [qgis-plugins]

Software plugins that add functionality to the QGIS package

Filter by
Sorted by
Tagged with
3
votes
1answer
91 views

QGIS plugin problem with several Ui's

I wrote a plugin in PyQGIS, which contains several Ui's (using QT Designer). When I run the code in the QGIS Python console, it works wonderfully. Now I would like to make it available internally for ...
2
votes
0answers
43 views

Adding CityGML as vector layer in QGIS

Is there a possibility to add CityGML data to my QGIS Project? If I want to add it as a vector layer. QGIS always freezes and doesn't work anymore. After googling I found the Plugin CityJSON but I don'...
2
votes
1answer
84 views

QGIS 3.16 with AutoSaver plugin: Renamed bak-files were not opened correctly or just as a blank project, respectively. (Win 10)

Though my current QGIS-project was not saved in that very moment, yesterday evening my Win 10 decided to run an OS-update and shutted down. 'No problem', I thought because of having installed the ...
1
vote
0answers
40 views

ImportPhotos Plugin error - no new photos were added

I have 7 .JPG photos that I'm trying to import so that when I identify features, a photo will pop up on the feature that I click. I've been trying to use the ImportPhotos Plugin, but every time I ...
1
vote
1answer
708 views

Python attribute error class has no attribute dlg

I am trying to create a plugin for QGIS, when I initialize the start of the plugin build and create the GUI without coding any of the buttons associated with the GUI the plugin works, but as soon as I ...
3
votes
1answer
63 views

QField Sync used in different Laptop/Machine

I configured a QField Package project using my machine/laptop. It worked great and was packaged successfully. Then, after I collected data from the field, I synchronized it using the QField Sync ...
2
votes
1answer
52 views

Error while opening qpt layout file

I want to save my layout. I've tried this solution but and it worked. The file is created but when I try to open it, it doesn't work. I don't know why. Here is my code: project = QgsProject.instance() ...
0
votes
0answers
101 views

Create multiple Window Plugin with Python for QGIS

What is the smoothest way to design a multiple Windows Python Plugin for QGIS. Should I create multiple Qt-Designer Windows and try to conect them, or is there a way to create the Windows in one Qt-...
6
votes
2answers
162 views

QGIS Plugin for Shortest path with multiple Stops

I have been asked to find the shortest route from a particular start point to multiple properties along our shires road network. In QGIS I have tested the different network analysis tools and other ...
1
vote
1answer
26 views

QgsTask: finished-function isn't executed

I am writing a plugin for QGIS. I created a task by subclassing QgsTask, it's basically copied from the PyQGIS Cookbook and looks like this: import json import urllib.request from qgis.PyQt.QtCore ...
0
votes
1answer
147 views

Rename layers within group automatically by adding a prefix derived from group name using QGIS

I have some Sentinel derived rasters (time series) divided in tiles. In my QGIS (3.16) each tile is represented by a group. Each group contains rasters from different dates and according layernames. ...
3
votes
1answer
46 views

"Type object 'GeometryType' has no attribute 'LineGeometry'" error when exporting shapefile to SVG

I want to export a shapefile to SVG. It's a simple shapefile from Germany that I downloaded from https://www.eea.europa.eu/ and applied some changes as I wanted. I downloaded SimpleSVG plugin but it ...
2
votes
0answers
20 views

Shapefile Attribute table: Automatic numbering of points arranged in (non-orthogonal) row/line based blocks, by row order + from left to right

I have a Sentinel time series of several rasters, which contain reflection values for 10 Sentinel-bands. Now I'd like to excerpt these values for given points. The sample points are arranged in pixel ...
0
votes
0answers
79 views

Whitebox tool not in QGIS 3.16.5

In QGIS 3.16.5 I can not see a whitebox tools to create contour from raster. Why the whitebox tool does not appear in my QGIS version?
1
vote
1answer
67 views

Transforming dataframe into feature attribute table in Processing plugin using PyQGIS

I am trying to develop a processing plugin using "Create New Script from Template". In this plugin I have created a pandas dataframe. Assuming the df looks like this: C1 C2 0.25 0.84 0.36 ...
1
vote
0answers
22 views

QGIS Plugin Manager is not available in QGIS 2.18. for Mac

I cannot access the repository because it's not available, and when I updated it doesn't work. So, I cannot install plugins. I already try to download the plugin and saved it in the path /Applications/...
0
votes
0answers
16 views

Autocorrelation Plugin Python Development

I have a QGIS Plugin I'm currently working on with various features one of them being performing autocorrelation of a couple of attributes of the selected layer. I have already developed the ...
1
vote
0answers
76 views

"IndexError: list index out of range" for SCP plugin in QGIS

I am using QGIS 3.20 on a Mac with the SCP plugin for pre-processing Landsat 8 OLI images. While I pre-process, I check the following options: Allow calculation of brightness temperature in Celsius. ...
0
votes
0answers
14 views

How to make a layer using mean squared error(MSE) from temperature prediction?

I made a temperature prediction for the next 4 hours using a dataset for 1 year with 10 minutes interval time. I have a file with the coordinates from 20 weather stations (longitude, latitude and ...
0
votes
0answers
53 views

Testing plugin out of QGIS

There is a testing folder in the plugin's directory. Is there a way to launch tests outside the QGIS (without launching QGIS at all)?
2
votes
0answers
37 views

Using PDAL in custom QGIS plugin

Is there a way to use PDAL in the custom QGIS plugin without conda (especially in Windows)? The only solution I'm using now is conda environment activation and launching QGIS from this environment ...
2
votes
1answer
57 views

Clustering points showing the sum of HHS - QGIS 3.18

I have a points layer in QGIS. Each points represent a building. In the attribute table, each point has a field representing the number of HHs in the building (1 HH, 2 HHs, etc...) I want to use the ...
1
vote
1answer
63 views

Printing message with map canvas coordinates after user click in QGIS Plugin

I need to print a message after the user pushes the button "Prueba". The message must contain coordinates "x", "y" from the user's click in the map canvas. I don't know ...
2
votes
2answers
68 views

QGIS - Return the Intersection xyz Between "Select Features by Freehand" Geometry and Layer Feature(s) into Attribute Table

I have a vector layer in QGIS. I'm looking to return the xyz, not of the layer's feature(s), but of the intersection point between a "Select Features by Freehand" geometry and the feature(s)...
7
votes
2answers
268 views

Using QGIS plugin from another plugin

I am trying to create a plugin using plugin builder. I have to combine three plugins in order to get the layer I want to work with. 1st plugin: I need to use the 'tools' it provides and its GUI. 2nd ...
1
vote
1answer
52 views

Setting MapTool from QGIS Plugin

I'm trying to use a custom MapTool in my QGIS Plugin. Somehow it seems to deactivate right after I set it. My Plugin is really simple with just one button calling the function below. mc = iface....
0
votes
0answers
33 views

How to call resizeEvent, closeEvent, cancel on QGIS Plugin?

Hi I am building a plugin in QGIS using the Plugin Builder. I want to add an action when I resize the dialog widget, close the plugin UI (press the close button 'X' on upper right in Windows), and ...
0
votes
1answer
32 views

QGIS delimited text data not updating bearing lines [closed]

I have 3 delimited text layers which are loading lat long data directly from an excel sheet and the corresponding points are automatically updated in my project map the moment I save the Excel sheet. ...
0
votes
0answers
30 views

How to export user profile QGIS?

I want to export the user profile in QGIS to use it on another machine.
4
votes
0answers
63 views

Where does QGIS download plugin .zip files prior to install?

I have a QGIS Python plugin we use internally. I've released a new version - edited the "metadata.txt" file, zipped it, replaced the .zip package on our web host, updated our plugins.xml ...
0
votes
0answers
31 views

QGIS LecoS edge length

I am using the LecoS plugin to analyze areas I have previously mapped. The problem is, that these maps are square, which means, that the areas inside are cut. e.g. the forest continues but I have only ...
0
votes
0answers
55 views

PyQGIS Add Point

I create my own QGIS plugin using PyQGIS. In this there should be the possibility to add a point. The code for this is: iface.actionAddFeature().trigger() Now I have a point. No problem. I also ...
0
votes
0answers
66 views

How to fix ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

I am running the molusce plugin in QGIS 2.18, but when it starts the "Area Change" step, it becomes error. The data that I used in this process are land use map, road map, river map, and ...
1
vote
1answer
59 views

Create ranged sub-symbology within categorized layers

I am developing a plugin in PyQGIS 3. Within this plugin, I already succeeded in categorizing using PYQGIS 3 but I am still looking to find a way to create ranges within these newly created categories ...
1
vote
0answers
43 views

QGIS Plugin works first time but QGIS crashes if executed second time

I built a QGIS plugin, in order to replace existing shapefiles by other temporary layers. My script works the first time, but not the others. If I wait a little, script work again. I don't know why. ...
0
votes
1answer
37 views

Dimensioning plugin not responding

Trying to create a dim line on QGIS 3.16, Windows 10. The Dimensioning plugin seems to be installed, and even created one dim line, but stopped responding (I updated and re-installed it, it didn't ...
1
vote
1answer
59 views

Showing the exact overlap area in Topology Checker QGIS

I am using the Topology checker in QGIS 3.10.11 to find overlaps in a large polygon layer. How can you get it to show you exactly where the overlap is? It just shows me there is an overlap somewhere ...
3
votes
1answer
83 views

Filtering OSM natural peaks in QGIS

The primary source of data for a map that I'm making in QGIS 3.14 QGIS 3.20 is OSM. There is a layer which contains natural peaks, obtained with a natural=peak query. In order to reduce clutter, I'd ...
0
votes
0answers
41 views

Bringing QgisApp & Qgisappinterface to environment using osgeo4w-setup-x86_64

I am using QGIS 3 C++ API. I used osgeo4w-setup-x86_64.exe for installing QGIS. Also, I have installed qgis-dev and Qt5 within QGIS3 SDK. I need to use the QgisApp class in my application, but there ...
1
vote
1answer
24 views

qgis.pyQt5 button role returns different values on definition and button activation

The Goal is to implement 3 Buttons in pyQt5. The returned Values differ from the defined roles values. The returned values seem to depend on the order, the buttons are added. What is happening here? ...
0
votes
0answers
43 views

Plugin Import Error cannot load "WX" as "qt5" is currently running Ubuntu 21.04

Trying to import a self-written Plugin (works on other machines e.g. Windows) but I get an Import Error under Ubuntu 21.04 with QGIS 3.18: Cannot load backend 'WX' which requires the 'wx' interactive ...
1
vote
0answers
494 views

Automating Building Footprint Extraction in QGIS

I am searching to automate the extraction of buildings from satellite images. I found a solution but it was for ArcGIS Desktop https://developers.arcgis.com/python/sample-notebooks/automate-building-...
1
vote
0answers
62 views

Adding text on symbols using PyQGIS

When I go to layer --> properties --> Legend, I can add text on symbols from an expression like round($length , 5). After reading the document here https://qgis.org/pyqgis/3.0/core/Legend/...
1
vote
1answer
103 views

QGIS - couldn't load plugin "processing" - cannot import "bytes"

I just tried to update QGIS, and now get two errors. This when I open the app And this when I try to access the processing plugin. couldn't load plugin 'processing' ImportError: cannot import ...
0
votes
1answer
72 views

Vector layer labeling not working using PyQGIS

I want to label my vector layer by feature id, When I am trying to do it manually, it works fine but when I write the code below, it stops working and I am unable to label them by feature ID $id. Code ...
1
vote
1answer
60 views

Finding source code for all geometry tools of QGIS [duplicate]

I want to find the Python source code for tools like Merge Lines, Multiple parts to single parts, Intersection, Difference etc. I am not having any luck finding them online. Does anyone know any links ...
-1
votes
1answer
98 views

Getting name of shapefile from its path with PyQGIS [closed]

I am making a Plugin and I uploaded my shp file using my shp file path, how can I extract the name of the file from it? Example: D:/Qgis files/sub_folderName/FileName.shp I want to save the FileName ...
0
votes
0answers
22 views

Bash running in custom plugin importing

Suppose I have a custom QGIS Plugin built by Processing driver and have bash script with dependencies. How to do such that when Plugin is importing bash can run?
1
vote
1answer
272 views

PyQT plugin window is always smaller than when run in QGIS

I'm making this plugin and it's big as seen in the screenshot below However, when I open it in QGIS, it's small and it's troublesome to keep adjusting the size.
0
votes
0answers
43 views

QGIS Python duplicate layer with PyQGIS (including joins)

For creating a plugin in QGIS I want to duplicate a layer the way you right click the layer and choose 'Duplicate layer'. I already found a solution provided here: How to duplicate a map layer at most ...

1 2
3
4 5
53