Questions tagged [qgis-plugins]

Software plugins that add functionality to the QGIS package

Filter by
Sorted by
Tagged with
0 votes
0 answers
29 views

QGIS plugin development: When button clicked, run draw rectangle class

How can I connect a class which draws a polygon on map canvas to the button in my plugin? The class which draws polygon is in separate file and I import in to the plugin code: from .rectangleAreaTool ...
0 votes
0 answers
18 views

Freehand editing shapes change location

I have a a raster image and when using Freehand Editing to trace the continents, the moment I release and save the shape it disappears and moves somewhere else. Here’s an example. Any idea why?
0 votes
0 answers
21 views

Couldn't load plugin 'StreetAnalysis'

I downloaded the new version of QGIS 3.26.3 Buenos Aires but each time I open the application an error appears: Couldn't load plugin 'StreetAnalysis' due to an error when calling its classFactory() ...
0 votes
1 answer
24 views

How to add/install library in python notebook or QGIS (python console)?

It gives the error while I am using command line to install the library or package. As you can see in the attached file (the python_console_in_QGIS, command_line_python, and the library_want_to_follow)...
  • 33
1 vote
0 answers
30 views

QGIS 3.22 Add new memory layer vertexTool bug? pyQGIS

I´m creating a QGIS Plugin and I have to load a memory layer with a specific geometry. Here is the simplified code: def run(self): if self.first_start: self.first_start = False ...
  • 11
0 votes
0 answers
16 views

Merging vetor layers using plugin

I am building a plugin in Qgis 3.24 I want to create a button which will open the - 'merge vector layer' processing toolbox dialog or A button which will help me merge vector layers.
  • 25
1 vote
0 answers
26 views

How to share QGIS R Processing Toolbox

I have developed a R Processing Toolbox. This has the file name: ToolboxRQGIS.rsx How can I share this toolbox with my colleagues in the easiest way? For a QGIS plugin, I can archive the developed ...
  • 65
2 votes
1 answer
27 views

Can Sort and Number QGIS plugin be performed as a batch process?

I need to add a field into these shapefile rows which are sequentially numbered when ordered by either the X or Y axis. I have had success with this by using the sort and number QGIS plugin, however I ...
1 vote
2 answers
87 views

QGIS label formula

I have the formula below to make my labels: "operator" || '\n' || "well_name" || ' ' || "well_num" || '\n' || "footagens" || ' ' || 'F' || "ns" || ...
0 votes
0 answers
23 views

QGIS plugin Curve Number Generator won't load

I am trying to use the Curve Number Generator QGIS plugin for hydrology calculations. I have used this plugin before but now it won't load. Giving me the following message and other errors."...
0 votes
0 answers
37 views

QGIS Processing Plugin: Setting input and output directory

I would like to connect my input and output directories, as well as my input file 'boundary layer' within my processing plugin. My plugin appears like this: My plugin.py file is depicted below: ...
  • 45
0 votes
1 answer
15 views

QGIS - QGIS2WEB - Leaflet - CSS Code - Changing background colors [15.09.22]

I am using the QGIS2WEB plugin within QGIS 3.0. I have selected "Leaflet" for export. I am trying to use a different background-color than the normal white (#fff) that appears in the ...
0 votes
0 answers
54 views

Error in storing the result of the the expression of the QgsFieldExpressionWidget

I built a plugin using QGIS 3.24. I want to use the expression dialog to write an equation so i am using the QgsFieldExpressionWidget. I wrotye the code, I have also set the layer and fields can be ...
  • 25
0 votes
0 answers
34 views

Seeking equivalent to QGIS Mask plugin to use in ArcGIS Pro

Is there any (easy) solution to replace my use of Mask plugin for QGIS in ArcGIS Pro? The mask plugin for QGIS let you create in one click a new mask layer with visibility option for labels. This ...
  • 853
0 votes
0 answers
36 views

how to use the QgsFieldExpressionWidget

I am creating a plugin for QGIS 3.24 I have used the QgsFieldExpressionWidget, but i dont kno how touse it in the plugin. I want to open the field calculator/ expression dialog so thats why i used ...
  • 25
1 vote
2 answers
32 views

Deleting a field using plugin in QGIS 3

I am trying to write a function to delete a field using plugin in QGIS 3.24. I have build a plugin , which consists of QgsFieldComboBox. So I can select a field from the combo box to delete (from the ...
  • 25
0 votes
0 answers
16 views

Creating ROI polygons for Landcover Classification in QGIS

I am trying to create a Landcover Classification of an area in South Africa, using Sentinel-2 imagery, in QGIS. To elaborate: after downloading the relevant images from the Copernicus site, I then ...
  • 23
0 votes
1 answer
27 views

QGIS Bézier-editing plugin does not honor id-creating rule when saving new line feature

I have started using the QGIS Bézier Editing Plugin by Takayuki Mizutani v.1.3.4. Plotting line features in my project works well, but on saving the feature the attributes dialog is empty, whereas ...
0 votes
0 answers
11 views

GRASS SET Location and Geomorphones Analysis

Each time, I am trying to 'Set a GRASS Location' in GRASS 7.8.7, I have been getting this error: Starting GRASS GIS... Traceback (most recent call last): File "C:\OSGeo4W\apps\grass\grass78\gui\...
  • 37
0 votes
0 answers
13 views

RuntimeError: wrapped C/C++ object of type QgsMessageBarItem has been deleted

I have this error when I try to run a plugin Traceback (most recent call last): File "C:\Users/user/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\mapeado_3\mapeado_3.py", line ...
2 votes
1 answer
36 views

Access own defined Toolbar with PyQGIS

I created a toolbar in a plugin with: toolbar = iface.addToolBar("new Toolbar") I know I can toggle visibility of this toolbar with: toolbar.setVisible(False) and toolbar.setVisible(True) ...
  • 57
1 vote
1 answer
33 views

QGIS Processing Algorithm - change field value using `changeAttributeValue` or other protocol doesn't save changes

In a simple processing script I am trying to use Regex to search and then replace any found values with a new value. It seems to run fine but doesn't save the changes. [![enter image description here][...
  • 7,766
0 votes
0 answers
15 views

How to run multiple threads from a background worker QThread inside a QGIS plugin?

I am trying to run several threads simultaneously from a single worker thread inside a QGIS plugin. The objective is to be able to click a button on the GUI and have this launch a "background ...
  • 121
3 votes
1 answer
54 views

Closing gaps between polygons in QGIS

I'm working in QGIS. I created a polygon layer of evenly spaced squares (see below). Is there any way to snap these polygons together automatically, removing all of the gaps? The only tool I'm aware ...
0 votes
0 answers
21 views

Not getting any runtime errors from QGIS Plugin

I am working on developing QGIS plugin, but I don't get any errors (beside initial, for example when I try to import non existing class). My colleague gets window with error and message in Log Panel, ...
  • 514
2 votes
1 answer
49 views

Connect QgsMapLayerComboBox to QgsFieldComboBox and get text inputs

I've used the Plugin Builder tool to create the template python code. In QT Designer I have added a QgsMapLayerComboBox and QgsFieldComboBox I have gone through a couple of tutorials and checked the ...
  • 7,766
6 votes
1 answer
139 views

Embbeding QgsLayoutDesignerInterface in plugin widget using QtDesigner and PyQGIS

Following the example of getting the QGIS canvas in a plugin window (as described here), I'm trying to add the QgsLayoutDesignerInterface into a plugin widget. My goal is to simply display (no edit ...
  • 1,607
0 votes
0 answers
32 views

Spatial adjustment of shapefile in QGIS

I am trying to spatially adjust a shapefile containing several polygons, which slightly shift from its raster image. I want to change these features on accurate location so I am using the Vector ...
1 vote
1 answer
35 views

New Data Plotly and get_symbol_color()

I have update Dataplotly to the last version. There is a new function, that is able to pick the same color of the map, for the different plots (get_symbol_color()). As you can see here, this function ...
  • 901
0 votes
1 answer
41 views

QGIS Plugin Builder: All algorithms open when one algorithm is selected in QGIS

I have created a plugin with two separate algorithms. When I open one algorithm (either under plugins menu or through the button at the top) the second one also opens automatically. However, if I open ...
  • 45
0 votes
1 answer
71 views

QGIS Plugin: Copying in Python console script into the QGIS plugin

I have a working Python console script and have created a plugin (processing provider through the plugin builder). Now I want to put the python console script into the plugin. Can I simply copy and ...
  • 45
0 votes
1 answer
64 views

QGIS Plugin Builder: Two separate plugins with the same name provider name

I have created two processing provider plugins, with the same provider name, however the second plugin is not shown in the processing toolbox and cannot be opened under plugins. I receive the ...
  • 45
2 votes
1 answer
114 views

Create cross section from 3D Polyline in QGIS

I have a 3d poly line and I want to create a cross section profile using this 3d lines. What I want to achieve: I) Create vertices in the 'cross section line' where it intersects with the 3d poly line ...
2 votes
1 answer
55 views

Unable to install the plugin for quickosm, wonder what is the next step, any idea?

Couldn't load plugin 'QuickOSM' due to an error when calling its classFactory() method FileExistsError: [WinError 183] Cannot create a file when that file already exists: 'C:\\Users\\akiki\\AppData\\...
0 votes
0 answers
18 views

Start QGIS from pycharm to enable debugging for a plugin on MacOS

I desperately try to setup debugging for my first qgis plugin on MacOs. I installed PyCharm CE and followed https://docs.qgis.org/3.22/en/docs/pyqgis_developer_cookbook/plugins/ide_debugging.html#...
  • 143
0 votes
0 answers
28 views

Error downloading project file to local device from QfieldCloud

I am getting an error downloading project files to local Android device from QfieldCloud. I am able to successfully package and upload a QGIS project to the cloud on Qfield 2.23 using QGIS 3.24. I see ...
  • 1
1 vote
0 answers
42 views

QGIS Azimuth and Distance Plugin Right/Left Curve Input

I'm having a problem with left/right curve of radius rr and distance dd entry for the Azimuth & Distance Plugin. I've only used the plug in for straight lines and it has performed fine. I now have ...
2 votes
1 answer
45 views

How to parameterize 'Select By Location' in QGIS processing plugin

Can someone help me understand how to properly parameterize the 'Select by Location' geoprocessing tool when implementing it in a QGIS processing plugin. I have been following the tutorial on building ...
0 votes
0 answers
30 views

Add point to layer with Coordinates from GPS stream

This is a real PyGIS beginner question. I am trying to write a QGIS plugin and, very basically, would like to create a button that adds a point to a shapefile with coordinates from a GPS stream. What ...
  • 1
1 vote
1 answer
31 views

Change Time Format in QGIS

How can i change time format from 0.377777 to normal time 9:00 in qgis is there any formula or anything. I tried the entire conversion in Excel with custom format h:mm but it takes me a lot of time to ...
  • 269
2 votes
1 answer
55 views

Docking QGIS Plugin

How to dock QGIS plugin window? I am trying self.iface.addDockWidget(Qt.RightDockWidgetArea, dlg) in run method of QGIS Plugin Implementation class, but the dialog keeps appearing as a floating ...
  • 514
1 vote
1 answer
51 views

Error importing QGIS modules in standalone script: from qgis._gui import * ImportError: The specified module could not be found

I'm trying to run the following script (following Gary Sherman's PyQGIS Programmer's Guide). It is supposed to create a standalone PyQT window that displays a .shp in the QgsMapCanvas without opening ...
1 vote
1 answer
53 views

QGIS Plugin executing function with parameters

I'm creating a QGIS plugin that will load specific layers from our server, so inexperienced GIS users (e.g., upper management) can access key, up-to-date, layers with single clicks. I've created the ...
0 votes
1 answer
30 views

How to get the code of a plugin to automate the process in PyQGIS

I need to get the code of a plugin (point sampling tool), to automate the process. I know how to do it in regular tools, using this processing.algorithmHelp('tool'). But how can I use it for plugins?
0 votes
1 answer
30 views

Unable to save KML file using QgsVectorFileWriter

I am using this code: default_filename = Path.home() / "Documents/test.kml" outputlayer, _ = QFileDialog.getSaveFileName(self, "Save KML file", str(default_filename), "KML ...
  • 402
0 votes
0 answers
26 views

QGIS Plugin to inject headers on the fly

Is it possible to create a QGIS Python Plugin, or even a standalone Python script, that listens for network requests, and, if they don't meet certain criteria, will inject some headers? The requests ...
0 votes
0 answers
27 views

TauDEM - where to get processing_taudem.zip for installing QGIS plug-in? (Current website is offline due to Russia invasion of Ukraine...)

I'm trying to install TauDEM plug-in into QGIS. I've followed the steps up until I'm asked to enter the name and URL into the plugin repository/repository details in QGIS manage and install plugin. ...
2 votes
0 answers
70 views

No module name qgis in QGIS 3.22

I recently upgraded to QGIS 3.22 For plugin development I am using PyCharm. after upgrading QGIS to this version PyCharm is not able to read the pyqt, QGIS modules. I am running PyCharm with the ...
0 votes
0 answers
30 views

Prevent 'Stop Editing' popup from showing when editing mode is toggled PyQGIS

In my plugin, when the user adds a feature, I am committing the changes in code, so when the user clicks the 'done' button, there is no need for the popup that asks the user if they want to save ...
  • 402
2 votes
0 answers
45 views

Adding several attachments in one polygon attribute field using QGIS

I need to add several files (for instance JPEG, DWG, PNG, etc.) as attachments in one polygon attribute field. For that, I created a new field with widget Type - Attachment. But it allows adding only ...

1
2 3 4 5
57