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
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

Questions tagged [qgis-2]

Version 2.x of QGIS (previously Quantum GIS)

4
votes
1answer
154 views

QGIS how to handle circular but non-closed lines

I use QGIS 2.18.3 and I have a shapefile with around 30,000 lines and a lot of invalid geometries. It is imported from a CAD project. I managed to solve most of the invalidities with the break ...
1
vote
0answers
8 views

Cannot find Grass7 folder in QGIS 2.18 content folder

I have freshly re-installed QGIS 2.18.28 in the prescribed order. I was under the impression Grass7 in included in one of the install packages. But when trying to point QGIS to the grass7 folder under ...
1
vote
0answers
7 views

QGIS quit unexpectedly

Running QGIS 2.18 on Mac OS 10.14. Python 2.7 and GDAL 2.1 installed. Trying to clip raster by polygon. (raster--> extraction --> clipper) Get error message. ("qgis 2.18 clipper The process failed ...
3
votes
1answer
6k views

Intersection error QGIS - invalid geometries that are actually valid

I'm trying to intersect two vector layers (having the same CRS EPSG:4326 WGS 84, in QGIS 2.18.10) but I get this error in the log: Input layer A contains invalid geometries (feature 52). Unable to ...
-5
votes
0answers
27 views

another layer dependent field values in QGIS [on hold]

Could you please help me in achieving automation written in point no 5 of this query. Query in QGIS
0
votes
0answers
17 views

Loop a group of layers and keep another layer on

While using loop visible layer plugin, it simply makes a loop of a predefined group of layers, rest of the layers are turned off. What I want is to keep a vector layer on and visible all the time ...
1
vote
0answers
42 views

Copying features certain number of times between layers in QGIS

On the image below, there are two layers showing the transportation network Red | current | only important objects | geometry repeats/overlaps Blue | new | required and other objects | ...
3
votes
0answers
19 views

QGIS tile cache not working

I'm new to QGIS and work on an air-gapped system where I have access only to QGIS 2.14.9-Essen. I create a WMS layer, which "works" but performance is abysmal. So I enable caching (Settings > Network) ...
1
vote
1answer
42 views

Analytical hierarchy process tool - SAGA. How to configure Pairwise comparisons table?

What is the configuration and extension (.txt, .csv ...) of the Pairwise comparisons table file requested by the SAGA AHP tool- Analytical Hierarchy Process - in QGIS? Are there examples of ...
9
votes
2answers
8k 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 ...
1
vote
0answers
371 views

Colliding labels for point features in QGIS

I have a layer (point features) containing various points of interest (POIs), some of them have the exact same location. I would like to map these POIs and add a label showing their names. However, ...
1
vote
0answers
22 views

Is it possible to put grid lines with coordinates in a PyQGIS standalone script?

I just want to know is it possible to put gridlines and border with coordinates (lat, lon) in an image in a standalone pyqgis script. I have checked almost all cookbooks about python ang qgis and ...
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 ...
1
vote
1answer
31 views

How are the joined results different between choosing “Only keep matching records” and “Keep all records”?

I don't really understand the main difference between these two functions? What are the key differences between these two options and why are they different? Like what makes these two so different ...
-1
votes
1answer
53 views

Importing animated GIFs in QGIS

Is it possible to import a animated GIF into QGIS? And is it also possible to georeference it, to have it on the right place?
3
votes
1answer
1k views

QGIS 2.10.1 Copy and Paste Problem - Attributes not showing

I have two shp layers with different numbers of fields and slightly different attributes of those field, like the column name or field length. I arranged them so they are in the same order and now ...
3
votes
2answers
88 views

Calculating point layer values aggregated by sub-polygons in QGIS 2

I simply have a polygon layer BereichBerechnung with a field "Are_Number" a point layer EW2017 with a field "EWjeAdr" In QGIS with a Virtual Layer, I want to calculate the sum of the field "EWjeAdr" ...
1
vote
2answers
702 views

Calculating drive time in QGIS

I have more than 3000 points that spread in in a very big area. I need to find all the points (blue) that are in distance of 50 minute drive time, from the stores (green stars). I want to calculate it ...
0
votes
2answers
679 views

GRASS New/Open Mapset not available ( QGIS 2.18.7) on Mac OS

I have QGIS 2.18 and the option to create a New Mapset is unavailable to me. GRASS is installed but when I go to the Plug-Ins>GRASS only Open GRASS Tools and GRASS Options are available to me. These ...
2
votes
1answer
52 views

UNION two LEFT JOINs as Virtual Layer in QGIS

In QGIS 2.18, there are two layers, e.g. "Locations" and "Connections" "Locations" has values Id | Dimension --------------- 1 | 4 2 | 8 3 | 2 "Connections" maintains attributes ...
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? ...
2
votes
1answer
54 views

Creating an Action in QGIS with multiple Expression?

I want to create an action in QGIS with multiple Expression. But unable to do so. I want to open images from two different directories with one action. Is it possible? How can I do so? e.g. Type : ...
0
votes
0answers
4 views

QGIS froze while downloading landsat data with semi-automatic classifications plugin

Landsat data download in Semi automatic classifications plugin was interrupted because QGIS froze. Is it possible to resume download or must I start all over again ? How do I reconnect to the ...
1
vote
2answers
35 views

QGIS2 to QGIS3 plugin migration issue AttributeError: type object 'QObject' has no attribute 'connect' [duplicate]

I am trying to migrate a plugin. I have these two lines: QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), Configuration.accept) QtCore.QObject.connect(self.buttonBox, ...
1
vote
0answers
35 views

How to switch on snap option in QGIS 2.18 when creating customize polygon

How to switch on snap option in QGIS 2.18 when creating customize polygon as in: class customPoly(QgsMapToolEmitPoint): def __init__(self, iface): self.iface = iface QgsMapToolEmitPoint....
1
vote
0answers
34 views

Labelling layer not from attribute fields QGIS API v2.14?

How to label vector layer with my own values that aren't stored in the attribute fields?
1
vote
1answer
21 views

Trying to find the Qt5 version of QVBoxLayout

Migrating a plugin and started getting the error AttributeError: module 'qgis.PyQt.QtGui' has no attribute 'QVBoxLayout' I cannot find this one in the API changes I tied using qgis.PyQt5.QtGui but ...
1
vote
1answer
18 views

TypeError: qRegisterResourceData(int, bytes, bytes, bytes): argument 2 has unexpected type 'str'

Similar question here, I tried the suggested answer but it didn't work for my situation. updating plugin from qgis 2 to 3. qRegisterResourceData . argument 2 has unexpected type 'str' I am ...
1
vote
0answers
24 views

QGIS 2.18 - Can't get click coordinates from mapCanvas

Trying to get click coordinates from map canvas but code is not working. Newbie for Python, pyqgis, pyqt I already check these topics but still code is NOT working 1 - QGIS 3 Get coordinates from ...
2
votes
1answer
51 views

Geopackage - select on geometry column returns null

In DB Manager in QGIS 2.18.26 I want to select geometries in geopackage table. The returned geometry column is null but the source layer can be loaded as a geometry table in Qgis and i can read the ...
2
votes
1answer
47 views

Layers render very slowly when importing from sql

I am trying to get a handle on importing layers into qgis 2.6 using the "Add MSSQL Spatial Layer" option. I was able to import a layer successfully, but it seems to take a long time to render. Is ...
3
votes
4answers
2k views

System variable PATH overwritten in QGIS?

The system env variable 'PATH' seems to be overwritten in Qgis, replacing it with their own values. Not sure if it was intended or not. Anyway in version 2.2, I could solve it by go into settings and ...
2
votes
0answers
240 views

Qgis Profile Tool plugin with wrong units

I am using qgis 2.18. I installed the plugin Profile Tool and i am trying to do a terrain profile from a DEM. I am working in projection WGS 84. The profile i made with that plugin doesn't have the ...
6
votes
4answers
9k 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 ...
1
vote
2answers
39 views

qgis_version_2: add layer or group of layers always on the top of the legendInterface / Insert the layer at the top of the ToC

I have a code which is adding raster layeror group of raster layers, its working fine. I want to know if there is a way to add layer or group of the layers always on the top of the legend Interface? ...
3
votes
1answer
554 views

Setting default raster layer style in QGIS?

I am trying to set up a QGIS project with a default raster layer style so that I can add additional raster layers (which all have the exact same format but with different names) and they will ...
4
votes
1answer
150 views

Filter vector layer by searching through complete attribute table - limitations and improvements

In a case were I have a shapefile with a lot of attributes (predominantly text), also I don't have any information about the structure and I don't have any idea in which attribute I have to search/...
1
vote
0answers
56 views

Integrating User Defined Coordinate System into PyQGIS?

Here is my current code: #Loading of post-wrf(raster) files starts here crs = 'USER:100000' QSettings().setValue('/Projections/defaultBehaviour', 'useGlobal') QSettings().setValue('/Projections/...
0
votes
0answers
26 views

QGIS server doesn't publish layers, that come from WMS source

I have a QGIS 2 project, that contains some layers from local sources, and a couple of "background layers" that come from "external" WMS sources. If I publish this project in QGIS server 2 the local ...
3
votes
1answer
545 views

Change default layer name in QGIS 2.18

In QGIS 2.18, new vector layers resulting from QGIS tools have a default name related to the corresponding tool. For example, when I perform the "Lines to polygons" operation (under QGIS Vector menu), ...
1
vote
1answer
39 views

Counting features within other features

I've several files composed of elements like the one below which I'm trying to make sense of (essentially a very simple microtopography study). I've vectorised the image with lots of separate lines ...
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 ...
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?
3
votes
2answers
9k views

Exporting high-resolution world map image from QGIS?

I'm trying to get some (very) large world map images (think 10k x 10k pixels etc), but can't seem to do it with QGIS. Manually adding smaller images to a larger one works (albeit slowly) for ...
3
votes
1answer
66 views

Counting number of roads between two points using QGIS

I use QGIS 2.18 and I have a point shapefile of many animal locations and a shapefile of roads. I want to use QGIS to tell me how many roads are between each pair of animal locations. So, basically ...
0
votes
1answer
35 views

KML polygon rainbow filled colors is showing only as simple color?

I draw filled color contour in Surfer application I imported this file to Google Earth as .kml file There is no problem so far I tried to import the same file to QGIS 2.18.28 But the colors is not ...
0
votes
1answer
37 views

Preserving geometry with Virtual Layer in QGIS 2

There is a polygon layer "Union23" that was created with 'Union' tool. Layer's attribute table includes the following values. My effort is simply to aggregate those polygons by "FLAECHEID" field ...
1
vote
1answer
90 views

Inherited values between polygons in QGIS? [duplicate]

In this project, I have three polygons, see the image below "Polygons_From", includes input attributes, i.g. "Value_1", "Value_2", "Value_3", and $area for each quadrate (on the image there are two ...
5
votes
2answers
190 views

Adjusting flow map styles in QGIS 2

In one project, I am trying to adopt marvellous styles for flow maps created by @underdark a.k.a. Anita Graser. At this moment I have the following output Shapefile was created with the usage of ...