Questions tagged [qgis-plugins]

Software plugins that add functionality to the QGIS package

Filter by
Sorted by
Tagged with
1 vote
1 answer
23 views

Accessing SpatiaLite tables in custom QGIS Plugin

I have a SpatiaLite database that has relational tables to link geo entities that can be reflected in QGIS as layers. To link the relations I need some custom forms where I can select these entities ...
user avatar
0 votes
0 answers
20 views

QGIS: using field value filename when saving with iterate over features

I'm using the Visibility Analysis plugin (although the same issue would apply in other case) and want to run the viewshed by iterating over the features in my input table. This works fine and I can ...
user avatar
0 votes
1 answer
10 views

Mean of NDVI rasters across time point in QGIS after removing bad quality pixels

I have several NDVI and EVI rasters from different time points across a study period. These are of a region in Burkina Faso, and during the rainy season pixel reliability can be low. I have first ...
user avatar
1 vote
0 answers
62 views

Google Earth Engine plug-in (for QGIS): Authorization error

I have installed the GEE plug-in for QGIS and I am struggling to even get beyond authorisation at the moment. I have an active GEE account to use the plugin. Posted below is the Authorization Error ...
user avatar
  • 11
3 votes
1 answer
38 views

PYQGIS MapLayerComboBox filter on both layer type and field within layer

I have created a plugin, initially for myself (so I didn't have to worry about error handling), but now I need to hand it over to my colleagues and I need to make it fool-proof. I have already ...
user avatar
  • 127
0 votes
0 answers
28 views

Trigger select feature by pressing and holding certain key PyQGIS

I have a line layer, a polygon layer and a button on my plugin. When the button is pressed I want to trigger the vertex tool for the line layer. What I also want is, after pressing this button, if the ...
user avatar
  • 141
0 votes
0 answers
19 views

Is there any known incompatibilites between projections in QGIS 2.18 and QGIS 3.16?

I have a project on QGIS 3.16 with a shapefile of forest remnants from a given Environmental Protection Area in Rio de Janeiro, Brazil. The shapefle seems fine when used over a basemap and it appears ...
user avatar
  • 348
0 votes
0 answers
22 views

Plug-in to reshape sharp edges to circular string is not working near to start/end point of polygon

I am developing a plug-in in QGIS. By using two points I am creating a circular string to reshape sharp polygon edges to round. The plugin is reshaping 3 edges perfectly but failing reshaping near ...
user avatar
0 votes
0 answers
13 views

Installing MOLUSCE 3.0.13 plugin for QGIS 2.18.0 on windows7? (Error This plugin is broken 13)

I am trying to install MOLUSCE 3.0.13 plugin on a QGIS 2.18.0 but every time i try i get an error message saying: The plugin is broken. 13 There is a screenshot so, does anyone have a solution?
user avatar
1 vote
1 answer
41 views

Extract (electrified) railways for Germany from OSM

I need to get all railways in Germany, specifically the electrified ones, for an university project. I found two ways of getting the data. Download the all the OSM data for a the desired region via. ...
user avatar
  • 43
1 vote
0 answers
12 views

An error occurred while LULC raster converting into Vector in QGIS 3.16

The error depicts above come again and again while converting land cover classification raster into vector shapefile in QGIS. In semi automatic classification plugin, there is an option to check ...
user avatar
  • 11
1 vote
0 answers
27 views

Merge lines that are aligned PyQGIS 3

I'm looking for a function that would merge lines if they are both parallel and lie along the same line, in other words they are in alignment. This picture shows an example of some of the line data I'...
user avatar
  • 141
1 vote
0 answers
36 views

Selecting and moving points/polygons from multiple shapefiles in QGIS

It seems that QGIS supports only moving one shapefile at a time. I have installed the MultipleSelection plugin but I receive the following. 2022-06-09T13:42:21 WARNING Traceback (most recent ...
user avatar
  • 19
0 votes
1 answer
35 views

Synchronising feature layer from QField to QGIS that was set to "copy"

I want to load points collected in the field with QField into QGIS. For setup I used the QFieldSync Plugin. Unfortunatley, I set the layer action (under QField -> Cable Export) to "copy". ...
user avatar
3 votes
1 answer
55 views

Avoiding QGIS plugin window to open at start

I have written a few QGIS plugins based on dockwidget (Spectre Viewer and Stripchart viewer). When opened, the plugin window is expected to stay open and react to interactions with opened layers. This ...
user avatar
  • 2,757
1 vote
1 answer
33 views

Adding wkt.csv file to QGIS 3 project using script

I have written a plugin using the Plugin_Builder tool. It takes a CSV, rearranges it and adds a column of WKT coordinates in the style LINESTRING(x1 y1,x2 y2). It then writes it as a new .csv. This ...
user avatar
  • 127
1 vote
1 answer
47 views

Keeping track of features when adding them to new layer using PyQGIS

In my plugin I iterate through 8 different line layers and add only certain lines to a list. This list I add to a new vector layer because these lines are the only ones I care about. However, I need ...
user avatar
  • 141
1 vote
1 answer
23 views

Extracting bulding heights from height map into attribute table

In QGIS, I have a layer with polygon outlines of buildings and a height map over the area, I would like to extract the height of the buildings from the map and insert it into the attribute of the ...
user avatar
  • 121
1 vote
0 answers
41 views

Traveling salesperson in PyQGIS

I actually found several related questions but it seems my specific needs are not answered. I have a set of polygons that I need to hit all of them with some path (no roads, just as the crow flies). ...
user avatar
  • 141
0 votes
1 answer
29 views

PyQGIS 3 Select features by mouse click not working

I'm using the solution provided in this question. but when I click on the canvas nothing happens. here is my code from qgis.gui import QgsMapToolIdentifyFeature, QgsMapToolIdentify from qgis.core ...
user avatar
  • 141
0 votes
0 answers
22 views

QNEAT3 OD Matrix distance incorrect?

I am currently working on calculating the distances between all pairs of NUTS-2 regions in a road network. To accomplish this I am using the QNEAT3 plugin. It worked very efficiently and I was ...
user avatar
  • 51
-2 votes
0 answers
21 views

SCP python error

I am trying image classification of LANDSAT 8 data with the SCP plugin for QGIS. unfortunately I get this error message, when I try to define a ROI: I am not sure why it won't let me define a ROI.
user avatar
0 votes
0 answers
23 views

Couldn't load plugin 'processing_wbt' QGIS 3.24

For the last month or so I've been getting Couldn't load plugin 'processing_wbt' when I start up QGIS 3.24 (on Windows 10). I don't know my way around QGIS much, but is it possibly related to this ...
user avatar
  • 498
2 votes
0 answers
89 views

How to setup QGIS Server plugins on Windows?

I want to setup a QGIS-Server with plugins on Windows10. I installed QGIS-Server, QGIS-Desktop and XAMPP as the Apache-Server. I downloaded the HelloServer Plugin, unziped it and put it in my plugins ...
user avatar
  • 21
0 votes
0 answers
27 views

Joining line data to points using QGIS

Assets: Green point layer Blue point layer (with alphabetical FID attribute) Red line layer (with numerical FID Attribute) Blue line layer Goal: Join red line FID attribute to Blue point in order away ...
user avatar
  • 185
4 votes
1 answer
88 views

PyQGIS: moving legend with changed reference point

I am trying to create a print layout using PyQGIS. As part of that, I want to move my legend to the bottom right corner of the map, using the lower right corner of the legend as the reference point. ...
user avatar
1 vote
0 answers
18 views

How to remove all resources loaded from QGIS plugin?

I used the QGIS Plugin Builder to create a plugin where the main.py file imports dockwidgets and class from its own file and from other files. A button on the toolbar executes the run(self) function ...
user avatar
  • 493
1 vote
0 answers
25 views

Using PyQGIS to replicate my PostGIS result of placing radial lines over polygons

As shown in this photo I have some polygons. I want to make a grid over these polygons (lets say the squares of the grid are 100x100) and over each square I want to place radial lines going through ...
user avatar
  • 141
0 votes
0 answers
13 views

Using GeoJSON and source

I want to use the plugin EquirectangularViewer with my own GeoJSON layer. When I inspect the example project's layer, it gives a source under 'Layer Properties -> Information'. When I add my own ...
user avatar
1 vote
1 answer
64 views

Using PyQGIS to buffer the width different than the height of a rectangle

So I have a polygon in QGIS (3.18) and it will always be a rectangle (I create it using minimum bounding geometry, oriented rectangle) I want to buffer the width out using some math to get the total ...
user avatar
  • 141
0 votes
0 answers
42 views

How to add Height to specific coordinates in meter in the attribute table in QGIS 3.22.4

I would like to add the height/elevation of a specific topographic point into my attribute table. I calculate x- and y- coordinates as well as the dms-coordinates in the field calculator by code and ...
user avatar
  • 1
0 votes
0 answers
61 views

Strahler stream order is not generated in any of the algorithm SAGA, PCRaster or GRASS in QGIS

When generating strahler order by SAGA in QGIS it indicate that QGIS version: 3.22.6-Białowieża QGIS code revision: b6f33b1a Qt version: 5.15.2 Python version: 3.9.5 GDAL version: 3.4.2 GEOS version: ...
user avatar
0 votes
0 answers
18 views

How to publish/distribute QGIS plugin that depends a specific Python module?

In my case the plugin depends on the module json, and currently I ask the user to manually do: $ sudo pip3 install json Is there a better way or a best practice for this? Maybe its possible to ...
user avatar
2 votes
0 answers
47 views

Running the method of QGIS plugin on a seperate thread

I am working on a QGIS plugin. The plugin has a main class running all the operations. I was trying to add a progress window in it. The window should load when a button is clicked running a method ...
user avatar
0 votes
1 answer
22 views

How to create 3D polygon layer in QGIS 3 or convert 2D layer to 3D similar to PostGIS function ST_Force3d()

Right now I'm creating a polygon layer like this: self.poly = QgsVectorLayer("Polygon", "target_polygons", "memory") Is there something I need to do to make this 3D? ...
user avatar
  • 141
1 vote
1 answer
56 views

Conditional signals in QgsTask managing algorithm output

Last question from my QgsTasks questions trilogy... I'd like to insert a new processing algorithm with a raster as an input (let's say 'fill sinks' for instance) to the code provided by @Ben W in his ...
user avatar
  • 279
0 votes
1 answer
28 views

pyqgis 3 zoom to selected polygon without zooming in so far

My plugin has arrow button that I can use to click through the features of a layer and it will jump to that feature. For a Point layer this works great, the user can zoom to the amount they like and ...
user avatar
  • 141
1 vote
1 answer
37 views

Pyqgis 3 adding polygon vector layer in code and triggering iface.actionAddFeature().trigger() will give me polygons but they cannot be selected

Code to add polygon layer when a button is pressed in my plugin: # Add polygon layer self.poly_layer = QgsVectorLayer("Polygon", "target_polygons", "memory&...
user avatar
  • 141
2 votes
1 answer
43 views

Tiles XYZ plugin for newer versions of QGIS

I was wondering if anyone knows what replaced Tiles XYZ for newer versions of QGIS, as I cannot find it when I search for plugins and when I try and install it via zip file it says it only works with ...
user avatar
1 vote
1 answer
85 views

Sharing class variables across thread (QgsTasks) with pyQGIS

In keeping with Setting up thread with busy progress indicator or GIF in PyQGIS where I asked about thread and busy indicator I now wish to ask understand how it is possible to use a variable declared ...
user avatar
  • 279
3 votes
1 answer
72 views

Get M-value from shapefile by mouse click on canvas

I am new to QGIS plugin scripting (3.16 Hannover) (in Python 3.7). I have lots of different layers in my layers panel and I want to be able to click on a button on my GUI, which then activates a ...
user avatar
0 votes
0 answers
13 views

"CityJSON" Plugin, "Railway" Demo Download Problem

I am using the "CityJSON" plugin. Is there a method to alter the color of the labels on the .json file once it's been loaded into QGIS? see picture below
user avatar
1 vote
1 answer
26 views

QgsAttributeTableView shows nothing in my QGIS plugin

I have created a plugin using the Plugin Builder plugin, and I tried to adapt it to show a QgsAttributeTable (by following this example). I get absolutely no errors or warnings, but it simply shows an ...
user avatar
2 votes
1 answer
91 views

QGIS 3.24.1 - Problem Plugin NTv2 Datum Transformations - A failure in the SSL library occurred (_ssl.c:1129)

I'm trying to use the NTV2 Datum Transformations Plugin, but I'm not able to process it without errors (I'm using Win10). I am trying to use the transformation "[AT] Direct and inverse Vector ...
user avatar
  • 21
4 votes
1 answer
180 views

Setting up thread with busy progress indicator or GIF in PyQGIS

As discussed in the comments of this question I have troubles understanding how to to set up a thread with a busy progress bar (or a GIF) within a plugin in QGIS. I would like the progress bar to turn ...
user avatar
  • 279
1 vote
1 answer
34 views

Placing plugin or action in submenu using PyQGIS or PyQT

I am trying to place a plugin into a submenu of "Vector". In this case "Geoprocessing Tools". When I use: iface.addPluginToVectorMenu('Geoprocessing Tools',action) or: iface....
user avatar
  • 435
2 votes
0 answers
22 views

Create longitudinal profile of a stream out of a river system in QGIS

I have been using 'profile tool plug-in' in QGIS 3.20.1 to visualise longitudinal profile of the river in QGIS. Selection options, i.e. temporary polyline; and selected layer, are working well. ...
user avatar
  • 31
3 votes
1 answer
34 views

triggering add feature action in polygon layer using pyqgis in my plugin, the polygons will not show up, although they are there

In Pyqgis after an "edit" button is pressed on my plugin, first I add google sat layer, then move it to the bottom, then I add a polygon layer and move it to the top, then I trigger editing ...
user avatar
  • 141
2 votes
1 answer
31 views

Georeferencer QGIS Import jp2 - Export jp2? - Is that possible?

I would like to do a georeferencing via QGIS 3.22.5. I'm using the standard implementation at the menu point "Raster" -> "Georeferencing". My import file is a jp2-format and ...
user avatar
0 votes
0 answers
39 views

The Plugin works fine only in the first time after the reload

I'm creating a simple plugin to update a certain value from a property of a selected feature. I wanted to limit the selected feature to be only one, therefore I'm using the .selectedFeatureCount() to ...
user avatar
  • 1

1
2 3 4 5
55