Questions tagged [qgis-plugins]

Software plugins that add functionality to the QGIS package

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

QGIS crashing when editing layer

I have a plugin that creates a new layer, which works fine. When I edit this layer using the QGIS GUI, and done editing, I get the question of if I like to save the layer. If I hit 'yes' (and I want ...
0
votes
0answers
10 views

OTB Haralick Texture Measure Window Directions

I'm trying to understand whether otbHaralickTexture computes in all directions (0, 45, 90, and 135 degrees). I couldn't see any explanation about the issue in the documentation. I understand that ...
1
vote
0answers
25 views

Create a polygon from selected points using PyQGIS

The problem im having is that when I select the points, I cannot get a sorted list in order of selection, so the polygon ends up being created in unusual shape. the important code is below. def ...
2
votes
1answer
41 views

Convert PyQGIS processing script to plugin and get same user interface

I have written a PyQGIS processing script that can be used from Toolbox. I would like to convert this to plugin and publish. The script is taking input and output from the user through processing ...
2
votes
0answers
26 views

Selecting some vector layer attributes as parameter in R script in QGIS 3.10

I am doing a script of R for QGIS and I need to select only some fields of one vectorial layer. I just found these option for choose several layers but not choose several attributes. Is it possible ...
0
votes
0answers
17 views

Find out row/col of pixel in raster

I have a geo-located raster image and I need to know the row/col of a particular pixel (for use in another, non-GIS package). Ideally I would like to be able to click on a pixel and check its row/col. ...
0
votes
1answer
29 views

How to display table content using Qtableview after selecting a vector layer in Pyqt4?

I'm developing a QGIS plugin using QtDesigner and pyqt4. I have a comboBox of my vector layers and I want to show the table of the selected layer. I used this code for my comboBox: def run(self): ...
0
votes
0answers
31 views

AttributeError: 'NoneType' object has no attribute 'GetLayer'

Using: QGIS 2.18 with a plugin: ECOPLAN Scenario evaluator, inserting self-made shapefiles made in Arcmap. Received this error: Traceback (most recent call last): File "C:/Users/PAU-...
0
votes
1answer
41 views

Using pyQGIS's iface or QgisInterface modules in a standalone script?

According to this thread on using the iface module in a standalone pyQGIS script it is not possible to use the iface module in a standalone script, only being accessible within a QGIS Plugin. In the ...
0
votes
0answers
14 views

Determine the best division of areas for multiple hubs

Based on a set of polygons that form a larger border I am trying to determine the best mix of polygons to be serviced by multiple fixed and 2-3 additional none fixed hubs. The polygons contain a ...
2
votes
1answer
38 views

QgsFillSymbol crashing QGIS [RESOLVED]

I'm trying to customize my layers from a python script. I would like to add several symbol layers to features. # Creating symbol layers symbolLayers = list() lFill = QgsSimpleFillSymbolLayer.create({ ...
3
votes
1answer
84 views

Problem: QGIS-Plugin that involves setting a shortcut, does not work when run a 2nd time

I am trying to build a Qgis plugin which involves setting shortcuts to perform some function on the selected layer in the plugin. When I use my plugin for the first time, everything works as expected. ...
2
votes
0answers
36 views

Problem with font size depending on screen resolution - QT

I developed a QGIS plugin by designing the interface with QT Designer. The inferface appears correctly on my computer (left image). However, on some computers, I encounter size problems, especially ...
2
votes
0answers
34 views

QGIS - How to fill small gaps in line (other than the Vertex tool)

I suspect this is not as easy as it looks. On the pictured line (of which I have many others), is there a plug in or technique that creates a single line? or am I looking at an epic snap to vertex ...
2
votes
1answer
39 views

Problem starting the plugin Data Plotly

I'm using QGIS Desktop 3.10.3 with GRASS 7.8.2 I tried to run the plugin "Data Plotly" https://anitagraser.com/2017/12/06/data-exploration-with-data-plotly-for-qgis3/ After installing the plugin I ...
2
votes
0answers
28 views

Setting a relative path to load a QML style in QGIS plugin

I would like my plugin to apply a QML style to an output layer. This consists of three parts: Packaging the QML file into the plugin. Referring to the QML file using a relative path. Setting the ...
1
vote
0answers
27 views

GeomorphicFloodArea Plugin is not working

I'm trying to get the plugin GeomorphicFloodArea to work but cannot. I tried using QGIS 3.10 but got an error message, so I downloaded version 2.18.28 and it still will not work. I get an error ...
0
votes
1answer
34 views

MOLUSCE plugin issue for QGIS 3.12.1 [duplicate]

I try to use MOLUSCE plugin (versions 3.0.13, 3.0.11, 3.0.10, and 3.0.9) in QGIS 3.12.1, none of them are functioning. Your suggestion would be of great help.
3
votes
0answers
23 views

Color scale legend in QGIS [duplicate]

I have been trying for hours to add a color scale to my vector layer in order to avoid showing all those boxes in my legend. But I don't find any solution. I tried the Geoproc plugin without success,...
0
votes
0answers
24 views

I can't load a CSVv file inside a QTableWidget by Python code

I am a beginner of PyQGIS and I'm trying to do a QGIS plugin, with QGIS 3.4.7 and PyCharm 2016.3.6. I already did the "dialog" box on Qt and after I wrote on Pycharm. It is a table only with the ...
0
votes
0answers
11 views

Force reload assigned datasets for Mesh Layer

I am wondering if there is any way / python code to force QGIS 3.12 to reload the data source of mesh layer and its assigned datasets? Mesh layer is a .xmdf file that's similar to .2dm with assigned ...
1
vote
0answers
31 views

Problem compiling ui to python for a QGIS 3 plugin

I've created a .ui using QT Designer for a QGIS 3.10 plugin called 'bhlayers' which has a docking widget to the right. When I used the: pb_tool deploy command it didn't seem to translate the .ui to ...
0
votes
1answer
42 views

OpenFeatureForm() function in QGIS not cancelling edits

I'm trying to create new features in an existing vector layer and I want to display the attribute form so the user can fill the attributes data. I successfully managed to show attribute form and users ...
1
vote
1answer
87 views

Integrate Python script with QGIS plugin

I am new to QGIS and trying different things. A Python script (link), which is running perfectly in QGIS Python console but I want it to run as a QGIS plugin. I am trying to do but getting confused ...
0
votes
0answers
17 views

QGIS python error :_core.QgsProcessingException: There were errors executing the algorithm

I am trying to calculate the centroids of all polygons in a shape file, I have used this code: import processing processing.run("native:centroids", {'INPUT':'C:/Users/plt/Downloads/...
0
votes
0answers
32 views

Networkx Graph from two separate shapefiles

I have two shapefiles that represent a railway network. The first shapefile (tracks.shp) contains LineStrings representing tracks The second shapefile (crossings.shp) contains Points representing ...
0
votes
1answer
30 views

Uploading older Google Earth Historical Imagery into QGIS

There are numerous ways to import Google Earth imagery into the QGIS (e.g. OpenLayer plug-in or XYZ tiles), however the recent-most images are downloaded. Is there any way to import historical imagery?...
0
votes
1answer
39 views

How do I get the latest version of QGIS to find my plugins

I just downloaded QGIS 3.12.2-București for the Mac (MacOS Mojave 10.14.6, 3.2 GHz with 32 GB ram). I've been running an older version (QGIS 2.18.2-Las Palmas) for a couple of years and have quite a ...
1
vote
0answers
21 views

Time Manager animations run too fast to simulate real time

I am using the Time Manager plugin to visualize a set of points with a corresponding start and end time. I can see the points correctly on the map at the correct time. My question is about the ...
1
vote
0answers
31 views

AttributeError: 'NoneType' object has no attribute 'bandCount'

I have a problem with a plugin (SCP). When I run a raster file (or tried), I get this error. I have read other similar problems, but honestly I am new to this whole programming issue and there are ...
4
votes
0answers
37 views

QGIS plugins for creating circular route on footpath network

I'm looking for a way to create random circular walks of a specified distance from a given point. The end result will be similar to https://routeshuffle.com/ and http://www.routeloops.com/, but along ...
1
vote
0answers
32 views

QGIS plugin: are project variables creatable and writable

I like to develop a plugin and made a github repository. Upfront: this is my first time and haven't got a clue yet. This is my target: This plugin is intended to be used in QGIS. QGIS has the ...
2
votes
0answers
37 views

Why does “Points along geometry” in the processing toolbox take so long and is there something faster?

The points along geometry processing algorithm Creates points at regular intervals along line or polygon geometries. Created points will have new attributes added for the distance along the ...
0
votes
0answers
18 views

Couldn't load Processing Plugin in QGIS 3.11.0 w/ GRASS 7

When I try to load the processing plug in in QGIS (version 3.11.0-Master w/Grass 7), it throws me this error: ImportError: cannot import name 'BYTES' from 'psycopg2._psycopg' (C:\OSGEO4~1\apps\...
0
votes
2answers
62 views

Python console call HCMGIS “Centerline in polygons' gaps”

I use QGIS 3.10 (Python 3.7 via the console) and want to automate a few processes through a Python script (I'm a beginner in programming with Python). I have a layer with many polygons ('polygons') ...
0
votes
0answers
13 views

QGIS's “setItemPosition” doesn't seem to work for QgsComposerLabel

I'm using QGIS 2.18 and I'm printing maps using a QGIS plugin I made myself. The method setItemPosition(x, y) is working fine with my legend (QgsComposerLegend object). But when I try to use the same ...
0
votes
1answer
19 views

qgis2threejs installation

I am a beginner in QGIS. I am trying to create 3D models using Qgis2threejs plugin. I installed it but am not able to find the tool. I only see "Qgis2threejs Exporter/Exporter without Preview tool" ...
1
vote
0answers
24 views

Couldn't load plugin

I had to install "SemiAutomaticClassififcationPlugin" to complete one of my tasks. I tried to accomplish it via plugin manager but it ends up with error: "Couldn't load plugin '...
2
votes
0answers
26 views

How can I divide a polygon in equal parts, number of parts as attribute, in QGIS?

I have a polygon layer. Each polygon is part of a street, so it's not straight or all the same orientation. Each single polygon has an attribute with a number. I would like to divide the polygons in ...
1
vote
1answer
38 views

Selecting features by attribute containing a string (PyQGIS)

Is it possible using Python to select all features whose attribute contain a specific string? Since I'm a QGIS newbie I'd really appreciate your help! The layer has an address column ("Bauvorha_3") ...
2
votes
1answer
108 views

Importing DXF in QGIS 3.10

I'd like to import a *.dxf-file into GIS 3.10 LTR. Does the DXF2Shape plugin available for this version of QGIS?
0
votes
0answers
31 views

Issue with 'matplotlib.mlab' in QGIS

When I open QGIS I get the following error: Couldn't load plugin 'rastertool' due to an error when calling its classFactory() method ImportError: cannot import name 'griddata' from 'matplotlib....
1
vote
0answers
32 views

Programmatically Enable/disable input parameters in a QGIS Processing plugin

Is there a way to enable/disable a parameter by a checkbox in the processing interface? In my screenshot below, I would like to disable the Output Wall Aspect Raster when the Calculate wall aspect ...
1
vote
1answer
22 views

RiverGIS under QGIS - Not able to execute “Extracting Manning's n values for cross-sections”

I am using RiverGIS plugin in QGIS and facing a problem in Extracting Manning's n values for cross-sections. The error code is as follow: - Extracting Manning's n values for cross-sections ...
1
vote
0answers
40 views

QGIS QgsTaks finished and completed never called

I'm rewriting a plugin to use QgsTask with this as my first guideline and the update mentioned in this post as a possible solution for my problem. My task runs fine in the background, but def ...
0
votes
1answer
52 views

Install Whitebox in QGIS without the broken repo link

I need to install Whitebox tools in QGIS. I have tried to follow the instructions provided in here but the repo link is broken (https://plugins.bruy.me/plugins/plugins.xml and https://plugins.bruy.me/...
0
votes
0answers
51 views

Adding modules to a PyQGIS Plugin

I created a QGIS 3 Plugin with the Plugin Builder, on Linux, and wrote some code for it, and it works fine so far. Now, to improve the readability and structure, I want to split the code up, in some ...
1
vote
0answers
40 views

QtDesigner/QGIS 3: Which widget to use for multiple selections in ValueRelation?

I created a field of type ValueRelation allowing multiple selections in PyQGIS. Everything works as it should in the attribute table (see here for example). Now I'm trying to create a custom .ui in ...
1
vote
1answer
27 views

Loading table from Postgres database using PyQGIS

I'm trying to load a table in QGIS layers tree using PyQGIS (see here for example). Said table has got a primary key with no null/duplicate entries; a geometry column (which is empty for now); and ...
0
votes
0answers
22 views

Did Digitizing tools last update remove polygon cutting?

In a previous project i used the Digitizing Tools plugin to cut polygons from other polygons. But it seems that with a new update that feature is removed? I can't seem to use the most of the buttons. ...

1
2 3 4 5
46