Questions tagged [qgis-plugins]

Software plugins that add functionality to the QGIS package

Filter by
Sorted by
Tagged with
0
votes
1answer
74 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
102 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
291 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 ...
0
votes
0answers
50 views

Finding line segment inside and outside polygon buffer using QGIS

I was developing a plugin in which there is a polygon buffer and line file, now i want to to find all the line segments that are outside the buffer and inside the buffer. Is there anyway to find them ...
-1
votes
1answer
53 views

Is there any way to make a buffer without using the processing buffer tool in PyQGIS [closed]

I am developing a plugin in QGIS and I was given a task to develop a plugin without using the inbuilt functions of QGIS. Now, For most of the case I have avoided using built-in modules like sum line ...
-1
votes
1answer
89 views

Making catenary curve(line) using two points in QGIS

I am trying to create line feature with certain interval(small) so that line looks like curve using catenary formula. The given parameters are X, Y coordinate of two electric poles and need to create ...
2
votes
1answer
71 views

Split layer with lines or with Polygonize (and keeping all features intact) - QGIS 3.18

I want to divide a polygon layer into different smaller polygons. I started by converting the main polygon into a line, then I used the Add line feature to draw the lines. Then I used the Split with ...
0
votes
1answer
98 views

Managing download of map tiles in QGIS

I am very new to the world of QGIS and GIS in general. I have many questions but will refrain from breaking any conduct rules. I have been trying to download very large mbtiles using the Generate XYZ ...
7
votes
1answer
305 views

Calculating the nearest neighbour using given road network in QGIS

I have the following information/layer: Address points (point layer) Points which represent the entries to urban green spaces (point layer) - I built these cutting the roads with the borders of a ...
0
votes
0answers
30 views

Removed layer not found when adding it again using PyQGIS

I'm working on a plugin for QGIS 3.14. In the process in question a new layer is created with directory = 'buffer_result_layer.shp' _writer = QgsVectorFileWriter.writeAsVectorFormat(input_layer, ...
4
votes
2answers
228 views

Connecting unconnected multiple vertical Lines in QGIS

So I have these multiple vertical lines as shown below. So what I am aiming for is to connecting these unconnected lines into one lines automatically. What I've been done so far is to connected it ...
9
votes
2answers
366 views

Numbering adjacent points/centroids in sequential order using QGIS

I am using QGIS 3.18. I have, for example, this layer with points or centroids (with x, y coordinates) I want to enumerate the points from right to left (for example) and top to bottom like this: I ...
5
votes
2answers
238 views

Where should I add the API key in ORS Tools?

I want to make an isochrone for my halte and station points. But I have to configure ORS Tools with my API key. The problem is, I can't find any configuration button in my ORS Tools plugin. How should ...
2
votes
1answer
43 views

Using Plugin Builder 3 to create a processing plugin that outputs an image collection

I'm very new to QGIS and PyQGIS. I've used ArcGIS Desktop and a little bit of ArcPy in the past. Right now I am trying to build a processing plugin that takes a shapefile and data (csv), conducts a ...
0
votes
0answers
35 views

Spliting the column in CSV its showing attribute Error in QGIS plugin

I am trying create a new plugin in QGIS. I have my own script its work in normal Jupyter Notebook, then I planned to convert into as QGIS Plugin.The dout/error occur while spliting the columns. ...
0
votes
0answers
141 views

QGIS 3.18.2: ModuleNotFoundError: No module named 'supy'

starting QGIS I get the error: Konnte Erweiterung 'processing_umep' nicht laden aufgrund eines Fehlers beim Aufruf der classFactory() Methode ModuleNotFoundError: No module named 'supy' Traceback (...
2
votes
1answer
47 views

Cannot get the temporal plugin in the plugin manager

I am using QGIS 3.4.8 and I want to animate time series data using temporal controller but I couldn't get the temporal plugin in the plugin manager list. I couldn't install in the software. What might ...
0
votes
0answers
87 views

PyQt Push Button randomly stops working in PyQGIS plugin

I keep running into a very weird issue with clicked.connect not working in various plugins I am working on. The error happens randomly in QGIS 3.x versions and it seems to happen on some machines only....
8
votes
1answer
125 views

Populating ComboBox with unique features in selected attribute field using PyQGIS

I am creating a plugin in QGIS where I want to read a Vector layer --> Select attribute column --> list unique values within the chosen attribute column in the selected attribute from the column....
3
votes
1answer
118 views

Where QGIS puts my downloaded Crayfish plugin?

I just downloaded the Crayfish plugin. It downloaded successfully but then when I search for it in QGIS, it is nowhere to be found. Can someone suggest where it might be located?
2
votes
1answer
122 views

How to cite a QGIS plugin?

I need to cite in a scientific paper the Group Stats plugin (https://plugins.qgis.org/plugins/GroupStats/) of QGIS 3. How should I cite it?
1
vote
0answers
36 views

Open QGIS project from PyCharm or other Python IDE

I have QGIS project and Python script. I know how use QGIS Python console to run script. Is there any way to open a QGIS project in PyCharm and to run the Python script there?
4
votes
1answer
104 views

List the row of dataframe/attributes in combobox

I am new to QGIS plugin creation. I have created a 3 Combobox like these Combobox, Combobox_1, Combobox_2. I get the data input from Combobox using the lines layers = QgsProject.instance()....
1
vote
0answers
79 views

GRASS init error when adding GRASS as Plugin in QGIS 3.18.2

When I add GRASS from a list of Plugins, I receive an error: GRASS init error: GRASS was not found in 'C:/PROGRA~1/QGIS 3.18/apps/grass/grass78' (GISBASE), provider and plugin will not work. ...
5
votes
1answer
106 views

Changing Points into Hexagon-Polygons using QGIS

I have only just started using QGIS and version 3.18, I need to convert Vector points into Polygons for a client and there was a plugin that did this in version 2 but I can't find anywhere in the ...
2
votes
1answer
139 views

QGIS, Get and Save Features from distant server through REST API

I have a Web app where you can create geodata with OpenLayers. (Polygons and points). It's saved on a PostGIS database along with other non-geographic data. You can export the geographic data as ...
1
vote
1answer
45 views

PyQGIS-Code in Plugin doesn't store features completely in memory layer

Within a QGIS plugin I download data which is then converted into a list of QgsFeatures. My way of storing for a long time was to use addFeatures on the provider object, but now in QGIS 3.16 LTR, not ...
0
votes
0answers
35 views

QGIS Offline Editing Plugin scrambles layer structure on synchronization

At work our QGIS database is stored in a shared location. I tried using the Offline Editing Plugin in QGIS to store a copy on my local hard drive. When I tried to synchronize the offline project with ...
0
votes
1answer
108 views

QGIS: Plugin, that can import a textfile, to open a QGIS-project

Is there a plugin for QGIS that is able to do the following steps?? QGIS imports an external text-file, opens the project and zooms to the (only) polygon that contains „xyz“ in „field1“. the external ...
2
votes
2answers
344 views

Opening Plugin with another Plugin

I would like to open a Plugin with the help of another Plugin. Is it possible, if I want to switch the workflow of different plugins one after the other, that when I click the submit button of one ...
2
votes
0answers
63 views

Using ctypes for QGIS Python plugin to bind DLL

I'm trying to build a Python plugin in QGIS which does some raster image processing. The processing itself is done via a .dll. Hence, I'd like to bind it with ctypes. First of all: is it possible to ...
4
votes
1answer
98 views

QGIS - Python Action Error

I am using QGIS 3.18.1-Zürich and I am trying to create a Python action. Although I have installed the required packages, I get an error as shown below. Traceback (most recent call last):   File "...
4
votes
1answer
69 views

Get size of a QgsLayoutItemPage in PyQGIS

I work on QGIS plugin in python, in my plugin I load several print layout in a project print layout manager. These print layouts are either A4 or A3. I would like to get the size value (A4 or A3) of ...
2
votes
1answer
135 views

Adding a raster layer on map canvas in PyQGIS

canvas = QgsMapCanvas() canvas.show() canvas.setCanvasColor(Qt.white) canvas.enableAntiAliasing(True) vlayer = QgsVectorLayer('testdata/airports.shp', "Airports layer", "ogr") ...
1
vote
0answers
96 views

Taking picture from QGIS Plugin using PyQt [closed]

I have a button in a Plugin to take a photo and relate it with a feature of a layer in QGIS. My aim is to select a feature, open a camera view (viewfinder), take a photo and save it with the feature ...
1
vote
0answers
106 views

QGIS: Python numpy error when installing plugin

I want to install the plugin "UMEP", but it results in this error: An error has occurred while executing Python code: RuntimeError: module compiled against API version 0xe but this version ...
1
vote
0answers
19 views

QGIS clipping OpenStreetMap but still being able to run functions such as ORS Tools on the layer [duplicate]

I have struggled to find a solution to be able to clip an OpenStreetMap (OSM) raster layer but still run functions using plugins such as ORS Tools. I would like to clip OSM with an overlaying vector ...
0
votes
2answers
68 views

Remove a legend entry if the layer is not in the composer map

I am working on a QGIS plugin in python. In this plugin I load two layers. These layers are polygons which represent administrative boundaries. My plugin load also several print layout in a Qgis ...
-1
votes
1answer
71 views

Finding point coordinate using Python in QGIS [closed]

How can I find point coordinate in Python vector layer in QGIS? I need to define xy to a variable.
5
votes
2answers
249 views

Looking for a way to create dynamically updating point layers in QGIS (linked to spreadsheet)

I'm looking for a way to create a dynamic link between a QGIS point layer and a spreadsheet that contains point coordinates. For example, I have a spreadsheet of location points for a species of ...
0
votes
0answers
45 views

Appending data to SQL table in QGIS by matching field names

In QGIS 3+, is there a plugin that allows you append data from one feature into another without needing to move columns around, and map columns automatically based on field name? I want to merge ...
0
votes
0answers
64 views

MOLUSCE plugin issue- getting same LULC raster for all simulation

I'm using MOLUSCE plugin in QGIS to predict Land Use Land Cover (LULC) for future. LULC data for 2005 and 2010 is given as initial and final raster along with spatial variables DEM, distance from road,...
3
votes
1answer
36 views

QGIS Viewshed plugin not in any menu

Running QGIS 3.18.2-Zürich on Linux Mint 20.1 Ulyssa. Just tried to add the Viewshed/Visibility Analysis plugin and the Plugin Manager shows it as installed, but it's not in the plugin menu (or any ...
0
votes
0answers
38 views

What geospatial table and indexing functions are suitable for a borehole database design for large volume of serialised constant increment data?

Pretty common use case I suspect, but want to make sure I optimise from the get go. PostGIS I'm suspecting is the weapon of choice, and one way I'll be interrogating data is QGIS. Large part of data ...
3
votes
1answer
64 views

Is there a way to share a QGIS plugin for some users, not every QGIS users?

I need to make a PyQGIS plugin for a client, but we have some specific connection to a database. I did a plugin before only for me so I used QGIS plugin reloader. Now I need it to be on other desktop. ...
3
votes
1answer
139 views

Adding dropdown menu for QGIS Plugin to the toolbar

I have set some actions for my plugin and now I want to group all of them in a dropdown menu as one of the image, which is from another plugin. I've been struggling but I can't find a way to do it ...
2
votes
2answers
148 views

Remove LayoutItemLegend entry PyQGIS

I work on QGIS Plugin in python. This plugin load several Print layout in a QGIS project. These print layout contain a legend. I would like to be able to remove a layer from the composer legend ...

1 2 3
4
5
54