Questions tagged [qgis-3]

for questions specific to the 3.x series of QGIS.

Filter by
Sorted by
Tagged with
5
votes
1answer
1k views

QGIS GRASS Processing Not Working on MacOS?

Recently upgraded to QGIS3 (3.0.2) for MacOS (High Sierra) and encountered GRASS (7.2.2) issues. Tried adding a custom variable and now when running GRASS algorithms (e.g. r.reclass) I get the ...
5
votes
1answer
3k views

Can't find OTF (on the fly) check box in QGIS 3 [duplicate]

Just updated to QGIS 3 and I am trying to sort out a projection issue. I have 2 layers, same projection but hugely different scales. My research suggests that setting the OTF check box should solve ...
4
votes
4answers
862 views

Where to track the status of Processing in QGIS 2.99?

I've understood that the processing algs are going to be implemented in the master version of qgis. What is the best way to track the status of which algs that are implemented and the plan for the ...
4
votes
3answers
3k views

Set layer visibility using QgsMapCanvasLayer in QGIS 3?

How should one migrate code using QgsMapCanvasLayer to set layer visibility? The QGIS3 API break page didn't say that QgsMapCanvasLayer is removed or replaced by another class. Yet, it is not listed ...
4
votes
1answer
4k views

Changing language settings on QGIS 3?

I'm using Window 10 Japanese OS. I would like to change the settings (menus etc.) of QGIS 3.0.1 from the default Japanese into English. I tried below but it wouldn't work.
4
votes
3answers
204 views

Calculating attribute with formula in QGIS

I want to build a QGIS formula where I calculate one attribute from 10 others, and I only need to sum them up. My Problem is, that I don't get the actual values of the attributes. I thought about ...
4
votes
2answers
2k views

Why does QGIS 3.2 “native:extractvertices” algorithm not work properly in standalone script?

I execute standalone python code (almost identical to the code in the accepted answer): The output file does not contain data, and I get this error message: Warning 6: Normalized/laundered field ...
4
votes
2answers
175 views

Adding coordinate constant to file in QGIS

i have a dxf file where the coordinate constants has been dropped from x coordinate. For example my real coordinate should read +2954632 but instead it reads as 54632. How can I add the 29 000 00 in ...
4
votes
2answers
328 views

QGIS Zanzibar how to crop?

I have georeferenced an old OS map and I have now imported the OS data shapefile for boundaries for England. How can I get rid of the extra data that extends beyond my map and just leave my scanned ...
4
votes
1answer
1k views

Getting the output layer reference returned by Processing tool

After running Processing algorithm ending up with a layer by runalg or runandload in QGIS2, run or runAndLoadResults in QGIS 3, these methods return a result which is mostly a dictionary like {'OUTPUT'...
4
votes
3answers
559 views

QGIS 3.4 : Add points to exact locations?

I would like to add several coordinates at specific British National Grid Easting and Northing values. I know this can be done by bringing in a .csv, but I want to know is there a way to manually ...
4
votes
2answers
101 views

Snapping window floating in QGIS 3.4.1?

I tried to dock the snapping panel by double-clicking on top of the panel but it's still not docking with the main QGIS window.
4
votes
2answers
2k views

Invalid geometries in QGIS 3 seems to be more prevalent than QGIS 2

I have a large polygon vector data set containing approximately 10,000 rows of data. I have used this data to run specific tasks in the QGIS 2 series (many of the Geoprocessing tools) with no issue of ...
4
votes
3answers
610 views

Qgis 3.2 atlas with set of points

I have a shapefile with 100k points. I want to create an atlas that would only show set of points having the same specific attribute. gid;geom;id_coupe;symb 3572;"POINT(1.79008147341714 5.93)";"...
4
votes
1answer
3k views

QgsVectorFileWriter.writeAsVectorFormat differents QGIS 2 QGIS 3

A long time ago I wrote a plugin for my own use. The plugin works fine in QGIS 2.18 but not in QGIS 3.1. I used the script 2to3 and solved most problems.The only problem I am left with is the ...
4
votes
1answer
987 views

Reading and setting label settings in PyQGIS 3?

How do I read and set label style settings in QGIS 3.0. For instance, in QGIS 2.18 i had done: props = { "labeling": "pal", "labeling/enabled": "true", "labeling/fontFamily": "Arial", ...
4
votes
2answers
1k views

Export Layout as PDF in QGIS3

I am trying to export a specific layout with python in QGIS3. But I am struggling with the QgsLayoutExport class. How do you use it? How can specify which layout should be exported? This is the code I ...
4
votes
2answers
1k views

How do I get the scale of the map item in my Layout(composer) in Qgis3?

I want to get the scale of my Layout that I created. For this I thought of using the QgsLayoutItemMap class. The problem is that the scale method in QgsLayoutItemMap always returns 0.0. I know I am ...
4
votes
1answer
77 views

Organize all dialogs in one package QGIS 3 Plugin

To organize better the code in my QGIS 3 Plugin, I tried to put all dialogs in one package called dialogs, but when I open QGIS it says ModuleNotFoundError: No module named 'dialogs' This is the code ...
4
votes
1answer
83 views

Deleting all custom CRS from QGIS

I am using a custom CRS for a project and whenever I load a .shp file, QGIS (3.8.2) creates a new custom CRS entry. As of today, I have about 10000 entries that are all the same and would like to ...
4
votes
2answers
145 views

Resizing attribute form in QGIS 3

I am working in QGIS 3.4.11 on macOS 10.14.6. For a polygonal vector layer, I have a simple autogenerated attributes form in QGIS. Every time I add a new feature in the layer, the attributes form ...
4
votes
1answer
174 views

Deleting all lines not perpendicular to another line layer using QGIS?

I am using the latest QGIS 3.4.4 I have a layer 1 which has a bunch of lines in all directions. I have another layer 2 intersecting those lines. I want to delete all the lines in layer 1 that do ...
4
votes
1answer
442 views

Making status bar text bigger in QGIS

I just installed QGIS 3.4 and the text in the status bar is way smaller than it used to be. Is there a way of increasing the text size? See comparison below: QGIS 3.4 QGIS 3.2
4
votes
1answer
425 views

Labeling only one duplicate attribute in QGIS without editing original data

I have several points (e.g. 4 bus stop positions) in one area. They all belong to the same station, so they all have the same name attribute. To avoid a mess of lables showing all the same name I only ...
4
votes
2answers
3k views

GRASS GIS Plugin not loading in QGIS 3

When starting up QGIS 3.2.2 (also tested with 3.2.3), I get the following message in the "Plugins" Log Message Window: 2018-10-18T08:03:48 WARNING Failed to load C:/OSGEO4~1/apps/qgis/plugins/...
4
votes
2answers
880 views

Adding multiple pages in QGIS print composer?

Trying to add a separate page in QGIS 3. Since the composer was changed in QGIS 3.x.x I can't find the field for multiple pages that is listed here How to add pages in print composer. Where did it ...
4
votes
1answer
5k views

QGIS - Xyz tiles - topo servers

I've installed QGIS 3 today. I found the xyz tiles option and have added e.g. google, openstreet, and ESRI Topo. These all work and show the map. Now I'm looking for a topo map, so ESRI topo is a nice ...
4
votes
1answer
96 views

Converting polygon to line in QGIS

When I'm doing "polygon to line" analysis on ArcGIS the result is individual line features but in QGIS is not. How can I execute "polygon to line" in QGIS where each polygon becomes individual line ...
4
votes
1answer
70 views

Failure importing CSV file lines

I'm trying to import a CSV file in QGIS 3.4 using the common method of "Add Layer" > "Add Delimited Text Layer". But QGIS is reading every row of the dataset as a column title, and nothing is in a row ...
4
votes
1answer
46 views

Understanding QgsRasterBlock size using PyQGIS?

I'm making a QGIS 3 processing algorithm to perform an unsupervised classification with K-Means. When I'm reading the image bands I realized that the following code only works when the image's pixel ...
4
votes
2answers
203 views

QGIS VRT values differ from the source rasters

Background: I have six adjacent DEMs (NED 1/3 arc-second .img files from The National Map). The min-max values among the six range from: 90.4 - 2100.0 Problem: Using the 3.6.2 Raster > ...
4
votes
1answer
221 views

How to create a virtual layer in QGIS that shows only the features in the extent

I am trying to make a virtual layer that is based on a map layer that only returns the features in the current map canvas extent. The purpose is to setup a Data Graph that shows statistical data of ...
4
votes
3answers
409 views

Sort layers in table of contents in QGIS 3?

When I load a bunch of layers into QGIS, they seem to load in reverse alphabetical order. I'd like to sort them alphabetically. In this thread a solution is proposed, but that does not work in QGIS 2....
4
votes
2answers
243 views

QGIS extract QTiles beyond layer extent

I'm trying to export a layer via QTiles, gotten from the Data Source Manager and connecting to (USGSHydroCached). I have QTiles set to zoom levels 0-20 and Render tiles outside of layers extent ...
4
votes
1answer
204 views

Dynamically color labels in color of features (QGIS 3.x) [duplicate]

How do I dynamically color labels in the color of the labeled feature? As you can see in the screenshot, the lines are in different colors, but the labels are just in black. As I know, I have to set ...
4
votes
2answers
503 views

Bug using Python 3.7 (from QGIS) and trying to install package with pip

I use QGIS 3.6 and Python 3.7 and I try to install a package with pip in command line tool under Windows 7 but I have the following message : Fatal Python error: initfsencoding: unable to load the ...
4
votes
1answer
332 views

Showing size of pie chart in legend of QGIS?

I'm using a pie chart map in which the size of the pie chart convey an attribute value (scaled size). Is it possible to show this classification in the legend of QGIS 3?
4
votes
1answer
489 views

How to edit geometry of multiple layers simultaneously in QGIS 3?

I have several line layers (route, pipes, cables) that share the same geometry and would like to edit them simultaneously. Is there a way to easily snap the geometry of the pipes and cables layers ...
4
votes
1answer
100 views

Styling polygon layer with symbols that indicates value of attribute of polygon?

I want the same thing, but the number of dollars shown should indicate the value of the attribute of the polygon. For example one polygon may have 2 dollar icons indicating 200 (value of an attribute, ...
4
votes
4answers
1k views

QGIS 3 shapefile clip issue

I was clipping vector layers yesterday with no problems, and now all of a sudden it doesn't want to work and keeps giving me an error stating: Feature (2) has invalid geometry. Please fix the ...
4
votes
1answer
185 views

Syntax for “fields to keep” of Intersection tool in graphical modeler

I'm working with QGIS 3.2 Bonn and try to set up a workflow with the graphic modeler. The model uses the Intersection Tool from the QGIS Geoprocessing Tools. The model works, but I don't want to ...
4
votes
1answer
805 views

How to disable “Map only” view mode?

In the view menu, there's an option called "Toggle Map Only." I selected that option to see what it looks like. This is what the entire QGIS window looks like in Map Only view: As you can see, this ...
4
votes
2answers
599 views

How to copy layer(s) to clipboard in QGIS 3.0?

In QGIS 2.18 there was plugin "Copy layers and groups to clipboard". It was allowing just in two clicks to copy/paste layer(s) with style and etc. from one project to another. Is there something ...
4
votes
1answer
189 views

Use “SRTM Downloader Plugin” with “QGIS 3.4”

Edit (TL;DR): As Gabriel De Luca pointed out in his answer there is an open GitHub ticket about the issue. I would like to use "SRTM Downloader Plugin" with "QGIS 3.4" (OS: Win7, 64-bit). Now if I ...
4
votes
1answer
77 views

Python script output to console doesn't update beyond first page in QGIS

I'm debugging a python script that includes a Print statement. I'm running the script from the QGIS python editor and expecting to see output in the QGIS python console, however once the script has ...
4
votes
2answers
162 views

Automating vector data entry in QGIS

I have a vector contour data(polyline). I want to add values to each contour lines. Means I want to digitize my contour lines with proper values. Those values are with me in a paper. I'm adding those (...
4
votes
2answers
287 views

Adding field with geometry WKT in QGIS

I have a shapefile with polygons and want to add an attribute field with the WKT in QGIS 3.4. The function geom_to_wkt in the Field Calculator isn't working and I don't know how to do it. Any ideas?
4
votes
4answers
215 views

Placing data-defined labels both by expression and manually

In my project layers (QGIS 3.6.2) I use data-defined label placement. I am trying to set up the placement as follows: By default, the placement chosen in Label Settings is used (in my case, "around ...
4
votes
1answer
151 views

Distortion of City -Boundary-Polygons proportional to population size in QGIS?

Is there a way to distort the size of polygons proportional to their population size (as in column in the attribute table)? I want to create a map that looks similar to this: the cartogram2 plugin ...
4
votes
1answer
377 views

Unable to load output layer from Python algorithm in QGIS 3

I'm building a Python algorithm for QGIS 3, to be run from the Processing Toolbox. I've finished debugging the algorithm body, which seems to work, but QGIS is unable to load its output. To summarize,...

1 3 4 5 6 7 47