Questions tagged [qgis-plugins]

Software plugins that add functionality to the QGIS package

Filter by
Sorted by
Tagged with
46 votes
1 answer
64k views

Installing QGIS plugin when offline

Due to various IT policies at my workplace, QGIS is installed on a machine that is not connected to the Internet. I wish to install a couple of QGIS plugins on this system. I have downloaded the ...
26 votes
1 answer
7k views

Accessing QGIS plugins in Python?

Is there a way to access QGIS plugins in Python? I'd like to write a script to do some geoprocessing, and I'd like to use the clip, regular points and convex hull tools in fTools, as well as the ...
24 votes
3 answers
16k views

Programatically check for mouse click in PyQGIS?

I want to know how to check for a mouse click in QGIS. I am trying to write a python plugin and want to provide functionality similar to the "Select Single Feature" tool that already exists in QGIS. ...
  • 365
18 votes
3 answers
21k views

Splitting all lines in layer at vertices using QGIS

I want to automatically split all lines in a QGIS layer at their vertices (like this). I've done a Google search and found this article, which is quite close but the workflow is complicated. Because I'...
  • 1,934
13 votes
2 answers
5k views

Calling interpolation plugin from Python console of QGIS

I would like to call the QGIS interpolation plugin function (TIN method) (Raster->Interpolate) from python console. I can't find the corresponding function within QGIS API or within the ...
31 votes
1 answer
38k views

Getting layer by name in PyQGIS

I have a plugin which finds buffer for list of cities, provided the distance. The state and city names are taken from the attribute table and gets filtered accordingly. What I want is my plugin should ...
  • 2,916
11 votes
2 answers
7k views

Loading composer from template and generating atlas using PyQGIS

I am trying to build a plugin to load a print composer from file, generate an atlas and export to image. So far I have been successful in loading the template and exporting it to image. I have been ...
  • 2,696
12 votes
5 answers
8k views

Calculating Image boundary / footprint of satellite images using open source tools?

I need to create the polygon outlines of several single layer raster images, not the extent/bounding box, but the area without the nodata values, as shown here: Creating shapefile showing footprints ...
  • 473
20 votes
6 answers
31k views

Accessing QGIS Plugin repositories from behind Proxy

I have been trying to teach myself QGIS by using this forum and others to help. Most of my questions can be answered by downloading plugins that are available through 3rd party repositories but for ...
  • 239
10 votes
1 answer
2k views

What is the purpose of some functions and files in QGIS Python plugins?

I'm just trying to understand the architecture of a QGIS Plugin created with the QGIS Plugin Builder, as well as the workflow and the linkage among generated files. If possible, I'd prefer a diagram. ...
  • 2,916
8 votes
2 answers
3k views

Plugins crashing with "No module named qgsprojectionselectionwidget" in Windows?

My Python QGIS plugin works on Ubuntu (at least for me, and all fatal bugs reported so far are solved), but when I run it on QGIS installed from the official 2.10.1 64-bit installer for Windows (on ...
  • 1,507
6 votes
1 answer
3k views

Adding multiple plugins to custom menu in QGIS

I am new to Python and QGIS and attempting to create some plugins to replicate in-house tools used in other GIS programs. I have added a custom menu using Python and added the plugin to the menu using ...
  • 183
5 votes
1 answer
6k views

Linear Referencing in QGIS?

I work for a survey company doing gas lines GIS. We use QGIS. We create hand drawn sketches of pipelines containing all sorts of information including: materials used, skew numbers of equipment ...
  • 51
43 votes
1 answer
35k views

QGIS 3 Plugin folder location

I am searching for default location for QGIS 3 Plugin folder I checked here but could not find : C:\Program Files\QGIS 3.0\apps\qgis\python\plugins C:\Users\Abhijit.qgis2 (cannot locate .qgis3, ...
18 votes
2 answers
15k views

Checking Topology using QGIS

I have two Shapefiles with Polygons ( City and Forerst) Is there a Plugin who is able check the topology (QGIS)? Like "Knots do not overlap" or something like that. I dont want that they ...
  • 251
10 votes
5 answers
21k views

How to display special German characters "ÄÜÖß" in a map?

I have a shapefile with names for Regions. These don't seem to contain special characters "Ä", "Ü", "Ö", "ß" but ugly hieroglyphs. What can I do to display them correctly. If I import the shape as ...
  • 2,221
5 votes
3 answers
6k views

Calculating percentage of overlap of two layers in QGIS 3

I am trying to compare two different vector layers on QGIS 3. They are species distribution maps. I would like to calculate the percentage of overlap of two vector layers. My goal is to determine how ...
  • 99
3 votes
1 answer
2k views

QGIS 3.16 - Print layout grid coordinates in DMS?

I am trying to create a grid with coordinates printed in degrees, minutes, and seconds in print layout of QGIS 3.16. The project is defined to EPSG:32652 WGS 84/UTM Zone 52N. When I go to Grid > ...
  • 33
16 votes
10 answers
18k views

QGIS plugin: Problems importing resources (resources_rc) file - plugin doesn't load - PATH problems?

I'm building qgis plugin and I can't find solution for this error. File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 478, in _import mod = _builtin_import(name, globals, locals, ...
  • 521
13 votes
4 answers
25k views

Creating parallel lines at particular distance from lines which are part of a shapefile

I am using QGIS 2.18 . I have shapefile which contains multiple lines. After processing certain data processing , I need to draw parallel lines at different distances from existing lines. For example ...
  • 159
11 votes
2 answers
20k views

Google Maps not Showing in QGIS 2.12

The Google Maps in my OpenLayers plugin in QGIS 2.12 does not show anymore. The other maps do show, that is: OSM Bing MapQuest Stamen Apple Maps I tried in QGIS 2.8 and Google Maps does not show ...
  • 323
9 votes
2 answers
3k views

Seeking purge function to remove layers from qgs file which are not present in Layers pane of QGIS?

I have some QGIS projects that I've been using for long time, adding and removing layers, updating reference to deleted or moved files etc. Opening the qgs file with a text editor I see that it ...
  • 441
9 votes
3 answers
1k views

QGIS plugin triggers function twice

I have a plugin with a function (triggered by a button) that selects a specific layer by name, then shows its attribute table. When I close the plugin and open it again, the attribute table pops up ...
  • 965
7 votes
4 answers
7k views

Making polygon from intersecting lines in QGIS using Polygonize or similar?

In QGIS, I want to make polygons from a set of intersecting lines. Looking at the screenshot here, I want chop the purple line (it's a closed line, not a polygon) where it crosses the green and blue ...
  • 1,343
23 votes
5 answers
4k views

Writing automated tests for QGIS plugins

I'm looking for advice on writing automatic tests for QGIS plugins written in Python. I have written tests for Python scripts in the past using PyUnit (the unittest module), but have never done so for ...
19 votes
2 answers
23k views

Converting cluster of Points to Polygons using QGIS

I have an input point layer that is grouped into clusters, so I want to have each cluster of points converted into polygon. This question How to convert a set of points to a polygon based on a ...
18 votes
3 answers
8k views

Visual Impact Assessment in QGIS or GRASS

Is it possible using QGIS or GRASS to perform a Zone of Visual Impact assessment? E.g. where can a 100m high structure be seen at a viewing height of 1.8m within 30km, taking into account elevation (...
  • 183
13 votes
3 answers
16k views

Making lines curvy in QGIS

In QGIS I am working on a map with lines connecting locations created with the MMQGIS plugin. Is there an easy way to make those direct lines somewhat curvy for aesthetic purposes? I'm trying to ...
  • 217
13 votes
2 answers
999 views

Where to report QGIS and QGIS-Plugin bugs?

I often find bugs in QGIS and its Plugins. I would like to ask about this on the internet but I do not seem to find the proper place to address this issue. Are there any instructions?
  • 3,406
10 votes
1 answer
4k views

Creating raster layer from numpy array using pyqgis?

I am working on a plugin for Qgis to calculate spatial Kernel density maps. I have all the calculations working, all I am missing is a way to turn a Numpy Array, with density values into a multiband ...
  • 1,207
10 votes
2 answers
5k views

Loading multiple CSV files into QGIS 2.10

How can I load multiple CSV files into QGIS with Longitude/Latitude already included in it. I downloaded the "Load Them All" plug-in, however, the result loaded was converted as text files ...
  • 115
2 votes
1 answer
2k views

Using MMQGIS plugin through Python console?

I know how to make Hub Lines using the GUI, I want to know how to do the same using the Python Console, a tutorial would be great.
  • 129
11 votes
2 answers
2k views

Couldn't load plugin 'processing' on Windows 7 64bit

I installed QGIS (2.0.1-Dufour Dufour, d94c044) using both the stand alone installer and the OSgeo4w installer and seem to have an issue with the processing plugin. At first I thought that there was a ...
  • 1,174
11 votes
4 answers
4k views

Is it possible to set up a local QGIS Plugin repository?

I've developed a couple of custom QGIS Plugins for use by our office. I can't post them to the official QGIS Plugins repository as they reference/utilize sensitive data on our own servers. For ...
  • 941
9 votes
2 answers
5k views

Finding disconnected islands in road network layer using QGIS

I have a road network layer that can't route from one side of the layer to the other. Topologically, there is no connectivity between the start and end nodes, probably due to missing links. This ...
  • 633
9 votes
1 answer
21k views

What's the proper format for WKT linestrings when importing into QGIS?

I'm trying to run the following test CSV through the Delimited Text plugin as WKT data: oid,Line 1,LINESTRING((45.554194 -122.686101, 45.433001 -122.762632)) 2,LINESTRING((45.432505 -122.598327, 45....
  • 101
8 votes
2 answers
4k views

Snapping points to line and calculating chainage using Open Source GIS

I have a line layer (representing a pipeline) and a points layer (representing valves) and I would like to calculate the chainage of the valves along the pipeline. I assume that I would first need ...
8 votes
3 answers
3k views

How do I set layer transparency in QGIS 2.0 with Python?

I have a raster layer loaded in QGIS 2.0 and I'd like to be able to set its transparency via the Python console. I'm new to the API and have not been able to find out how to do this. Here's what I ...
  • 311
8 votes
2 answers
4k views

Get a pixel value

How can i do this operation: I want to get a pixel value fro the satellite image (Landat, GeoTIFF, 7 bands) using qgis-python. What operators should i use? (for example in qgis's Python Console)
  • 81
7 votes
4 answers
39k views

Measuring distance between points in QGIS

I have a layer with about 500 single points. Now I want to measure the distance between each of these points and one specified observation point. I need the distance to show how far away from the ...
  • 69
7 votes
2 answers
48k views

Adding XY data on QGIS

Does QGIS menu have any XY tool like in ArcGIS to add XY data? I have used the other method to capture XY coordinate. Can anyone help?
7 votes
3 answers
3k views

How to close watermarks window in QGIS Openlayers plugin?

I'm using Quantum GIS Ver. 1.7.4. I have upgraded openlayers plugin 0.7 to 0.9. However when I open google satellite, a watermarks/copyright dialog box "Data Peta@2012 ..." appear in the middle of the ...
6 votes
2 answers
8k views

Generating random points in selected areas?

I think my question is answered in different posts but I can't really make sense of them. Background: We are designing a survey of a sample population of farmers to identify the seeds they use. I ...
  • 773
5 votes
1 answer
3k views

Unable to install plugins in QGIS 3.10 for Mac. No python support detected

I'm aware this question has already been asked numerous times in various forms, but I'm not finding any solutions that work for me. "No python support detected" in QGIS. Issue: Tried: 1. Updating ...
  • 1,070
4 votes
2 answers
3k views

How to install shapely for python 2.6 (Mac) NOT 2.7?

I'm trying to use Polygonizer plugin inside QGIS, but it needs Shapely to work. I've installed Shapely (pip install Shapely) but that's for python 2.7. QGIS works with python 2.6 (on Snow Leopard) and ...
  • 929
4 votes
1 answer
1k views

Converting Model in Plug-in in QGIS

Recently, I started making a model on QGIS and now I want to transform it into a plug-in, but it seems that I have to change the code to do it, otherwise it won't work. What changes are required to ...
3 votes
2 answers
2k views

Problem with Distance Matrix in Qgis 2.83

I want to calculate the distance of archaeological sites to the nearest river. Following this question Calculating minimum distance between points and polygons in QGIS? I extracted the nodes of the ...
3 votes
2 answers
1k views

Set Snap Mode with PyQGIS

I am trying to set snap mode within QGIS plugin. So far, I have tried: QgsSnappingUtils().setSnapToMapMode(QgsSnappingUtils.SnapAdvanced) and QgsSnappingUtils().setSnapToMapMode(2) without ...
  • 2,183
2 votes
1 answer
5k views

TIN Interpolation using vector layer [closed]

I'm writing a plugin in QGIS and I'd like to generate a TIN surface using a vector layer with x,y and z (interpolation attribute). The idea is to visualize the same result like in the Interpolation ...
  • 21
2 votes
1 answer
720 views

Including QgsRasterBandStats in plugin?

I'm making a plugin were i want to get the min and max value of a raster. When i tried the following code in the qgis python console it worked fine but in my plugin code i get the following error ...
  • 227

1
2 3 4 5
9