Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [qgis-2]

Version 2.x of QGIS (previously Quantum GIS)

36
votes
4answers
56k 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 ...
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 ...
30
votes
2answers
18k views

Where is the Merge selected features button in QGIS 2.2?

I can't seem to find the "Merge selected features" button. I need to merge several polygons inside a shapefile and can't find how to do it in this version. (I was running on Wroclaw until 2.2). Is ...
20
votes
1answer
3k views

Can PostGIS and QGIS provide dependable multi-user editing?

After considering a few options, I'm trying to give my 15-20 QGIS 2.2 users the ability to concurrently view/edit one or two basic point PostGIS layers, largest one has just 16,000 records. I've ...
20
votes
1answer
392 views

Performing QGIS modeler multiple raster calculations with data from external CSV?

I need to perform multiple calculations on a set of rasters based on values in a CSV metadata file. I'm using the QGIS graphical modeler and can call a specific field in a CSV with the Table and ...
19
votes
0answers
201 views

Output formats for QGIS Heatmap plugin not appearing in drop-drown in Ubuntu [duplicate]

I've been trying to use the heatmap plugin on QGIS (2.8.2) on Ubuntu(14.04) but the drop down for the output formats doesn't get populated. Selecting the drop-down allows me to press OK on the ...
16
votes
2answers
13k views

QGIS Filtering Multiple Values using Query Builder

In the "Query Builder" I can currently filter on value from the "Values List", but I'd like to be able to filter for multiple values at once. How can I go about doing this using the SQL and "Operator'...
15
votes
1answer
721 views

Showing only uppercase text as labels in QGIS?

Using QGIS 2.14 and see there is now rule based labelling. I wish to show labels of towns that have capital letters (eg CRAWLEY) and not show the labels of towns with lowercase letters (eg Faygate) ...
14
votes
2answers
1k views

Is it possible to write a label expression in qgis that displays the label at a given coordinate?

I am using the QGIS expression builder for the label properties of my data. Is it possible to put different parts of the label in different coordinates on the map? For instance I have a linestring ...
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 = ...
12
votes
2answers
2k views

Setting a default value in a QGIS field

I would like to add in a layer's field a default value. I mean, every time a new feature is created, that field would be automatically filled with the default value. In my case the default value ...
12
votes
2answers
1k views

Label Blocking in QGIS?

Does anyone know how the 'Blocking' label style in QGIS 2.16 works? I've got a polygon boundary layer and would like to keep any labels from overlapping the outline. I've turned blocking on for the ...
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 ...
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 ...
11
votes
2answers
422 views

Setting width of layers panel in QGIS?

When I open QGIS, the Layers Panel defaults to a width that doesn't show the "Remove Layer/Group" button. So I have to resize the panel to show the button every time I open QGIS. Is it possible to ...
11
votes
6answers
6k views

Impossible to sum rasters because of nodata pixels

I have a set of rasters (.vrt) with daily soil moisture data. I want to sum the pixels of all rasters in order to have a measure by month. However, the whole world is not covered each day, which ...
11
votes
3answers
2k views

Getting points-touching-a-line attributes back to lines layer using QGIS?

I'm using QGIS 2.14.4-Essen. I have two layers: points.shp that contains points with a YEAR column lines.shp that contains lines that exactly connect the points from points.shp I would like to get ...
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 ...
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 ...
10
votes
1answer
1k views

Creating a temporay layer out of a selection in QGIS

I want to create a tempory layer out of an existing layer and only get those features from the existing layer, which are selected. I know that ArcGIS has this functionality that you can create a layer ...
10
votes
1answer
5k views

Creating several maps showing different layers but same area using QGIS?

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 ...
10
votes
1answer
1k 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 ...
10
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 ...
9
votes
7answers
2k views

Is there a quick way to clear all attributes from a layer but leave the polygons in place?

I have a Shapefile layer in QGIS 2.6 with several polygons, each of which has data in over 100 fields. I need to create a new layer with all the same polygons, but with all their data fields blank (...
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 ...
9
votes
3answers
3k views

Performing a Spatial Query in a loop in PyQGIS

What I am trying to do: loop through a point shapefile and select each point that falls into a polygon. The following code is inspired by a spatial query example I found in a book: mitte_path = r"D:\...
9
votes
3answers
9k views

Is it possible to rotate the canvas in QGIS

Can the canvas be rotated so north is pointing in some other direction than defined by the projection? This question answers with respect to the composer, but not the canvas. There is a related 5 year ...
9
votes
2answers
6k 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 ...
9
votes
1answer
38k views

How to put North Arrow and Scale on map in COMPOSER in QGIS 2.2.0

I am new to QGIS and the questions asked and answered here about the North Arrow do not seem to help me solve my problem below. In the main mapping pane of QGIS 2.2.0 Valmiera, I can add the scale ...
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 ...
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 ...
9
votes
2answers
1k views

Starting 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? ...
9
votes
2answers
9k views

Is there a way in qgis 2.0 to prevent overlapping labels?

Is there a way in qgis 2.0 to prevent overlapping labels? I have a layer with a large geographical extent, which means a hell of a lot of labels. Many of them collide and it looks really bad. Is ...
9
votes
0answers
2k views

Is it possible to stop an algorithm midway through processing in QGIS? [duplicate]

This question come about do to an annoying though infrequent issue I have been having in QGIS. On occasion, I will begin processing a tool that will take some time to run but realize midway through ...
8
votes
1answer
746 views

Removing Santa hat from QGIS icon?

I just upgraded to QGIS 2.18.1 Las Palmas. This comes with a Santa hat on the icon in the top right corner and windows bar. Is it possible to remove this from my installation?
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 ...
8
votes
4answers
63k 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?
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....
8
votes
1answer
732 views

Clearing Recently used coordinate reference systems using QGIS?

After using some non usual SRC for demonstration purpose, I wish to clear my "Recently used coordinate reference systems" list for the sake of praticity. Is it possible? I am using QGIS 2.10.1.
8
votes
1answer
4k views

What's the QGIS Legend Format Syntax to label percentage values?

I asked a question about formatting legend text a while back and I'm happy to see the issue has been solved in QGIS 2.6: How to remove trailing zeros from QGIS Graduated Style Class labels? But I'm ...
8
votes
1answer
15k views

Create a DEM from Point Data?

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

How to find the watershed area for each point in the river network using DEM?

Update#1: Thanks, Micha, I have followed your instruction and successfully use the modules in GRASS. I use r.watershed to get the basin raster and the drainage line: and I use r.water.outlet to get ...
8
votes
1answer
181 views

The longest straight line (L) within a polygon and the longest perpendicular line (T) to L

I'm mapping elongated glaciological features within QGIS 2.18.22 and I need to measure the longest straight line (L) and the longest perpendicular line (T) to L (as illustrated in the picture) within ...
8
votes
1answer
930 views

Where is this raster offset being introduced in the QGIS processing toolbox?

I'm using the (awesome!) processing toolbox in QGIS 2.0 to reclassify some NoData values in a raster from -9999 to 0, but at some point in the process there's an offset of about 0.2 degrees being ...
7
votes
3answers
877 views

What happened to QGIS 2.x LTR?

I've been using QGIS 2.x LTR version for quite some time now (mostly for Lizmap webclient because 3.x didn't perform as well), but today as I wanted to install QGIS on another PC, I realized I couldn'...
7
votes
3answers
3k views

Seeking keyboard shortcut in QGIS for opening attribute table?

Is there a keyboard shortcut for opening an attribute table for a layer in QGIS 2.18? I'd like to avoid having to right-click on my layer and then use the drop-down menu to select "Open Attribute ...
7
votes
3answers
12k views

How to resize the map item in QGIS print composer without changing scale?

Is it possible to lock the scale in the QGIS 2.0.1 print composer? Every time I resize the map, the scale is adjusted. This makes trying out different map layouts really annoying.
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. ...