Questions tagged [qgis-plugins]
Software plugins that add functionality to the QGIS package
440
questions
3
votes
1
answer
770
views
Enter four coordinates and get a polygon in QGIS
Is it possible to enter four coordinates for getting a polygon?
I have to clip lots of exact rectangles and I was just wondering whether you know a plugin
3
votes
1
answer
753
views
QGIS plugins open automatically when starting QGIS
I created a plugin using QGIS Plugin Builder Plugin using the Template Tool Button with dock widget. Works fine, but I have to click the associated button each time I start QGIS in order to open the ...
3
votes
1
answer
219
views
Closing windows by code QGIS 2.18
I'm trying to close the window (by code) that appears right after the "add feature" tool is called. This is the window I'm talking about:
This is my plugin code:
def run(self):
&...
3
votes
1
answer
5k
views
ModuleNotFoundError: No module named 'resources'
I have resources.qrc compiled to resources.py using the following batch file:
@echo off
call "C:\Program Files\QGIS 3.0\bin\o4w_env.bat"
call "C:\Program Files\QGIS 3.0\bin\qt5_env.bat"
call "C:\...
3
votes
1
answer
374
views
Button to add a new line in a non-spatial table without opening the table itself using QGIS?
While using QGIS and having loaded a non spatial table (from PostGIS), is it possible to add a new row to its table attributes without having to open the attribute table first as in here Is it ...
3
votes
1
answer
2k
views
Making 'make'-command work for compiling QGIS-plugins?
How can I compile my plugin when the 'make'-command refuses to work in the OSGeo4W Shell?
Can I make the 'make'-command work?
Is there an alternative out there?
I'm trying to build a plugin for ...
3
votes
2
answers
2k
views
Running Python script in QGIS startup?
I need to invoke python plug-in in the QGIS startup. So that the python script will do some functions repeatedly in the periodic intervals until the QGIS software gets closed.
Is there any way to ...
3
votes
1
answer
932
views
Getting count of overlapping portion of different line features within one shapefile using QGIS?
I have a line shapefile that has overlapping on certain portion of the line features. I need to know the count of where these overlapping occurs and if there is no overlap to keep it as Null or 0 as ...
3
votes
2
answers
1k
views
Enabling (python) plugins on QGIS3 (Linux)?
I'm running qgis 3.0.3 in Fedora 28 and I seem to have several, related problems with plugins.
Plugins --> Manage and Install Plugins: the window that opens shows 7 pre-installed plugins (I think ...
3
votes
2
answers
264
views
QGIS2web pop-up multiple font-types
I've got a pop-up for a layer with more than one attribute for the layer in question. I would like to make the first attribute in the popup appear with a bold font and a different color. Anyone have ...
3
votes
1
answer
237
views
Error while changing the symbol of a layer in QGIS in plugin
I am trying to add a feature then trying to change shape and size of feature like below:-
layer = QgsVectorLayer('Point?crs=EPSG:4326', 'point' , "memory")
pr = layer.dataProvider()
pr.addAttributes([...
3
votes
4
answers
485
views
Plain geometry editor for QGIS 3.0?
In QGIS 2.18, I had been using the plugin "Plain Geometry Editor" to view, copy and paste the WKT geometry of features (as a solution to this question). However, this plugin is not available for QGIS ...
3
votes
1
answer
2k
views
updating plugin from qgis 2 to 3. qRegisterResourceData . argument 2 has unexpected type 'str'
I already followed this tutorial and been through the steps.
https://github.com/qgis/QGIS/wiki/Plugin-migration-to-QGIS-3
and https://gisforthought.com/updating-a-plugin-from-qgis-2-to-qgis-3/
I ...
3
votes
1
answer
237
views
How to call QgisInterface class in a plugin
I'm trying to access the QgsLayerTreeView class through the QgisInterface class in the python plugin I have created. Ultimately I want to be able to return the selected node (group or layer) from the ...
3
votes
0
answers
216
views
Inconsistent QNEAT3 OD matrix (m:n layers as lines) results
I am running QNEAT3 on QGIS 3.22.4-Białowieża to determine the shortest path from one location to another along a stream network, but the results are inconsistent. This is being run as part of a ...
3
votes
2
answers
4k
views
Easy Custom Labeling plugin - Cannot find leader lines/arrow button
I have installed the Easy Custom Labeling plugin but the toolbar is nowhere to be found. I have checked the box "Activate experimental plugins" in the Plugins' "Settings" menu. Does anyone know what I ...
3
votes
2
answers
442
views
QGIS 2 problems with Plugins
When trying to access plugins I am told Unable to open the Python console. When I start QGIS, the message also shows up but I don't know what it means.
The problem is that I have no access to the Add ...
3
votes
1
answer
302
views
How to set default bad layers handler in the python plugin?
I am trying to write a python plugin for QGis. My python plugin will copy a template qgis project into data catalog with ESRI shapefiles. Because data catalogs can vary in its content there will be ...
3
votes
1
answer
1k
views
How can I label both coordinates in mmQGIS?
How can I label both coordinates in mmQGIS? Everything I try leads to only one of the 2 coordinates (lat or lon) to be labeled. I cannot get both labeled at the same time.
3
votes
2
answers
2k
views
Making routable graph from Point and Line shapefile using Networkx?
I have one shapefile which consists of all the streets in the study area, and another shapefile which has points representing origins and destinations.
Is it possible to find shortest path between ...
3
votes
1
answer
704
views
Can't execute plugin made by Plugin Builder
I have read this post:
Can't compile plugin builder plugin in QGIS 2.4 (Windows)
But I couldn't resolve my problem.
I have already seen this post, looking for help. I can execute:
pyrcc4 -o ...
3
votes
2
answers
733
views
Selecting layer in Road Graph plugin settings in QGIS?
I am currently using QGIS 2.10.1. and I am not able to select any layer when trying to configure the Road Graph plugin. What should I do?
3
votes
1
answer
441
views
How to show the attribute table inside the dialogue of a custom plugin with QGIS
I need to create a custom table attribute inside a plugin where I can choose which layer I need to open and add new custom buttons to this custom table attribute
To become like this :
3
votes
2
answers
2k
views
QGIS 2.4: plugin changes map tool canvas click behavior from 2.0
I had created a plugin for QGIS 2.0 to add new features more easily. It involves changing extents and updating snapping options along with triggering the default actionAddFeature(). However, I've ...
3
votes
1
answer
649
views
FlowMapper plugin Error in QGIS 2.12.0 Lyon
I have a problem using FlowMapper plugin. But I don't now why. This is the message:
Traceback (most recent call last):
File ".../python/plugins\FlowMapper\flowmapper.py", line 2656, in run
flowpyv07....
3
votes
1
answer
68
views
How to open an installed plugin such as realCentroid using Custom built plugin
I have built my custom plugin by name ABTD plugin
I have installed the plugin named real centroid in qgis.
Now,
I want to add a button to my plugin which will in turn open the "real centroid"...
3
votes
2
answers
7k
views
How to open the "File Browse" dialog from PyQGIS plugin code?
I am in the process of developing a plugin for QGIS using Python. Note that this is my first plugin, so the query could be quite basic...
I have used this Digital Geography link to create the basic ...
3
votes
3
answers
1k
views
Creating Network Flow Diagram using QGIS
I have a Telecom cable network in Geopackage format.
How do I create a Network flow diagram from which to represent the relationship between Fiber distribution hub to Network access point?
3
votes
0
answers
808
views
Using Multiprocessing inside a plugin in Qgis [closed]
I spent quite a bit of time looking on how to use the multiprocessing package, but couldn't find anything on how to use it inside a plugin in QGIS.
I am developing a plugin that does some ...
3
votes
1
answer
657
views
Spatialite WITH clause issue
I've encountered an issue: when I try to execute in Spatialite_GUI query that contains WITH clause I get SQL error: near "with": syntax error. Also WITH unlike SELECT and other keywords is not ...
3
votes
1
answer
287
views
What replaces refFunctions plugin's intersecting_geom_count function?
I have been away for quite a while and it is probably a couple of years since I used the atlas features. I upgraded to QGIS 3.24 and I have just tried to generate an atlas from a saved layout. That ...
3
votes
2
answers
3k
views
How to copy attribute values of fields in selected features of one layer to another Qgis programmatically?
I am trying to get the values of attributes of the selected features of a layer field by field and copy to another layer that I created in qgis with pyqgis.
Is here a example for this. Every example ...
3
votes
1
answer
978
views
Determining if a group in legend is selected, using PyQGIS
How can I determine in code (python or c++) whether a group in legend is selected or not?
mQGisIface->legendInterface()->selectedLayers()
gives me only selected layers and no groups, and in ...
2
votes
1
answer
7k
views
qgis plugin problem: Couldn't load plugin due to an error when calling its classFactory() method [closed]
I am not able to install any plugin.
Packages qtwebkit and qt5-qtwebkit are installed on my machine.
Below is an example for the error ocurring:
Couldn't load plugin 'go2streetview' due to an ...
2
votes
3
answers
799
views
Do QGIS plugins require admin rights?
I am trying to set up some GIS teaching with QGIS on a University network.
One issue is plugins, some I want to use are internal, like the Georeferencer, others are external contribs, like the Semi-...
2
votes
1
answer
2k
views
Convexhull for selected features and performing buffer for the resultant convexhull using python
I have features selected on the mapcanvas. I want to perform convex hull for those selected features and save those in a memory or store it in a variable preferably and then want to do buffer for the ...
2
votes
1
answer
1k
views
Multi Language support for QGIS python plugin
Is there any method for python plugin in QGIS 2.8 to support multiple languages.(including .ui files that is call from this python).Please anyone can help i am new to this environment
2
votes
1
answer
1k
views
QGIS Custom Style XYZ Google maps label is too small or blurry for high resolution printing
I am trying to print a map with one of the layer I use Google Maps data for street name label by using QGIS, since Google has more detail and complete street name label than OSM, but the problem is ...
2
votes
1
answer
10k
views
Label features on hover/click with QGIS?
Simple question: Is there a built in/easy way to show labels for features based on a hover or click action with QGIS 2.0.1?
2
votes
0
answers
80
views
Assigning Elevation data from one point shapefile to another point shapefile in QGIS
I am working with QGIS. I have a point shapefile with all my elevation data and a point shapefile with the coordinates for my project. I would like to assign the elevations from the elevation data to ...
2
votes
1
answer
3k
views
Add the attributes of selected features to my new layer in PyQGIS
I am trying to create a layer from the selected points coordinates. I am drawing a circle to the coordinate of selected points. I also need to add initial attributes of my selected features to my new ...
2
votes
2
answers
960
views
Add OpenLayers layer from QGIS's Python console?
On QGIS 2.4.0-Chugiak the Openlayers plugin is found under Web menu rather than the Plugins menu. How can you use the Python console to add a Openlayers Google Maps layer?
The following code give us ...
2
votes
1
answer
980
views
Displaying direction of movement with points2paths in QGIS?
I have a data set containing ship movements. I used the Points2paths plugin in QGIS to connect the points with the ship's names as factor and the time the signal was picked up as sorting value. Now I ...
2
votes
0
answers
682
views
Trouble with Python plugins on QGIS [closed]
This question has been bugging me for a while now, and I still haven't managed to solve it, so I'm giving it another go, hopefully someone may help me out.
I've been having problems loading several ...
2
votes
0
answers
164
views
QGIS: Zoom to selected feature via plugin doesn't works in first attempt
I recently migrated from QGIS 2.18 to QGIS 3.6. In the plugin, I load a vector layer and then select and zoom to a particular feature.
This worked fine in v2.18 but now on 3.6, what happens is the ...
2
votes
1
answer
333
views
PyQGIS - Plugin returns error from processAlgorithm. Invalid Result
I've written a script which automatically creates a print layout and exports it. Now I'm trying to integrate the code into my plugin's code. The plugin has some existing functionality and I'm adding ...
2
votes
2
answers
1k
views
QGIS enabling R via plugin
System Ubuntu 19.10, QGIS 3.4
I am trying to utilise R in QGIS for Ripley's K function.
The sample R script 'Scatterplot' works with the Processing R Provider plugin, which indicates r-base is ...
2
votes
1
answer
2k
views
How to split Polygons by line grid? [duplicate]
I want to split a polygon by a intersecting line into different parts, exactly like in this post(Split a polygon layer with a line layer?).
I have a vector grid to cut the polygons, so I used the ...
2
votes
1
answer
2k
views
Uninstalling/reinstalling QGIS plugin where uninstall is disabled?
Plugin Raster->TerrainAnalysis->slope which had initially worked, started showing what another questioner referred to as a "crazy histogram":
Slope analysis from NED data gives crazy histogram?
...
2
votes
1
answer
321
views
Adding new attribute to QgsFeature object
I have tried reading the docs located here but there is no mention of any method that allows you to add new attributes to the feature only modify existing ones.
Something along the lines of:
...