Version 2.0 of QGIS (previously Quantum GIS)

learn more… | top users | synonyms

1
vote
1answer
36 views

How do I create a spatial filter on a layer?

I have a layer that draws points in a PostgreSQL (PostGIS) database. The problem is, all points in the table are being drawn. I want to limit the points drawn to a spatial query. How do I limit the ...
1
vote
0answers
12 views

QGIS print composer and label with svg background error

I have a problem with labels in QGIS. I'm using a background svg for some labels (street numbers). In QGIS, it's all ok but when I use the composer there is a bug (I suppose), because I see some ...
0
votes
1answer
41 views

Standalone External QGIS Application using python [closed]

I am creating a standalone external Application of QGIS using python and i am following the tutorial mentioned in the link ...
2
votes
1answer
32 views

How to update a column in a layer with NULL currently to nearby value in QGIS?

Currently I have a layer with construction year attributes in it. Not all of these are filled out and I figure it is reasonable to update them with the construction year of the nearby elements as they ...
3
votes
3answers
100 views

Is it possible to perform automatic snapping of polygons in QGIS or ArcGIS?

Note: in the picture below white space between the polygons is blank space – it does not contain any polygons as a result of Intersect or Union functions.
1
vote
0answers
56 views

Buffer Csv gets repeated when more than one feature is selected in mapcanvas in PYQGIS

I have a function which will allow the user to select a feature or more features in map canvas and performs buffer for the selected feature(s) and writes the output to a csv file. I dont have any ...
1
vote
0answers
27 views

Closing QGIS custom form programmatically?

I have a custom form for entering and editing attribute values of a point shape file. I also added a button for deleting the actual feature. Deletion of the feature works fine and then I want to close ...
0
votes
2answers
59 views

Ls factor, flow accumulation, watershade, relief in Quantum GIS 2.2

I'm a beginner quantum gis. I want to make the LS factor of 30m DEM that I have merge and set the projection in wgs 84/UTM zone 49S (EPSG ; 37249). I'm having a problem when trying to create relief ...
1
vote
0answers
50 views

Unable to start modules in QGIS GRASS plugin (GNU/Linux Debian)

Recently, the Toolbox of QGIS GRASS plugin can't find modules in my GNU/Linux Debian. When I click on any module, the toolbox reports the message: Cannot find module x.xxx and, after, I have the ...
2
votes
1answer
83 views

How to create several maps showing different layers but the same area?

I know about the print composer's atlas generation tool, which allows users to create multiple maps that show the same layers/features but different geographical areas. What I am looking for is a ...
-4
votes
0answers
46 views

Creating Check Boxes for all the Layers displayed inside the List View

I have a List View in my UI. Inside which I would like to display the layers loaded in my QGIS toc. For each layer in List View, it should automatically create checkboxes for all layers. How this can ...
0
votes
0answers
100 views

Python Plugin not Working when I degrade the QGIS version from 2.8.1 to 2.0.1

I removed QGIS 2.8.1 from my system with Ubuntu 14.04 OS, as I was not satisfied with this version because it was crashing when I loaded data from my local server. Now I again installed QGIS 2.0.1 but ...
0
votes
1answer
29 views

Behaviour of Select Feature by Freehand tool in my own plugin

I am calling QGIS "Select Feature by Freehand tool" in my plugin. what it will does is it allows the user to select features in mapcanvas and i made a signal like if selection changed in mapcanvas , ...
0
votes
0answers
42 views

How to store a triggering action and events and call them when needed using python in qgis

Can anyone explain in detail how to store the triggering action or an event that take place in the mapcanvas in a variable and call the same when needed in python. Say for example,say i have ...
2
votes
0answers
58 views

QGIS-GRASS firespread simulation module [closed]

I'm trying to do some fire spread simulations in QGIS with GRASS fire spreading simulation module. QGIS ('Processing Toolbox' > 'Geoalgorithms' > 'Misc' > 'Fire spreading simulation') GUI. Already ...
1
vote
1answer
51 views

Plugin to run one function when run button is clicked

My plugin gui is attached below which has two functions one is selecting state, cities from the combo box and distance to be entered in the lineedit and the other is if we click a pushbutton it will ...
0
votes
0answers
21 views

Refreshing QGIS view [duplicate]

I've written a short python script for use in QGIS (currently using 2.8.1) to set the CRS for all loaded layers to OSGB 1936 / BNG. The script correctly sets the CRS but I have to manually scroll ...
-1
votes
1answer
31 views

List printing same values as a buffer output instead printing unique values

I have a list of features selected in the mapcanvas and for that selected features i am doing buffer and printing the feature names that are inside the buffer. While printing,all values in the list ...
4
votes
2answers
195 views

Difference between Feature and Geometry

This may be trivial question. I am new to GIS. Could any of you can brief me the difference between the feature and Geometry.
1
vote
1answer
64 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 ...
1
vote
1answer
71 views

QGIS-->rotate polygon by a numeric value

Is there any way to rotate a polygon or a feature by entering a numeric value in QGIS thx
0
votes
0answers
14 views

Set Relative Hyperlink to open windows explorer using Actions in QGIS

I am wondering how to solve this problem I am having. I am trying to make an action in QGIS when I click on my feature, windows explorer will display the folder for that feature. I have the folder ...
1
vote
1answer
41 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
39 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 ...
-3
votes
1answer
25 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 ...
-1
votes
1answer
53 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 ...
0
votes
0answers
33 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
26 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 ...
3
votes
1answer
52 views

USA Contiguous Albers Equal Area Conic to miles

My data is in USA Contiguous Albers Equal Area Conic projection. How can I convert the USA Contiguous Albers Equal Area Conic projection to miles?
0
votes
0answers
25 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
37 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
42 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
74 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 = ...
2
votes
0answers
45 views

Why are MySQL network connections extremely slow in QGIS 2.0 - 2.6 (when compared to QGIS 1.8)

In our project we have been using QGIS 1.8 Lisboa with a MySQL database placed on a server accessed via local network since two years. Everything is working fine and quick. The vector layers can be ...
0
votes
1answer
50 views

How to find length attribute form my all lines in my layer

I am a begginer for QGIS I have a column for the length of the lines, but don't know how to find it. Can anyone help me?
2
votes
1answer
86 views

How to delete a double feature in QGIS?

I am working with QGis, and I have a layer that has some double features. I want to delete one of them, but not both of them. How can I do that easily?
1
vote
1answer
26 views

if condition is false but output is true . what is the exact expression of greater than to bands value ('mjune@1'> 99.6:)

from qgis.core import * from qgis.gui import * from qgis.analysis import QgsRasterCalculator, QgsRasterCalculatorEntry from math import * from PyQt4.QtCore import QFileInfo import os from osgeo ...
0
votes
0answers
18 views

Newline appears after when converting shapefile to spatialite

I converted a layer from a shapefile format to spatialite. A line is added in the spatialite layer but record is not created in the attribute table (similar to multipart geometry). Shape file to ...
0
votes
1answer
70 views

Creating many-to-many table from intersection between two polygon layers in QGIS?

I have created a buffer around several points. I want to intersect this layer with a Census Tract layer. My end goal is to create a table that would list all the census tracts that intersect with the ...
0
votes
1answer
51 views

Loading all the vector layers in plugin

I have a list of vector layers loaded in the canvas of qgis. `layers = self.iface.mapCanvas().layers() for layer in layers: if layer.type() == QgsMapLayer.VectorLayer: ...
0
votes
0answers
40 views

The result is not displayed after OK is pressed in my plugin

I am developing a plugin that checks for multipart geometry in a layer in qgis 2.6. After ok is pressed, nothing is displayed. My code snippet is attached. def run(self): """Run method that performs ...
1
vote
1answer
78 views

Attribute Error: “List” object has no attribute getFeatures

I am developing a plugin that checks for multipart geometry in a layer in qgis 2.6. I am geeting an error list object has no attribute getFeatures. My code snippet is attached below. def run(self): ...
1
vote
1answer
45 views

Where to download rasters for QGIS 2.6

Where can I download sat imagery. I've read that openlayer provide such things but it requires an internet connexion, and I mostly use Qgis with an offline computer. So do you know a way/provider (for ...
5
votes
2answers
68 views

Start QGIS with virtualenv Python

is there any means of telling QGIS to use a different Python installation than the default, system-wide one? E.g. use some virtualenv Python /myvirtualenv/bin/python instead of /usr/bin/python? ...
1
vote
1answer
75 views

QGIS 2.6 how to prevent user to drop a postgis table

Does anyone know how to prevent user to drop a postgis table? I have a vector layer imported from a postgis2.0 database, and one of my users drop it accidently. Fortunate I had a backup, but i don't ...
1
vote
0answers
28 views

Error while creating QGIS plugin

I tried developing a python plugin in QGIS2.6 following the instructions in the link http://anitagraser.com/2014/04/26/getting-started-writing-qgis-2-x-plugins/.When I launch the plugin in QGIS after ...
-4
votes
1answer
26 views

Make connection from Postgresql to QGIS? [closed]

I'm still new in QGIS. I want to add data from one layer to another layer in QGIS. How could I accomplish that?
0
votes
2answers
165 views

Is there scripts of QGIS core plugins available anywhere?

Is there anywhere I can see the scripts of the Qgis core plugins.
2
votes
1answer
29 views

Updating Street Features in QGIS from Google Maps

I am a GIS student. updating infrastructure layers in QGIS for a small municipality. Everything is open source and there is no budget for buying new data. I need to update the ROADS layer - as the one ...
0
votes
1answer
66 views

User Interface file compilation using OSGeo4W shell during qgis plugin creation

I am trying to build a plugin in Qgis2.6 using plugin builder. And as a part of the same, I tried compiling the .ui and .qrc file using OSGeo4W shell. It is showing an error during compilation in ...