Version 2.0 of QGIS, is a user friendly Open Source Geographic Information System (GIS) desktop application licensed under the GNU General Public License.

learn more… | top users | synonyms

-3
votes
1answer
20 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 ...
-4
votes
0answers
28 views

Error in clicking browse button in my plugin [on hold]

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. ...
-1
votes
1answer
27 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
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
19 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
32 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
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
26 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
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
67 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 = ...
1
vote
0answers
21 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
49 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
80 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
21 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
15 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 ...
-2
votes
0answers
44 views

GUI that queries from Spatialite Database

I am developing a GUI that has three drop down say state, cities and distance. The output needs to be a CSV file with the cities within that radius. What I want is the full data is placed in ...
0
votes
1answer
46 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
36 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
38 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
44 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
42 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
52 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
57 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
23 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
23 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
124 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
25 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
38 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 ...
2
votes
1answer
91 views

Downloading old version of qgis to Windows

I have bought the book "Learning QGIS 2.0" by Anita Graser and wish to work through the tutorials therein in order to improve my knowledge of QGIS. I currently use QGIS 1.8 and wish to download ...
0
votes
0answers
20 views

How can I include a color legend for my marker colors when i used a QgsCategorizedSymbolRendererV2?

I have this function that sets the marker color to a different RGB value depending on the attribute price level. I would like to also add a color legend showing the marker color with the level of the ...
0
votes
0answers
34 views

Correcting the shift of MapInfo data in QGIS 2.6 (and earlier too)

I often receive multiple .mif or .tab files and view them alongside shapefile layers in QGIS 2.6.1. Dragging one of the .mif files from a Windows Explorer window into a QGIS window will display the ...
1
vote
1answer
70 views

Attribute Error:'NoneType' object has no attribute 'name'

I am developing a plugin that counts the number of features for a layer in qgis2.6.The plugin works fine when there is a layer but when there is no layer,it throws an error.For reference,a part of the ...
0
votes
1answer
83 views

QGIS 2.6.1 doesn't load python plugins on Ubuntu after upgrade [duplicate]

I have experienced this scenario once before and now today, whenever I updated my QGIS installation on Ubuntu, it didn't reload python plugins under ~/.qgis2/python/plugins when started, only c++ ...
1
vote
2answers
59 views

Georeferencing PNG with transparency via gdal produce “green pixels” in QGIS?

This is just intriguing while not blocking my way, but I wonder what is going on and would like to get feedbacks from more experienced users. 1) Given a trans.png file (1.1MB) looks good and ...
1
vote
1answer
56 views

Connecting vector label size with map-units?

I have a working application of labels to a point array - but the size of the text is not relative to the map scale. This decreases the readability of labels when panning and zooming. To resolve~ ...
1
vote
1answer
35 views

How to use field calculator in QGIS to calculate new coordinates, and use that new columm to geolocate a layer's points

In a separate question, at How to shift a CRS by an observed offset, I asked about shifting a CRS to align the problems aligning data points with a satellite image obtained from OpenLayers. (They ...
1
vote
0answers
34 views

How to shift a CRS by an observed offset

I have a drone image is which is geo-referenced over a Google Sat. image. These align well, and both use WGS84-Pseudo Mercator (EPSG:3857). I have a set of data points in a shape file which are ...
1
vote
0answers
35 views

Is there any alternative for reshapeGeometry in Qgis 2.4 version

I am splitting the polygon feature if it intersects with the line feature. I am using reshapeGeometry() but it is nt wrking in qgis2.4. Is there any alternative to use for this one.it is wrking ...
0
votes
0answers
137 views

How to fix “Unable to load GdalTools plugin. The required ”osgeo [python-gdal]“ module is missing.”

When I start QGIS, it display error message: Unable to load GdalTools plugin. The required "osgeo [python-gdal]" module is missing. Install it and try again. Couldn't load plugin 'processing' from ...
0
votes
0answers
114 views

Mapfile generation from QGIS project

I am looking for a way to transform a QGIS project (.qgs) to a MapServer Mapfile (.map). I am using Quantum GIS 2.6 and MapServer 6. The layers are postgis tables. I would need something like this ...
1
vote
1answer
49 views

SQL-Like Inner Join on IDs in Two Layers in QGIS

Using QGIS v2.6.0-Brighton. This question is not about editing layers geographically in anyway. It is merely trying to find data from two layers as you would in an SQL Query and append an extra ID to ...
2
votes
1answer
49 views

QGIS Select overlapped feature

I have points that are not equal but the distance between them is so small that it can't be seen even at scale 200k:1. I calculated the distance between these points and add it as attribute. Now I ...
1
vote
0answers
28 views

QGIS Dimensioning during edit

Is there a plugin or tool providing following functionality: I select 2 points (or vertices) - it shows the length between this points When i edit the point (or move vertex) the length automatically ...
1
vote
1answer
47 views

QGIS Change file browser/chooser default location

Is there a way to change QGIS file browser default location? Currently it points to bin folder of QGIS installation C:\Program Files (x86)\QGIS Brighton\bin.
1
vote
0answers
59 views

QGIS Topology checker wrong results?

I am trying to understand topology checker results and frankly i dont get it - probably i am doing something wrong. Source - Point layer Target - Polygon layer Must be inside - that is working as ...
1
vote
1answer
40 views

QGIS 2.0 OpenLayers GoogleMap/Sattelite do not work

I have been using QGIS version 2.0 with Google Satellite layers for a few months. The last time I used was in mid Oct 2014. In mid Nov 2014, Google Satellite or Google Map suddenly does work any ...
3
votes
1answer
92 views

Save map in raster format from QGIS using compression

Is there a method to save a map in raster format from QGIS using compression? For exemple from "Export map" in ArcGIS there are many options to compress the images depending on the file type (tiff, ...
0
votes
1answer
41 views

Crop one shape file using another shape file in QGIS

In QGIS 2.0.1, is there a way to automatically slice up one shape file and export it as multiple files using polygons defined in another shape file? I have a detailed shape file that categorizes the ...
3
votes
1answer
38 views

How to get the length of each line segment in a line shape file in QGIS

Iam new to QGIS. I drew a line depicting a small length of road. But I drew it in segments and then atlast right clicked at the end point and gave id=1. I extratced the nodes, their geometry. But what ...
1
vote
1answer
46 views

With QGIS Plugins/PluginBuilder, how to prevent 2nd instance of Plugin from starting

I am using QGIS 2.6.0, with PluginBuilder 2.0.3 [checking the version, I just noticed that the 2.1.0 update is available] I am writing a plugin; it installs and runs. While running, I am able to ...