2
votes
0answers
16 views

Programmatically change layer position in the table of contents (QGIS)

I am trying move/position a layer to the bottom of the TOC by using addTopLevelItem on all other layers. I unsure how to reference the layers as QTreeWidgetItem's. def bg_bottom_level_item(self): ...
0
votes
0answers
22 views

I'm looking for an idea to calculate shortest path in a line Vector layer using a starting point

I'm looking for an idea to calculate shortest path time in a line Vector layer using a starting point in a qgis python plugin based on distance and speed. is there a solution where i can get ideas? ...
0
votes
0answers
30 views

Writing a script for accessing QGIS tools for use in HTML WebPage [on hold]

My objective is to write a script which uses QGIS GRASS Plugin tools and generates an IDW Interpolation Output and passes the file path as a parameter, which can be used in an OpenLayers API ...
0
votes
1answer
24 views

Unknown error concurring when developing QGIS 2.0.1 plugin in Windows 7

I am following the tutorial found here for developing a simple QGIS plugin within QGIS 2.0.1 installed on Windows 7. However, as I have began to try developing a link between the GUI and each the ...
0
votes
1answer
33 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
1answer
28 views

In what ways has QGIS 2.x API changed making Plugin Builder Tutorial invalid?

I am working on the QGIS workshop Tutorial for QGIS Plugin Builder and notice that it is for QGIS 1.1. As this seems like a popular tutorial, in general, what are some areas of this tutorial that need ...
0
votes
0answers
26 views

How to add the attributes of selected features to my new layer in pyqgis

I am trying to create a layer from the selected points coordinates. I am drawing a circle to the coordinate of selected points. I also need to add initial attributes of my selected features to my new ...
0
votes
0answers
17 views

insertVertex giving false in pyQGIS

I have this code from my plugin which work in Qgis 1.8 and I am trying to make it work in 2.0. I want to insert a coordinate x and y into a polyline after the last entry. points = geom.asPolyline() ...
1
vote
0answers
12 views

Why is node tool deleting unselected points in lines?

I am freehand editing lines to a shapefile on Mac QGIS 2.2.0, and have my snap settings at vertex and segment @ 20 pixels. The lines are roadways and I have merged them all into one feature and merged ...
0
votes
0answers
33 views

Error openlayers plugin in qgis [duplicate]

I did the following steps: I put the projection in 3857 and I enabled the project on the fly Open a vector shape layer in the projection 4326 I enabled the openlayers plugin Clicked enabled ...
0
votes
0answers
15 views

What does this python error in terrain profile plugin mean?

I get this message when trying to create cross sections from a raster layer. It happens only when I try to plot from a selected polyline. When I choose temporary polyline, the plugin works fine.
0
votes
1answer
40 views

Replacement of QVariant and setAttributeMap in PyQGIS

I am updating a plugin for QGIS 1.8 to QGIS 2.x. I have the code below. The setAttributeMap does not exist anymore. I have replaced it with fet.setAttributes and it seems to work. When using ...
0
votes
0answers
20 views

Using QGIS ComboBoxManager: adapting for QGIS plugin

I'm looking for more guidance using the QGIS ComboBoxManager module (http://3nids.github.io/qgiscombomanager/). After finally getting the imports correct, I'm trudging my way through learning how to ...
0
votes
0answers
24 views

Check if Openlayer Layer is empty, caused by nonexistence of internet connection?

I use Openlayer Google street map as a base-map in my QGIS plugin projects. i want to check programatically if the layer is loaded or is empty and decide if i load my offline base-map instead of ...
3
votes
2answers
49 views

What is the closest CRS to “Meridiano de Greenwich”

I have a 1906 scanned map that I am trying to georeference in QGIS for Mac. The map has French and English lat-long, indicating them as either "Meridiano de Greenwich" or "Meridiano de Paris." I would ...
1
vote
1answer
43 views

How to create a dock widget correctly in QGIS plugin?

I am building a QGIS plugin and would like to use a dock widget. I have used QT creator to design the UI, with the object type being a QDockWidget. When the plugin is enabled in QGIS the dockwidget ...
0
votes
0answers
7 views

GarminCustomMap: crash without error

My GarminCustomMap crashes without an error. Im using qgis 2.2 on Xubuntu Precise. I tryed with different settings but after 2 - 6 seconds QGIS crashes without any error. What could be the problem? ...
0
votes
0answers
16 views

How to select Qgis features through Python Plugin

Hi I am very new to Python so this may be a bit basic. I am trying to find a way to select and zoom to the features in a QGIS layer. I have created a plug in and built a custom form. I have 3 ...
1
vote
2answers
78 views

How to number points along a line consecutively

I have a line and along this line I have different points which are max. 20m away from that line. Now I would like to number the points along the line, like shown in the grafic. Any suggestions how to ...
0
votes
1answer
23 views

Changing band for greyscale in plugin

I am trying to make a qgis plugin to change which band in a multiband data set (netCDF where the band represents time steps) is used for a grey scale rendering. The file works fine with manual ...
1
vote
2answers
132 views

How to set Eclipse and PyDev for QGIS when ArcGIS is installed?

I have got a lot problems with the configuration of Eclipse with PyDev in order to develop QGIS plugins. The situation is very weird and frustrating. I can import qgis module using Pyscripter without ...
0
votes
1answer
29 views

How to do a search in a line to a specific point

I'm using QGIS 2.0.1 Dufour. I'm working with a shape file made by a single line that represents a road with 30km. In that line I want to attach pdf files containing information about some points in ...
1
vote
2answers
45 views

How to use eVis to launch AutoCAD with a relative path?

I found this post, which leads me towards what I need: How to link to external files with relative path in QGIS actions? Now, I'm trying to use the eVis plugin to open .DWG and .DXF by launching ...
1
vote
1answer
66 views

Installing LASTools to QGIS on a Mac (or other LAS processing plugins)

I recently saw this link how to install LAStools toolbox to QGIS. The problem is that the instructions are only for Windows users. Now I wonder if it's possible to install LAStools on a Mac with QGIS ...
0
votes
0answers
26 views

QGIS - Loading data by SQL-window in the DB-Manager is not working?

I have problems to add a subset from a PostGIS-table to QGIS by using 'load as new layer' in the SQL-window of the DB-Manager (QGIS-Version 2.2.0-Valmiera). I defined both the 'column with integer ...
0
votes
1answer
49 views

Purpose of “myPlugin_dialog.py” file created by QGIS Plugin Builder

I usually use QGIS Plugin Builder to create working templates for QGIS plugins. While a generic Python plugin needs the files below; __init__.py metadata.txt resources.py (translated from ...
0
votes
1answer
46 views

Threejs “Failed to generate a dem file using gdalwarp. gdalwarp is not installed.”

I am trying to test out the new threejs plugin for QGis and have come across this error. Failed to generate a dem file using gdalwarp. gdalwarp is not installed. I have installed the latest ...
0
votes
1answer
39 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, ...
1
vote
1answer
33 views

Tick boxes for a qgis plugin written in python

in a python plugin for qgis I want the user to be able to select one or more of several options via tick boxes. I imagine it to look like e.g. Qgis 2.2 tool "Vector" -> "Data Management Tools" -> ...
2
votes
1answer
108 views

QGIS 2.2 documentation

I thought I would try to write a plugin for QGIS (some Python code that I hoped I could easily port) I started following http://www.qgisworkshop.org/html/workshop/plugins_tutorial.html but that turned ...
1
vote
1answer
42 views

How to create a slope map with different colors according to slope percentage or degrees

I have converted a dxf file with contour lines into a polyline shapefile, and I have used the Raster Analysis plugin to create a grayscale slope map from this shapefile. I would now like to have ...
5
votes
1answer
101 views

How to change OpenStreetMap Layer Properties in QGIS 2.0

I have loaded the OpenStreetMap layer in QGIS 2.0, but would like to edit the properties in order to better complement the map I'm producing. I can't seem to find the OSM toolbar or OSM Feature widget ...
0
votes
1answer
17 views

how to compile qgis-1.8.0 on ubuntu

i have downloaded qgis-1.8.0.tar.bz2 and I want to install it on my linux computer(12.04 LTS). How can I perform it please? I do it because I am desperate with Qgis 2.0.1 Dufour on ubuntu 12.04, ...
0
votes
0answers
19 views

QGIS Widget for data entry. Many fields based off 1 combobox

I have used QGIS for a while now but have just started getting into creating widgets for data entry. I want to know if there is a way to create a widget that will auto populate 2 or 3 other columns ...
1
vote
1answer
47 views

Why do features in QGIS drawn on same datum as Google imagery from OpenLayers move? [duplicate]

I have just started using QGIS. I've loaded the "openlayers" plugin and added a google hybrid layer, which is based off the WGS84 datum to my understanding. Now I create a shapefile and add a new line ...
2
votes
1answer
54 views

QGis draw over simple jpeg image

I'm pretty new to GIS, and since 2 months ago QGIS is a great tool to achieve very simple tasks, such open some shapefiles I find in the web and load that data on my website geoJSON formatted. Now ...
1
vote
1answer
89 views

How to make GRASS and SAGA tools capable to use in QGIS?

As my title, I installed Qgis, GRASS and GDAL by osGeo4w package, and as I finish the installation, I want to use GRASS tool, I face this problem: But I already installed GRASS and SAGA, how to make ...
0
votes
1answer
53 views

Get list of CRS in QGIS by python?

It is possible to get list/dictionary of "Recently used coordinate reference system" from QGIS by python? Or get list of all "Coordinate reference systems of the world" also from QGIS by python.
1
vote
2answers
72 views

How to get the file paths of the loaded layers in a QGIS plugin?

I am very new to GIS, QGIS and Python so please bear with me. I am using QGIS 2.0 and I would like to develop a QGIS plugin that would display the raster layers of the main window in order to allow ...
0
votes
0answers
92 views

In GRASS in QGIS, what do I do if “NVIZ module not found”?

I was a on a Windows system using GRASS in QGIS when the error below occurred. NVIZ module not found I wonder how I can solve this problem?
0
votes
1answer
40 views

Halt QGIS on startup

I have a custom made login form in Python, which launches on QGIS startup. But before the user has a chance to enter the credentials, the program starts normally, bypassing the form. From then on the ...
1
vote
1answer
44 views

Label features on hover/click with QGIS?

Simple question: Is there a built in/easy way to show labels for features based on a hover or click action with QGIS 2.0.1?
1
vote
1answer
81 views

Sextante in QGIS - downloaded, but does not show up

I downloaded Sextante, and I put it into the directory C:\users[my_user_directory].qgis\python\plugins\sextante-1.0.9\sextant I re-started the computer, but there is still no sign of Sextante in ...
1
vote
2answers
60 views

How to avoid “Handle bad layers” message when using QGIS Flowmapper plugin?

In QGIS, if I close a project and try to open it a few days later I often get a message that says "Handle bad layers". This is very frustrating because when I open the project various layers will have ...
0
votes
0answers
166 views

Make a 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 ...
3
votes
1answer
87 views

how to snap two line vertex in two different layers used in QGIS

I want to snap between two poly-lines from 2 different layers (Layer1 in Brown and Layer 2(postGIS layer) in Pink color- ), but my snap option don't work. I have changed the tolerance to different ...
1
vote
1answer
25 views

How to randomly select from existing points within each polygon?

I have a polygon layer (where each feature has a class attribute), and a point layer, and there are at least 10 points within each feature of the polygon. Is there a way to randomly select only "k" ...
1
vote
1answer
130 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 ...
0
votes
0answers
24 views

OSX: Installing GRASS addons in qGIS?

I would like to install r.stream.basins in GRASS through qGIS (2.0.1-Dufour). I tried using g.extension ext=r.stream.basins and got the error "the 'make' program is required. Please install first". ...
2
votes
1answer
78 views

QGIS 2.0 Plugin: Select and Identify a Single Feature

given is a layer with some nodes on it and every node has some attributes(name, id, etc...). For showing up the informations of a single node I can use the "Identify Feature Tool". Choose the tool, ...