Software plugins that add functionality to the QGIS package

learn more… | top users | synonyms

3
votes
2answers
726 views

How to debug 'Layer is not valid error' from Python plugin?

I'm trying to understand what goes wrong with a QGIS python plugin. Basically I'm trying to render a series of POINT. The query works fine, at least giving it by hand from inside PostGIS DB: "SELECT ...
1
vote
1answer
11 views

Save Vector layer and update .qgs project file (pyQGIS)

need help to solve the following use case: QGIS started with new project (no layers) New layer is created programmaticaly and data is populated: vl = QgsVectorLayer("Point", "temporary_points", ...
0
votes
0answers
11 views

How to create custom input widget using Plugin builder?

I am trying to develop a plugin that takes in user input for the time, using the QGIS plugin builder. However, I want to specify the different times the user is allowed to select from when the plugin ...
1
vote
0answers
15 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 ...
0
votes
0answers
20 views

Parcels management and land ownership

Is it possible for me to split a feature by the column area i input?Like A feature has 3000 sqm and i have in attribute table column 1= 2000sqm and column 2= 1000 sqm and based on this 2 colums to ...
1
vote
3answers
2k views

Where is the QGIS Parallel Line Plugin?

Somehow I believe to recall there does exist some ind of "draw paralel line" plugin for QGIS. Could anyone please point me to - I cant find it :-/
-2
votes
0answers
32 views

Installation procedure for older version of QGIS (2.4) on Ubuntu 14.04 [duplicate]

How do I install an older version of QGIS, specifically 2.4, on Ubuntu 14.04? I am trying to run SWMM model on QGIS 2.8, but the SWMM plugin is not compatible with that version. Can anyone suggest to ...
2
votes
1answer
19 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 ...
7
votes
2answers
2k views

How can I programatically create and add features to a memory layer in QGIS 1.9?

I had a working plugin in QGIS 1.8 which read data from an MSAccess database and added it to a series of memory layers. There is some processing involved in the interim so I don't think simply using ...
0
votes
0answers
15 views

Creating Convex hull and finding buffer in QGIS

I have a layer and features are selected using Select Features by freehand tool and for that selected features, convex hull was done and for that convex hull i am trying to find buffer and write it in ...
0
votes
1answer
338 views

visualize bounding box to a polygon

I try to make plugin in QGIS that compare 2 bounding box data, ex: (-32.61442167739459, -32.017601026186576, 13.015663782506067, 13.428145228091406) and (-38.6102467739459, -38.017601026186576, ...
2
votes
3answers
28 views

QGIS python plugin appends values every time it's started

I've written a small python plugin (using plugin builder as base) to simplify the expression process for a given layer (just a few comboboxes that are used to create a query). The combo box populating ...
1
vote
1answer
27 views

Buffer for features selected in the mapcanvas and writing to csv file

I have some features selected by using "Select Features by Freehand" tool in QGIS and try to find the buffer for those selected features alone and write the city and state names within in the buffer ...
1
vote
1answer
20 views

Can't compile plugin builder plugin in QGIS 2.4 (Windows)

I'm trying to build a basic plugin using plugin builder but I can't even compile it. I tried following a few tutorials and just trying to compile whatever but that always results in the same problem. ...
1
vote
1answer
28 views

How to do a buffer operation for a polygon drawn by the user using python in QGIS

I have a polygon drawn on the map canvas.Say the polygon would be drawn by using "Measure Area" tool in qgis.Now, I want to do buffer for certain distance around that polygon.I can see the below ...
0
votes
1answer
18 views

Where can I get the Cadinput plugin for QGIS

From Stackexchange, I got to know that Cadinput plugin could do this work. I need to create a line feature specifying the desired length and bearing in an open source GIS (Preferably QGIS) as in CAD ...
1
vote
2answers
1k views

QGis 2.0.1 mapserver extension missing

I tried to export my Qgis projects to mapserver, using RT mapserver extension, because there is not any other extension in my version of QGis.(QGis 2.0.1 Dufour on ubuntu 12.04 LTS). After installing ...
1
vote
0answers
65 views

Error when creating a new mapset with GRASS in QGIS

When I try to create a New Mapset with the GRASS plugin in QGIS I get an error or the program crashes. QGIS 2.6.1 (32-bit install, Win7). QGIS crashes completely when clicking "Finish" in the New ...
-3
votes
1answer
21 views

Warning message needed when there is no specific layer instead of python error

In my plugin, when I click a button it will call the findTheCityNames function which is attached below and get features if there is a particular layer. What I want is if there is no specific layer in ...
3
votes
2answers
45 views

QGIS Plugin for PostGIS versioning

Does anyone of you know a QGIS-Plugin for Versioning PostGIS-Data? I know there was pgVersion of Horst Düster but as far as I know this was not updated for QGIS 2.x (at least not for the "normal" QGIS ...
1
vote
1answer
44 views

How to get a 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 ...
1
vote
1answer
42 views

QGIS moving the layer/all features using Vector Affine Transformation

I'm using QGIS to analyse some flight tracks which were produced using a different software. Now when they are on QGIS the reference point of everything is on 0,0 which is the aerodrome reference ...
-1
votes
1answer
30 views

Global name canvas is not defined

I am just trying to print the layer name using python in my QGIS plugin by following code. allLayers = canvas.layers() for i in allLayers: print i.name() It is saying an error: Global name canvas ...
-4
votes
0answers
28 views

Error in clicking browse button in my plugin [closed]

I have a browse button in my UI in my plugin and when in click it, it throws an error which is attached. Also code is attached for reference. def __init__(self, iface): """Constructor. ...
2
votes
5answers
128 views

How to export attribute table with start and end coordinates of lines to Excel?

I am working in QGIS. I have a georeferenced line layer and I want to export the attribute table and the coordinates of start and end points of my lines to Excel. Can I do this with QGIS?
1
vote
2answers
271 views

GEarthView plugin doesn't work

I'm trying to install the GEarthView plugin but without success. The following message pops up after installation: "No module named zope.interface" What is the problem? QGIS 2.6.0 Windows7 (64Bit)
0
votes
0answers
25 views

How to select the buffer region in map canvas in my plugin using python

I am developing a plugin which finds buffer by getting state name, city name and distance given by the user. The plugin works fine and writes the cities that matches the distance in a CSV file. What i ...
1
vote
1answer
20 views

Error while trying to replace a opened csv file with the newone in my plugin

My plugin does some basic geoprocessing functionalities and write the output as csv file. What i want is when i open some already writed output csv file in a writable mode and try to replace the same ...
1
vote
0answers
5 views

How do i select specific time and download quality MOD021KM data

I am trying to download MOD021KM for net primary production estimation, and am so stuck on how to download the data and selecting the best time of a day using LAADS website. Morever which values for ...
0
votes
0answers
22 views

Error in finding buffer

I am trying to find a buffer for city provided a state, distance and filepath to write as csv. What i am facing is that the name which i selected in the city combo box alone gets writed in the csv ...
1
vote
1answer
28 views

Removing the duplicate values in QCombo Box

In my plugin, there is a combo box which lists city names for a particular state. FOr example, if i chose a particular state and city will be some 20 names in the dropdown. But the first name alone ...
1
vote
1answer
43 views

How do I properly import python sklearn to QGIS PyQt plugin?

A bit of background: I'm somewhat new to python and QGIS plugin development. I've created a plugin structure for QGIS using the Plugin Builder on QGIS and I've added some controls to the gui and ...
2
votes
1answer
51 views

Layer properties dialog in my QGIS plugin

I am developing a plugin which should display some information like geometry of the layer, feature count etc. Now those are currently displayed in QMessageBox.information. I want it to be displayed ...
0
votes
1answer
45 views

How to trigger a QGIS action when a plugin button is clicked?

I tried calling the select free hand tool by below snippet of code. iface.actionSelectFreehand().trigger() I dnt have any idea how to call this when i am pressing a button in GUI. my gui is ...
1
vote
1answer
38 views

How to compute buffers for certain features?

I used the following snippet of codes for finding buffer. def buffer(self): layer = self.iface.activeLayer() distance = float( self.dlg.DistancelineEdit.text() ) city = ...
3
votes
1answer
69 views

How to import fromUtf8 in QGIS?

# Declare instance attributes self.actions = [] self.menu = self.tr(u'&City_searcher_plugin') # TODO: We are going to let the user set this up in a future iteration self.toolbar = ...
0
votes
0answers
26 views

Error in my buffer plugin

In my buffer plugin, i tried the following code # Get buffer distance and selected city dist = float( myLineEdit.text() ) city = myComboBo.currentText() # Get the feature corresponding to the ...
1
vote
1answer
55 views

How to connect Excel file with QGIS?

I am working with QGIS and I want to connect with Excel. I have exported attribute tables to Excel. Now I want to connect Excel with QGIS in the way that if I change a line dimension, it will be ...
1
vote
1answer
49 views

How to call default tool in QGIS inside plugin using python script?

I want to create a plugin which can draw irregular polygons in QGIS. For that, I want to call the Select features by freehand default tool inside my plugin. How can I do this within a python script?
2
votes
2answers
47 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 ...
1
vote
2answers
98 views

How to export attribute table to Excel from QGIS?

I have seen all the questions for this question, and I try all the answer like copy paste, csv (in fact this I don't know where to find) but none of all is not the right answer. Can anyone help me?
0
votes
2answers
22 views

Is there a list of free application modules (or “Fachschalen”, in German) for QGIS somewhere?

I'm looking for application modules (in the form of plugins) that cover sets of related tasks like asset management, in a basic UI. A simple use case example: a water gauge (point feature with a 1:n ...
22
votes
1answer
16k 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 ...
0
votes
0answers
54 views

Couldn't load plugin processing in QGIS: Access is denied for R

Couldn't load processing plugin due to flowing error. Any help? thanks. Couldn't load plugin processing due an error when calling its initGui() method Traceback (most recent call last): File ...
3
votes
1answer
88 views

Find Polygon in “Layer A” containing Polygon in “Layer B”

I haven't found yet someone with the same problem, so I'm posting a new question. The topic seems quite standard, so I'm sure there's a way to do it in QGIS. I have two layers: Region Layer Postcode ...
1
vote
0answers
38 views

QGIS 2.6 can't reload Python plugins

Im using QGIS 2.6 on Ubuntu 14.04. Suddenly a strange caching behaviour appeard in QGIS. When I change the plugin code and try to reload it with for example the Plugin Reloader plugin or when I reload ...
4
votes
1answer
932 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) ...
0
votes
2answers
358 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 ...
1
vote
0answers
17 views

how to generate metadata file for semi automatic classification plug in?

I am working on satellite images. The region I am interested in is only a fraction of the whole satellite images. My laptop slows down tremendously when working on the whole image. So I clipped the ...
1
vote
1answer
44 views

Getting values from Qt widgets and using them for a buffer

I am writing a simple plugin that finds buffer. My gui has 2 combo box and 1 Line edit. The first combo box will have a drop down of values from column 'States' and 2nd combo will have a drop down of ...