Questions tagged [qgis-2]

Version 2.x of QGIS (previously Quantum GIS)

343 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
8
votes
0answers
2k views

Exporting a 16-bit image from QGIS?

Could someone explain how to export from QGIS a 16bit image. I have imported data and coloured it as I want, but need to export it as a 16bit image, as 8bit is giving a terracing effect.I believe I ...
5
votes
0answers
525 views

Creating text buffer in legend QGIS 2.18?

I work with this polygon layer and this is my map composer: I used the labels with Text Buffer (yellow and red), and I try to find how I can make the same text buffer in the layer name in the legend. ...
5
votes
0answers
488 views

QGIS Align Rasters how to retain pixel values?

I am attempting to align and then merge a number of rasters of the same resolution and extent, but where the pixels are slightly misaligned (creating small gaps when merged). This works fine using the ...
5
votes
1answer
569 views

Postgis sequence in QGIS not working

I have a Multipolygon-Layer stored in a PostgreSQL/PostGIS database. The primary key field 'gid' is SERIAL. When trying to add a new polygon in QGIS (LYON 2.12.1 on OSX El Capitan), the attributes ...
5
votes
0answers
816 views

Programmatically removing layer from QGIS composer legend without removing it from map canvas?

I am working on a QGIS Python plugin which includes automated map production. I use a series of map templates, each of which has a main map, an overview map (with a layer set different to the main ...
4
votes
0answers
316 views

QGIS (Python) crashing when trying to iterate through layers in a thread

Version: 2.18, and I cannot upgrade to 3. I am adapting a script I found elsewhere on stackexchange which is supposed to indefinitely refresh all layers in the TOC at one-second intervals. This is ...
4
votes
0answers
230 views

Get signal on delete group on QGIS 2.18.16

I tried : QgsProject.instance().layerTreeRoot().willRemoveChildren.connect(self.onWillRemoveChildren) It works if I delete a group within in the root node. But if I delete a layer within a group ...
4
votes
0answers
172 views

QGIS 2.18.14 vector Clip analysis producing erroneous result

I am trying to perform a vector clip analysis (vector-->geoprocessing tools pull-down menu) using two complicated vector layers and am getting erroneous results. The clip 'Input layer' is shown here: ...
4
votes
0answers
584 views

Computing the slope of a road using DEM

I work with QGIS 2.14 and I want to create a map of road network showing the slope of each road with at least this scale: <3%; 3-5%; 5-7%; 7-9%; >9%. I already have a vector layer of roads and the ...
4
votes
0answers
4k views

K-Means clustering in QGIS (Attribute based clustering)

In the 2.18.4 and 2.18.5 version of QGIS K-means clustering was moved to a plugin called 'Attribute based clustering'. However, I am working with a virtual raster dataset (vrt.) and the current ...
4
votes
0answers
5k views

Is there an “undo” button in QGIS 2.18?

In ArcGIS there an option of "undo" button I seek this option in order to return my steps if it necessary. I try to find such option in the menu and didn't found any like it. What can I do?
4
votes
0answers
61 views

Is there a way to customize the Options dialog in QGIS 2.14.6?

I'm creating a deployment package to update QGIS from V2.8 (wien) to V2.14 (essen (LTR)). In QGIS 2.14 there is a new "Advanced" section under "Settings > Options", see screenshot: Can this menu ...
4
votes
0answers
706 views

Qgis 2.8.9-Wien Attribute table Update Fields Error

I can't update fields in the Attribute table. I get an error when I select Update All and Update Selected: An error occurred while evaluating the calculation string: No root node! Parsing failed? ...
4
votes
0answers
281 views

Can I change the precedence when combining “Control feature rendering order” with QGIS symbol levels?

I'm trying to produce a QGIS map style / symbology for processed openstreetmap data. For roads, I'd like to mimic how the OpenStreetMap web tile map "Standard" rendering style (produced with mapnik ...
4
votes
0answers
804 views

Zonal Statistics tool not working with QGIS?

I wanted to try the QGIS 2.14 zonal statistic tool but it doesn't work.The system says: not a sequence See log for more details The SAGA Zonal Statistic tool works fine. It also doesn't work with ...
4
votes
0answers
369 views

Rule-based labeling and the Data defined placement options are not working together (QGIS 2.12, 2.14)

After setting "Rule-based labeling" to my layer (new feature since QGIS 2.12), my data defined labeling is not working any more (see labeling tools on the right side): Going back to "Show labels for ...
4
votes
0answers
257 views

SAGA Tool in QGIS Error: Load table: Proj.4-WKT Dictionary… failed

I have some problems with running SAGA tools in QGIS. I've downloaded and installed the software via the OSGeo4W Installer. It downloaded QGIS 2.12 and Saga 2.1.2. I wanted to use the Tool "Shapes To ...
4
votes
0answers
186 views

How can I see the 'Custom Options' metadata following Save As in QGIS?

In QGIS 2.10 Pisa, I've right-clicked a layer in the TOC and used Saved As ... to save a shapefile with a new name. During this process, I used the Custom Options (Data Source and Layer) to include ...
4
votes
0answers
516 views

Different scale of basemap after exporting to PDF/Image

After creating and exporting my map to pdf/tif obviously there are different scales of the basemap in the exported file compared to the map I created in the printcomposer. See pictures... I am using ...
4
votes
0answers
1k views

How can I label the pie charts in QGIS so the labels are written under the diagrams?

How can I label the pie charts in QGIS so the labels are written under the diagrams? My pie-charts are representing localities: such as villages, towns, cities. So, I want that their names appear ...
4
votes
0answers
2k views

WMTS from MapProxy in QGIS and/or ArcGIS

My company wants to use imagery from a another company internally for a contract. That company's WMS has a 5+ second latency. Which I'm told is unacceptably slow. So I set up MapProxy and seeded the ...
4
votes
1answer
195 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 ...
3
votes
0answers
39 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 ...
3
votes
0answers
37 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,...
3
votes
0answers
243 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) ...
3
votes
0answers
165 views

Unable to compute intersection between two polygons using PyQGIS?

I have two polygons in different layers. I am trying to find the intersect between the two polygons. Below a figure showing my test case. I initially wanted to find the intersect between the green ...
3
votes
0answers
98 views

Standalone Application QgsCoordinateReferenceSystem fails without OSGeo environment

I am writing a simple standalone QGis application. My code is like this: class MainForm(QtGui.QMainWindow, Ui_MainWindow): def __init__(self): super(MainForm, self).__init__() ...
3
votes
0answers
178 views

QGIS: Cropland Data Layer - how to add class names to .tif file?

I'm working with a clip of the Cropland Data Layer (raster), which has a number for each value coded to a crop type. I want to add these crop type / class names to the .tif file (and have them show up ...
3
votes
0answers
644 views

Merging asc files in QGIS?

I am trying to merge 8 .asc files using merge option in QGIS 2.4 but when I do that it makes like contour of the file when I want to merge the files together. .ASC Files: Result after merging:
3
votes
0answers
137 views

How to transfer QGIS configurations to latest version?

I have QGIS 2.18.11 on my machine. There are saved wms, wfs and DB connections. After installing QGIS 3.0 I can see saved wms connections but no DB connection is listed in 3.0. Collegue's problem is ...
3
votes
0answers
900 views

Installing plugins for QGIS 2.18 on mac

I can't install any plugins on QGIS since updating to 2.18 (I am running High Sierra). I am connected to the QGIS Plugin Repository yet receive the error message: Plugin installation failed:Failed ...
3
votes
0answers
280 views

Why does Contours plugin crash QGIS 2.18?

I am running QGIS 2.18 on a mac and trying to use the Contours plugin. I've never had problems with it before but then I updated QGIS using Kyngchaos. Now Contours crashes QGIS when I choice "Filled ...
3
votes
0answers
182 views

QGIS Custom Qt Widgets on OSX

When I install QGIS on windows I get a bunch of custom widgets in Qt Designer On OSX I can't figure out how to get those same widgets to appear in Qt Designer. I have set my environment variables ...
3
votes
0answers
236 views

Linking “value maps” together in PostGIS/QGIS where the values are user editable?

This is related to Limiting available values in dropdown field of QGIS form according to value selected in previous field?. Even though this has been marked as resolved the answer is not what I am ...
3
votes
0answers
389 views

minidump written to C: in QGIS PLUGIN

I have created a simple QGIS script using QGIS 2.18.3 and windows 10 and it works fine without errors.But I want to move that script to another PC where I have QGIS 2.6 and windows 7. I first copy-...
3
votes
1answer
132 views

Prevent QGIS from loading WMS services when opening project

I have a QGIS project with several hundred WMS and ArcGIS MapServer layers. Every time I open the project it starts loading them one by one, which my take quite a while. Is there a way to prevent ...
3
votes
0answers
176 views

Adding field to shp subset layer using PyQGIS?

This is an independent followup from my previous question: QGIS Python generate index field I have two files (points.shp, polylines.shp), each with a variable amount of sublayers of the given ...
3
votes
0answers
239 views

Specify position of curved label in QGIS?

From this answer in 2012 underdark stated: BUT you won't be able to have curved labels anymore if you move/rotate the labels manually, as far as I know. It's now 2016, and I noticed that I can ...
3
votes
0answers
805 views

Plugins incorrectly being disabled due to “causing QGIS crash”

I have QGIS 2.14.0 installed on my machine (W7 x64, AMD FX-8150 3.6GHz, 8GB RAM, SSD) and I'm having issues with plugins not opening by default when I open QGIS. The message I get (for each plugin ...
3
votes
0answers
1k views

QGIS 2.14 fails to install on Ubuntu 14.04

My previously working installation of QGIS 2.14 on Ubuntu 14.04 suddenly failed to start QGIS. I have been trying to reinstall QGIS without success. I have tried several ways to completely uninstall ...
3
votes
0answers
357 views

QGIS 2.14 Processing plugin crashes - TypeError: must be string, not None

I've recently installed 2.14, and it worked fine for the first couple of days (Appart from Grass tools), including several program and computer reboots. Today I had this error show up Couldn't load ...
3
votes
0answers
1k views

How to rotate symbols in QGIS

I have a vector symbol that I am using rule based style with. In the Rule properties tab I click on the SVG marker and change the "rotation" which is a field I have made to handle to the rotation ...
3
votes
0answers
166 views

Raster calculators in SAGA return incorrect results

Here's a sample of my dataset (one cell) with 28 different raster values, representing 28 individual Float32 rasters with identical parameters. 0.0000264434, 0.0049953502, 0.0007529828, 0....
3
votes
0answers
380 views

How to refresh or update a vrt layer in Qgis?

When using the QGIS SpreadSheet Layers plugin, how do I update the SQLite query without closing and reopening QGIS? I cannot see a "watch file" equivalent. The plugin creates and uses a *.vrt file ...
3
votes
0answers
684 views

SAGA Raster Calculator, ifelse doesn't return specified value exactly

I am using the SAGA Raster Calculator in QGIS 2.6 to change NaN values to zero and that part is working great, however the specified 'if' value is being altered slightly. I have developed a work ...
3
votes
0answers
280 views

PyQGIS: standard and advanced linear referencing possibilities

I'm aware of the existence of the following QGIS plugins: QChainage Event layer linear referencing LRS Although, all of these tools offer some linear referencing capabilities, I find that they lack ...
3
votes
0answers
294 views

QGIS Topology checker wrong results?

I am trying to understand topology checker results and frankly i dont get it - probably i am doing something wrong. Source - Point layer Target - Polygon layer Must be inside - that is working as ...
3
votes
0answers
257 views

Editing Cursor for GPS live tracking in QGIS 2.4

I am interested in using QGIS 2.4 for vessel navigation due to its ability to display NOAA vector charts or BSB's as well as user created shapefiles. I currently oversee a project that requires ...
3
votes
0answers
867 views

QGIS 2.4.0 Mac Yosemite compatibility

I just upgraded to the Beta 2 version of MacOS 10.10 ("Yosemite"). I'm getting an error when I try to "drag and drop" shape files into QGIS. I'm running QGIS 2.4.0, GDAL 1.11, and MATPLOTLIB 1.3.1. ...

1
2 3 4 5
7