Questions tagged [qgis-2]

Version 2.x of QGIS (previously Quantum GIS)

Filter by
Sorted by
Tagged with
36
votes
4answers
58k views

Loading OpenStreetMap data in QGIS?

In QGIS 1.8 I used the openstreetmap plugin to request data from the server, or open a .osm XML file, which produced 3 layers (polygons, polylines and points) in QGIS. This was great (give or take ...
11
votes
3answers
2k views

Styling border to match fill in QGIS?

In the past I have just manually matched the color of the border to the color of the fill, but this can be time consuming. I am wondering, is there any way to have the program automatically match ...
9
votes
2answers
5k views

Programmatically load composer from template and generate atlas using pyQgis

I Am trying to build a plugin to load a print composer from file, generate an atlas and export to image. So far I have been successful in loading the template and exporting it to image. I have been ...
6
votes
4answers
10k views

Creating DEM from LAS file without using LAStools?

I want to create a ground model from a *.las file. The LAStools are available in QGIS but limited in use (generation of black diagonal in result file), so I can't use this. In the GRASS tools I can ...
9
votes
2answers
7k views

QGIS 2.4 access .mdb add error

So I followed the instruction here: Can QGIS read an ODBC connection? for adding a .mdb into QGIS. There are great instructions about 1/3 of the way down. But I still can't get it to open. I on ...
33
votes
2answers
16k views

Does QGIS have the equivalent of ArcGIS's Layer (*.LYR) file?

Using ArcMap, it is possible to add a dataset (eg a shapefile) to the map, and configure the layer's properties (such as the symbology, table joins, switching some attributes off in the Identify ...
6
votes
1answer
757 views

How to generate multiple maps where one highlighted attribute changes?

I have a layer that contains counties within the state of Washington. I need to build one map (jpg) for each county. For that specific map all counties will show as light grey, but the specific ...
5
votes
1answer
2k views

WMS layer in a QGIS 2.4 stand alone Python script

What is the best way to add a WMS layer on a map, in a stand-alone Python script with QGIS 2.4? The methodology explained at the bottom of the official QGIS documentation page seems to be outdated ...
11
votes
3answers
11k views

QGIS 2.14 standalone GRASS provider missing Msys folder, can't execute tools

In QGIS 2.12 and down, when one went about manually setting the GRASS provider folder paths, this was the way to do it In GIS 2.14 there is no Msys folder in the same path (...\apps\msys) or any ...
8
votes
1answer
15k views

Creating DEM from Point Data using QGIS?

My boss gave me a small 3D-point-shapefile and asked me to make an DEM from it, which I should put together with an older DEM of the same site, which was made with Surfer. I created a raster-layer ...
8
votes
2answers
9k views

Missing processing menu in QGIS?

I'm sure there is a really simple explanation to this but haven't found any pointers on this forum or elsewhere. I seem to have lost the 'processing' menu from QGIS and can't figure out how/why!? Any ...
9
votes
4answers
1k views

Connecting points (bus stops), which don't lie on lines (LINESTRING), to network?

I need to connect bus stops (points) to a network layer (OSM data). These bus stops do not lie directly on the lines (see screenshot) nor should their location be moved. I use PostGIS, pgrouting and ...
12
votes
3answers
2k views

Is it possible to use memory layers in QGIS processing algorithms?

I am building a QGIS plugin that connects to a MySQL database in the local network, and then adds a subset of one of the tables to an in-memory layer; the subset is based on data currency (only taking ...
5
votes
2answers
7k views

How to terminate Python scripts in Processing framework properly?

I'm writing a Python script to use it in Processing framework. I need to cancel script execution if certain conditions are met (to save user's time). I tried to use sys.exit(arguments) command. The ...
5
votes
1answer
1k views

Making serial maps from template using PyQGIS?

I have developed a stand-alone python script for making serial maps using PyQGIS library. The maps should follow a specific format that is indicated by a template .qpt file. This template file is ...
2
votes
2answers
5k views

Area is calculating wrong using $area in field calculator (QGIS 2.8.1-Wien)

There is a similar question posted, but the solution to it seems to be that polygons were multipart: Wrong $area from field calculator (QGIS) In my case, all polygons are singlepart. I have several ...
6
votes
5answers
8k views

Creating compressed GeoTIFF with 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 ...
3
votes
1answer
724 views

QGIS just installed on MAC OSX - vector layer styles do not work properly

I am a newbie with QGIS - I have just installed QGIS 2.10.1-Pisa. I am following a youtube tutorial by Steven Bernard and I just found that the styles do not work properly (I run Mac OS X Lion 7.5.1. ...
5
votes
1answer
927 views

Is it possible in QGIS print composer to include a numeric scale in an html box?

For work I always have to create a table with my name, project name, date etc. into my map layouts. I also need to include the scale like "1:150000" in that table. So far I am solving that by ...
14
votes
2answers
10k views

How to draw polygons from the python console?

I've been visiting and revisiting the page on geometry handling in the PyQGIS Cookbook: http://documentation.qgis.org/2.0/en/docs/pyqgis_developer_cookbook/geometry.html but can't seem to figure out ...
8
votes
4answers
64k views

Fixing Runtime Error R6034: application has made attempt to load C runtime library incorrectly?

I just downloaded QGIS 2.0 and every time I open it I get this error message window popping up: Does anyone know what this means or how I might be able to fix it?
7
votes
3answers
2k views

How do I set layer transparency in QGIS 2.0 with Python?

I have a raster layer loaded in QGIS and I'd like to be able to set its transparency via the Python console. I'm new to the API and have not been able to find out how to do this. Any help would be ...
7
votes
2answers
4k views

Does mapCanvas().refresh() not work in QGIS 2.6?

Before I used the function qgis.utils.iface.mapCanvas().refresh() to reload the map canvas after for example a layer color was changed from a plugin. But this is not working with QGIS 2.6 for me. ...
11
votes
2answers
1k views

Couldn't load plugin 'processing' on windows 7 64bit

I installed QGIS (2.0.1-Dufour Dufour, d94c044) using both the stand alone installer and the OSgeo4w installer and seem to have an issue with the processing plugin. At first I thought that there was a ...
1
vote
1answer
362 views

Workarounds for heatmap plugin in QGIS?

In QGIS 2.8, the heatmap plugin got CRS broken. I updated to 2.10, now in the plugin the dialog is broken: it does not let you choose the format. I render layers for atlases with heatmap style. But I ...
13
votes
2answers
12k views

How to get field names in pyqgis 2.0

I am trying to change an plugin from QGIS 1.8 to 2.0. In the 1.8 version I create a table of the field names like this: layer = vlayer provider = layer.dataProvider() feat = QGSFeatrue() allAttrs = ...
3
votes
4answers
16k views

Enabling SAGA in QGIS?

A similiar question has been asked recently as How to make GRASS and SAGA tools capable to use in QGIS? However I have some specific queries and process I have tried which are probably better in a ...
11
votes
2answers
3k views

Save and load user profiles in QGIS

Is there a way use a configuration file, maybe .ini to load in the relevant settings for QGIS when it is setup, maybe to share with various people? Plugins installed and plugin repositories filled in ...
9
votes
1answer
2k views

How to show Python console at QGIS program start

I wonder if there is a way to open the Python console of QGIS 2.6 directly at program launch. There is a possibility to set a shortcut for the Python console, but I can't find such an option for the ...
8
votes
2answers
2k views

Skeletonize vectors in QGIS/Python

I am trying to find a tool to create a skeleton of a large vector dataset using QGIS and its bundle. It should be directly programmatically callable through Python or commandline (QGIS, GRASS, OGR etc....
1
vote
1answer
6k views

How to use GRASS module to delineate watershed area?

Update#1:I changed to work under qgis 1.8, I only input the DEM file and run the r.watershed module, and I got this: I have a DEM file of one specified region, and I take the following steps to get ...
8
votes
2answers
3k views

Using ArcGIS and QGIS together in multi-user editing environment?

We have a GIS staff of 7, and another group of about 14 who "use GIS" from time to time. We really, really want multi-user editing. Mostly of a large point file, and we're almost never in the same ...
4
votes
1answer
5k views

Saving selected features in QGIS?

I am using QGIS 2.4.0 Chugiak version. Is there an option to save selected features from a shapefile? I couldn't find such an option in this version. I am using stand alone application.
4
votes
1answer
3k views

Installing LAStools in QGIS 2.4?

Does anyone know where the Processing menu moved in QGIS 2.4? Specifically, I am trying to install the LAStools box for QGIS following these instructions: http://rapidlasso.com/2013/09/29/how-to-...
5
votes
3answers
14k views

Shapefile layer no longer editable (toggle edit option greyed out) in QGIS?

I am using QGIS 2.16 / Windows 10. I have a point shapefile which I have been using for a little while that has always been editable. Today I was editing the layer, saved my edits and left my ...
5
votes
2answers
8k views

How to correctly set up Oracle connection parameters?

Just testing out the new QGIS2 install here and trying to connect it to our huge SDE/Oracle spatial database. Im struggling with the connection parameters. Here is the connection properties to the ...
4
votes
1answer
5k views

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

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 those tools ...
4
votes
1answer
731 views

Changing layer name of output vector from processing script in QGIS?

I define an input csv file and an output like so in my processing script: ##Input_CSV_File=file ##Output_Shapefile=output vector The output shapefile is added to the map automatically when the ...
4
votes
2answers
2k views

Georeferencing window won't open QGIS 2.4

I had the georeferencer window open in QGIS 2.4 while project was running, I accidentally closed the Qgs document with the georeferencing window open (worked absolutely fine till then). When I opened ...
3
votes
1answer
945 views

Selecting point to obtain water basin leading to it

For the past few days, I have been working on building a watershed model including drainage basins and find that I am not looking for a global watershed and basin distribution, I am looking to ...
3
votes
1answer
686 views

QGIS update from 2.14 to 2.16 failed on Ubuntu 14.04 [closed]

Until yesterday my whole qgis and python-qgis worked fine with version 2.14 under Ubuntu 14.04. After a simple sudo apt-get update and sudo apt-get upgrade qgis failed to update... Several attempts to ...
3
votes
1answer
125 views

Line width and labels based on blended values of features sharing same geometry in QGIS

I want to appropriate line segments that share the same geometry with a particular line width and labels based on the aggregated values of one field "GIS@BUS_5_Min". My attribute table and polyline ...
10
votes
1answer
2k views

Wait for canvas to finish rendering before saving image

I am attempting to write a script that will save a rendering of several layers using the map composer. The problem I am encountering is that the script saves before qgis has finished rendering all ...
7
votes
2answers
8k views

Error message: qgis_core.dll missing

I have a fresh install of QGIS 2.4. When trying to open a .shp file I get the error message below. I've followed their advice and have done several re-installs and also cleared all qgis files from my ...
6
votes
2answers
2k views

Exporting model to Python script in QGIS?

Where has the export model to Python script option gone in QGIS 2.6.0?
5
votes
1answer
1k views

Points in Polygon missing from QGIS 2.16.x?

Looking to do a basic Hex analyis with some random points within the Gulf of Mexico. I created a hex grid from MMQGIS Under my Vector tool - Analysis tools, I dont have Points in Polygon. Is it ...
5
votes
1answer
275 views

Open project made on OSX lion on a windows computer with QGIS

I made a project in my personal computer (mac OS Xlion) and now I would like to modify it on my work computer (windows 7), Is it possible?
4
votes
1answer
422 views

Is it possible to save frequently used expressions in QGIS?

Is there any way to save frequently used expressions in the selection or field calculator dialogs? Obviously I can cut and paste them into a file where I might save them, but I mean within the context ...
3
votes
1answer
909 views

Why does “Join attributes by location” fail to compute sums when used in a model?

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 ...
3
votes
1answer
2k views

How to style a vector layer in QGIS using hexadecimal color code stored in attribute?

I have a polygon shapefile storing hexadecimal color codes in a specific attribute. gid | label | color ---------+-----------+------------ 1 | Crops | #FF5F2C 2 | Forest ...