The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [qgis-plugins]

Software plugins that add functionality to the QGIS package

Filter by
Sorted by
Tagged with
44
votes
1answer
58k views

How to install a 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 ...
18
votes
3answers
13k 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. ...
23
votes
1answer
5k 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 ...
10
votes
2answers
5k views

Programmatically load composer from template and generate 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 ...
11
votes
3answers
12k 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 ...
13
votes
2answers
3k views

How to call the interpolation plugin from the python console?

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 ...
9
votes
5answers
5k 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 ...
19
votes
6answers
26k views

How to access QGIS Plugin Repositories from behind a 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 ...
17
votes
2answers
14k views

How to check Topology in 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 overlap. ...
8
votes
2answers
2k 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 ...
11
votes
2answers
14k 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 ...
10
votes
5answers
14k views

How to display special characters German “ÄÜÖß” 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 do display them correctly. If I import the shape as UTF-8 it doesn't work.....
8
votes
2answers
2k 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 ...
8
votes
1answer
1k 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. ...
25
votes
1answer
13k 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, ...
5
votes
1answer
3k 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 ...
6
votes
2answers
654 views

Odd behavior in a QGIS plugin: my function is triggered 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 ...
5
votes
4answers
6k 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 ...
18
votes
3answers
7k 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 (...
11
votes
7answers
12k 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, ...
13
votes
1answer
18k 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 ...
13
votes
2answers
777 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?
1
vote
1answer
1k 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.
9
votes
3answers
12k 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 ...
3
votes
1answer
2k 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 ...
5
votes
2answers
7k 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 ...
6
votes
2answers
3k 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)
9
votes
3answers
5k views

Making lines curvy using QGIS?

I don't have much experience with QGIS and 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 ...
7
votes
3answers
2k 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 ...
8
votes
2answers
2k 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 and cannot ...
8
votes
1answer
17k 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....
7
votes
3answers
2k views

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

I have a raster layer loaded in QGIS 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. Any help would be ...
2
votes
1answer
2k views

How to link my QGIS plugin main class to mouse events from a custom Tool?

I want to execute the merge(self,aLayer) method after clicking with the tool I've created, i.e. after the mouse click I want the control to come to the main.py module how can I do that using Python ...
11
votes
2answers
1k 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 ...
6
votes
2answers
33k 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?
4
votes
2answers
2k 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 ...
3
votes
2answers
560 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
votes
1answer
323 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 ...
2
votes
2answers
1k 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 ...
15
votes
2answers
6k views

Creating sectors for telecom towers?

I work in the Mobile networks industry and i took up a task to create a plugin for QGIS using c++/python that does the following: step 1: Create points corresponding to each mobile tower based on Lat/...
14
votes
4answers
2k 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 ...
8
votes
1answer
2k 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 ...
10
votes
3answers
4k views

Changing QGIS plugin's icon, why doesn't it change in the menu/toolbar?

I've been writing a QGIS plugin (using the "Plugin Builder" plugin), and decided I wanted to change the icon (icon.png). After running make deploy to rebuild the plugin locally, the new icon appears ...
9
votes
1answer
6k views

QGIS - export a project with dependencies

I was wandering if there was a way to save a specific project with all layers as dependent files to make it easy to share with collaborators. for example, create a zipped or non-zipped folder ...
7
votes
2answers
3k views

Snap points to line and calculate 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 ...
4
votes
1answer
2k views

How to define an event for features selected in mapcanvas in qgis using python

I have created a push button, when it is clicked it calls the function 'selectfeatures'. This function will call the Select feature by free hand tool of QGIS and allows the user to select features in ...
9
votes
2answers
5k 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 ...
6
votes
1answer
1k views

Creating simplified QGIS version with custom interface?

At my institute we are revising and updating a methodology for participatory mapping of land degradation, that involves creating a simple land use map, subdividing each land use unit in a number of ...
8
votes
3answers
3k views

Where has the cartogram plugin for QGIS gone?

This plugin used to be downloadable from Carson Farmer's plugin repository page. However, the repository is broken. An old version of the plugin source code is still available at https://code.google....
4
votes
2answers
2k views

Georeferencing window won't open QGIS 2.4

I had the georeferencer window open in QGIS 2.4 while project was running, I accidentally closed the Qgs document with the georeferencing window open (worked absolutely fine till then). When I opened ...