Questions tagged [qgis-2]

Version 2.x of QGIS (previously Quantum GIS)

-1
votes
0answers
23 views

Coordinates do not show up as project CRS coordinates after loading in more recent QGIS version [on hold]

Ok this is driving me crazy here. I had a number of installations on Windows XP, running some LTR release of QGIS 2.8. In all installations, on-the-fly (OTF) coordinate systems transforms were enabled....
1
vote
0answers
7 views

Batch Saving Raster DTm and choosing type in QGIS 2.18

Follow on question from the following Previous question batch saving 10m DTM layers using python console I would now like to set the output of my Raster .tif files to Float32 as by default the .asc ...
3
votes
0answers
14 views

Topology checker - whole polygon highlighted rather than polygon segment

When I check for overlaps, topology checker is only identifying errors at the polygon level but not the polygon segment where the errors exist (the whole polygon is highlighted in blue). I believe ...
0
votes
0answers
18 views

QGIS 2.18.28 Dissolve Error: “-2147483645 See log for more details”

I am doing property research on a county in Texas. I have all the parcel data and am trying to dissolve by Owner Name so that I can use the info tool to quickly see all the properties a given person ...
2
votes
1answer
25 views

QGIS - Create buffer circle around particular point using its geometry

Can I create a buffer circle around a particular point using its geometry in pyQGIS? I have my code as below: myVariable = '123456' expr = QgsExpression( "\"identificatie\"={}".format(str(myVariable))...
0
votes
0answers
25 views

Trying to replicate the racial dot map in QGIS 2.18.14 [on hold]

I am trying to use QGIS 2.18.14 to recreate this map, which is supposed to depict 2010 Census Block Data, using one dot per person. I am not overly concerned with what ethnicity these people are, and ...
3
votes
0answers
22 views

Calculating direction of polygon using other features? (QGIS)

In QGIS 2 or 3 I have some DEM rasters, on top of that vector layers with plots and buildings + pin (blue one) with coordinates of building. How to calculate position of garden? Is it n, ne, e, se, s,...
2
votes
1answer
39 views

Getting coordinates on click and pass it to dialog using PyQGIS?

I am creating a plugin in which i need to get coordinates by clicking on QGIS canvas so i tried the solution mentionned at Getting coordinates by clicking on QGIS Canvas with PyQGIS? but it didn't ...
2
votes
1answer
78 views

Calculating volume of buildings using QGIS?

I am working with QGIS 2 or 3 I have DSM and DTM already so I can calculate DSM - DTM: Plus, I have shapefile with buildings' footprints. How to calculate volume of every single building using DSM-...
0
votes
1answer
28 views

Invalid syntax when trying to define a dictionary in pyQGIS code [closed]

I'm trying to run a code in which I need to use a dictionary, but the terminal acuses 'Invalid Syntax' when I try to define that dictionary. Outside of QGIS the code runs without any problems.
2
votes
1answer
65 views

QGIS very slow and stops when increasing points size / number

I used the "graduated" style option to represent data by year. Then for each year I used this method with a custom function to increase point size according to the number of points at the same ...
0
votes
0answers
24 views

Rectangular (not square) pyramid with QuickMapServices

I’m using QGIS 2.14.9 (upgrading is not an option), and QuickMapServices. I have two tile servers (one for images and one for OSM). Images work, OSM does not. I'm sure the problem is related to ...
3
votes
1answer
40 views

Using expressions to relate column to layer style in QGIS?

I have a QGIS project with N layers, each pointing to the same CSV file with columns "1_1, 2_1, ..., N_1". I would like each layer to refer to its respective column (Layer 1 -> column 1_1, and so on) ...
0
votes
0answers
23 views

How to remove “Recent Projects” saved to automatically open when starting QGIS [duplicate]

I have the version of QGIS 2.18.16 that was copied over to my computer. The original user must have had some saved projects before copying and every time I open QGIS, these Recent Projects shows as ...
-1
votes
0answers
58 views

Tile Server(XYZ)

can anyone say that use Local Address like bottom for Tile Server(xyz)?or not? How should I Add Address?? file:///C:/Folder1/Folder1/{z}/{x}/{y}.png I use QGIS2.18.
0
votes
1answer
22 views

Error message using sDNA Prepare Network

I'm preparing a road network using the sDNA Prepare Network tool on QGIS 2.18.28. My OS is Windows 10 64 bit. I get the following error message: Algorithm Prepare Network starting... ****************...
2
votes
0answers
32 views

Resolution/displaying issue with legend item in QGIS

I'm having an issue in QGIS print composer. I am using QGIS 2.18. Some of my legend items are displayed in low resolution or are partially cut off. The strange thing is that some groups of the legend ...
0
votes
0answers
39 views

Is there maximum number of points you can import from CSV to QGIS 2.18

I tried to import a CSV file which contains 4,783 rows. However, only 20 records appeared. Any one has solutions to solve this situation? How can I add all rows in QGIS delimited layer? PS: I use Mac ...
1
vote
0answers
12 views

Installerv otb 6.6.1 under QGIS 2.18.24 in Windows 7

I had installed QGIS 2.18.24 on OSGeo4W, then the OTB stand-alone binary file. In QGIS, I manually entered the directory of OTB Applications folder C:\Program Files\QGIS 2.18\apps\OTB-6.6.1-win32\lib\...
1
vote
0answers
23 views

No SAGA folder in processing options dialog box

I am using QGIS 2.18. I am facing this error while using EasyAHP: "The error occured during calculation. Please make sure that Processing Toolbox's SAGA provider is installed." But, I guess the ...
2
votes
0answers
67 views

Migrate QGIS2 projects to QGIS3

I have about 40 QGIS2 projects. If I open them with QGIS3 labels and svg icons are not displayed. I don't know if there is any other feature that is not working when upgrading to QGIS3, but I suppose ...
0
votes
1answer
50 views

Replacement for legendInterface in QGIS 3?

I am a novice to QGIS tasked with updating other developers' plugins from QGIS 2 to QGIS 3. Here's the code I need to replace: legend = self.iface.legendInterface() index = legend.addGroup('...
-1
votes
0answers
43 views

QGIS 2.18 GDAL tool path wrong. gdalbuildvrt: command not found

Can't seem to get any GDAL operation working. For example QGIS 2.18 crashes when doing a raster calculation. Also it fails to build VRT catalogue. I looked in the Plugins manager and installer what ...
0
votes
0answers
23 views

Uninstall QGIS 2.18 from mac and reinstall. Remembers settings

Relates to Mac OS 10.14. I have problems with QGIS 2.18. Plugins not working etc. (latest problem is not being able to make a virtual raster catalogue of landsat 8 tiles. Error message : "The ...
0
votes
0answers
10 views

configuration file not found

Every time at startup this message shows (and reappears a second time after clicking it away). And everytime I quit QGIS 2.18 the same message shows. How do I get rid of it ? I imagine it has to do ...
1
vote
0answers
11 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 ...
1
vote
0answers
10 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 ...
0
votes
0answers
24 views

Looping group of layers and keeping another layer on in QGIS?

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 ...
3
votes
0answers
36 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
37 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
66 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?
1
vote
1answer
60 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 ...
0
votes
0answers
5 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 ...
2
votes
1answer
66 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 : ...
1
vote
2answers
50 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

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
23 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
45 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
31 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 ...
1
vote
2answers
46 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? ...
2
votes
0answers
43 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
47 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 | ...
0
votes
0answers
39 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 ...
1
vote
0answers
60 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/...
1
vote
1answer
40 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 ...
4
votes
1answer
172 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/...
3
votes
1answer
69 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
65 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
111 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 ...
2
votes
0answers
76 views

Inverting shapefile in QGIS 2.18?

I asked a question earlier about how to invert my file "hydropolys.shp" from a vector of ocean and seas to a vector of land and got sent to here, but I am experiencing issues where using the "...