Version 2.0 of QGIS (previously Quantum GIS)

learn more… | top users | synonyms

1
vote
0answers
18 views

Distribute the points randomly within a polygon in QGIS

Say i have 20 points within a polygon. Each point represents a feature. out of which 15 were distributed and 5 points were one above the other in same location. Is there any way to randomly distribute ...
2
votes
0answers
22 views

Researching into the nuts and bolts of displaying ESRI Grids in QGIS

I am trying to load an Arc/Info Binary Grid into QGIS 2.2.0 Valmiera installed in OS Windows 8.0. As far as I know, I only need to load the "w001001.adf" file contained in the "altitud" folder while ...
1
vote
0answers
22 views

QGIS Processing Modeler: Join attributes by location

If I use "Join attributes by location" from the menu it works fine but if I'm using it within the Processing modeler it's not working. I want to sum up previously selected records having a field area ...
1
vote
3answers
117 views

How to create a compressed GeoTIFF with the QGIS Clipper tool?

I have a geo-tiff created by Pix4D which is about 375 Mb in file size. I have clipped it to a smaller area using Qgis 2.8(using Raster ‣ Extraction ‣ Clipper), and the output file is about 900 MB in ...
0
votes
0answers
28 views

How to extract the raster files from .prj?

I am interested in using Raster Calculator tool for which i need the desired raster files. But i came across a problem i.e. when i converted my vector files to raster and saved them they were saved ...
1
vote
0answers
28 views

Create a checkbox per loaded layer in a QGIS plugin

I want to create check boxes inside a listview in my plugin dynamically based on the number of layers loaded in QGIS. I would like to know is there any similar existing plugin in QGIS so that I may ...
1
vote
1answer
45 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
19 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
53 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
35 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
115 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
86 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
31 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
66 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
73 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
101 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 ...
0
votes
0answers
120 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
30 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
45 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
68 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
54 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
207 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
75 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
99 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
1answer
34 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
47 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
29 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
67 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
36 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
27 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
59 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
26 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
79 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
1answer
53 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
88 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
28 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
19 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
75 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
55 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
41 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
98 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
47 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
78 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
85 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 ...