Questions tagged [qgis-2]

Version 2.x of QGIS (previously Quantum GIS)

Filter by
Sorted by
Tagged with
1
vote
0answers
31 views

Is there a tool to cut a polygon with the outline of a raster layer?

I would like my polygon layer to be cut into two where the end of the raster layer meets the polygon, is it possible? I've tried to polygonize my raster layer, but that doesn't seem to work. Any ...
0
votes
0answers
28 views

Loading line and multipolygons into QGIS on Raspbian GNU/Linux 10 (buster)

I try to load line and multipolygon shapefile layer to QGIS in Raspbian GNU/Linux 10 (buster) and it appear like this: Although I use the same shapefile layer in Windows 10 and it load without any ...
1
vote
1answer
35 views

QGIS shows the same label twice

In QGIS 2.18, I have a shapefile of lines whose attributes are the lengths (in Km) of the lines. When displaying the labels of this attribute they appear repeated, as seen below: How do I get the ...
2
votes
0answers
36 views

When does a Python script in QGIS execute drawing of QgsRubberBand?

I have a script which has an unrelated error after the draw_polygon function. I don't care about the error at the moment because I want to see the current results. For some reason my draw function ...
1
vote
0answers
21 views

Find Topology error in polygon layer

I try to find topology error in this polygon layer using QGIS 2.18 with topology rule of "must not overlap": but i don't understand why with the Topology checker, only several areas marked in red, ...
2
votes
0answers
57 views

Saving what is inside a polygon coordinates as an image?

I am trying to get an image from inside a polygon. TLDR; What I am trying to do: save what's inside a polygon as an image. What is happening now: I am only able to save the canvas as an image. ...
1
vote
0answers
9 views

Saving a form .ui file with relative path?

My company uses QGIS 2.18 (soon to upgrade to 3.4) and I've designed a form to make data entry for our survey field staff a little less hateful. The .ui file is saved on a network drive, and as long ...
1
vote
1answer
32 views

Turn string data (of GPS coordinates) into a GPS tracker = frozen map. QGIS2.14/Py2.7/Win7/LAN

I am currently involved in a student project which is to turn string GPS coordinates into a GPS tracker. This is my current work: First, the UDP data is shared through a LAN (No internet available) ...
0
votes
0answers
55 views

Login as another user in PostGIS using QGIS 2.18 without restart

I have a PostGIS DB with three roles: admin, user and readonly. When I set up a connection to this database via "Add PostGIS layer" this connection is saved as it should be. So I login as admin to ...
1
vote
1answer
47 views

Where is config file for QGIS 2.18?

I search the config (.ini) file for QGIS 2.18 on my pc. For QGIS 3.4.8 the file is stored under this path C:\Users\AppData\Roaming\QGIS\QGIS3\profiles\default\QGIS\QGIS3 I can´t find this file for ...
0
votes
1answer
64 views

Error Updating the Attributes value [closed]

The code below is not working: This code doesn't affect the table at all layer = point_layer3 selected_feature = layer.selectedFeatures() print(len(selected_feature)) layer.startEditing() for ...
0
votes
0answers
26 views

Labelling only the selected features with custom text using pyqgis

I want some alternate to this code as this code just labels only the current feature in the loop . FEATURES = point_layer3.selectedFeatures() for f in FEATURES: total = f['parkeer_approx'...
2
votes
0answers
55 views

Changing color of each selected feature based on expression using PyQGIS?

Code below changes the color of all the selected features based on the last condition it satisfied instead of changing the color of the feature which satisfied the condition. for f in FEATURES: ...
2
votes
0answers
35 views

Print composer forgets layers and puts them in wrong order

I have a project that mainly consist of PostGIS tables, but also some shapefiles. All in all I have some 50 layers in use in the project. The last days, I have had problems with the print composer. ...
1
vote
2answers
53 views

Customize symbols in QGIS

I am using QGIS 2.18 and I am trying to add symbols to my map but I cant find the kind of symbols I need. Is there a way I can get symbols depicting security threats, flooding, violence?
2
votes
1answer
52 views

Saving data of original layer while buffering in QGIS?

I'm using QGIS 2.18.27. I have the following problem: I am trying to create some buffers in the city center, as you can see. And I need to calculate some statistical parameter on every buffer. As ...
3
votes
1answer
81 views

Multiple layers auto-updated when one of them is modified

I just discovered this post and I found what I searched here. But I was wondering if there was a way to have multiple layers (let's say l1, l2, l3, l4) being updated automatically when you change ...
1
vote
0answers
18 views

Keeping ids and attributes of source features when creating QgsGraph?

I followed the example in QGIS documentation for Network Analysis library to create a graph from a vector layer. When building the graph, the features of the line layer are added as arcs (edges) to ...
2
votes
2answers
59 views

Selecting lines where start and end points within polygon using Virtual Layer

In QGIS 2.18 project there are several layers, lines and polygons respectively My task is to select all lines when their start and end points are laying within polygons using Virtual Layer, see image ...
2
votes
1answer
38 views

GRASS 7.6 v.net.iso not providing output in QGIS 2.18

There are simply two layers in EPSG:31469 both are located on the Server side, see image below: points 'HST_Bestand_GK5' polylines 'vwESKN_1_25000_Teil' On my Windows 10 with QGIS 2.18 and GRASS 7.6,...
1
vote
0answers
8 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
22 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
53 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
30 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))...
3
votes
0answers
23 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
50 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
90 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
31 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
69 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
32 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
58 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
24 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 ...
0
votes
1answer
32 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
36 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
47 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
22 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
31 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
71 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
77 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('...
0
votes
0answers
45 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
12 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
16 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
17 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
27 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
65 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
46 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 ...
0
votes
1answer
99 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
95 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
88 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 : ...