Stack Exchange Network

Stack Exchange network consists of 174 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

Questions tagged [qgis-3.0]

For questions about Version 3.0 of QGIS

1
vote
1answer
20 views

How do I change 'Coordinate Display' for a project, programatically?

From the user interface in QGIS, I can change the coordinate display (unit) for a project by going to: Project > Properties... > General (tab) and under the Coordinate Display section can ...
4
votes
1answer
44 views

Updating Algorithm list in pyqgis3?

I am attempting to run a union operation in a standalone pyqgis script and I'm receiving this error: Algorithm qgis:union not found The union operation fails with this code: params = { 'INPUT' ...
6
votes
1answer
313 views

Why “Export as Python script” button is unaccessible in QGIS 3.0/3.1 Modeler by default?

In QGIS 3.0, "Processing Modeler" window has no "Export as Python script" button unlike QGIS 2.x. If you look at the codes (in DlgModeler.ui and ModelerDialog.py files), you see the code lines ...
0
votes
1answer
71 views

Using v.split in GRASS?

I'm trying to split several lines into bits of a maximum given length using v.split. First, I got this bug: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe8 in position... which was ...
2
votes
0answers
40 views

Does the Clipper plugin for QGIS work with Shapefile layers?

I created 2 overlapped polygons in one Shapefile layer, run the intersection tool with another layer and then run the Clipper plugin. This causes the error: TypeError: MultiPolygon geometry cannot be ...
0
votes
0answers
6 views

PyQGIS - Print Layout Items. setExtent() and attemptResize()

I'm trying to arrange some map items onto a print layout. Let's start with the map item itself. Here is my code to add a map item to the print layout. Specifically I have questions about the ...
6
votes
1answer
3k views

Orfeo toolbox (OTB) algorithms in QGIS 3.0?

I've been trying to understand if the OTB (Orfeo toolbox) algorithms can be used in QGIS 3.0.0-Girona but found no official documentation about it. Under the 'Available QGIS Data Provider Plugins' (...
3
votes
2answers
2k views

Installing QGIS3 on a Mac with Python in Anaconda

I am trying to install QGIS3 via Kyngchaos installer. But as I install python 3.6 in anaconda, the installer cannot find it. I know I can install a new environment or use symlinks to connected to ...
3
votes
2answers
123 views

How to automaticaly create a buffer for a line in QGIS

I am creating some lines, and I would like to add a 500m buffer around thoses lines. But i need this buffer to automaticaly change if i modify my line around. Is there any solution to this?
0
votes
1answer
35 views

Automatic calculation field based on line modification within QGIS [on hold]

I have a polygon layer with every cities in my region. One of the field of this layer is the population of the city. I also have a line layer which represents some bus route I would like to ...
0
votes
0answers
19 views

Scale seems incorrect in QGIS 3.4.3 for Mac in the editing window

I've been working on a map for a few months now and decided to export it in Composer to see how it's rendering out elements like creek labels when I noticed the exported scale was vastly different ...
0
votes
1answer
40 views

How to get osm tiles in QGIS 3

I am completely lost in the dozen of solution I've found. I would like an easy solution to create an OSM basemap for my different projects with nice styling. I work directly on my computer, no ...
0
votes
1answer
68 views

Exporting into Excel file from PyQGIS?

The following code allows me to save a text file with .xls extension in Python. When I open it, I receive the following warning: The file you are trying to open, is in a different format than ...
1
vote
1answer
40 views

CAD Editing plugin in QGIS 3.0

Is there a plugin with CAD tools for editing vector entities such as lines and polygons in QGIS 3.0?
1
vote
1answer
22 views

PyQGIS - Add items to print layout

I have created a blank print layout, now I want to add items to it like a map, legend, etc. Here is my code so far to create a new print layout, this works just fine: #This creates a new print ...
1
vote
1answer
51 views

Creating points along line at ellipsoidal distance

I need to create points along a polyline in QGIS 3 at every 1000m of ellipsoidal distance and have tried several tools, as suggested in other answers: Points along geometry QChainage plugin Convert ...
2
votes
1answer
28 views

QGIS general character encoding

This isn't a particularly major issue, but I've had this thing nagging me for a while. When looking at QGIS 3.4's global variables, user_full_name is assigned my given and surname, which includes a ...
1
vote
0answers
38 views

Strange behaviour viewing world map with EPSG:4326

I'm trying to visualise/convert EPSG:3857 map tiles to EPSG:4326, but am experiencing strange behavior in that I don't think the most zoomed out view of the world is using the correct CRS/Auth ID. ...
0
votes
0answers
12 views

QGIS 3.4 - Access Violation no RTTI data

i'm used to writing in C for embedded systems, so python is somewhat new to me. I've built up this script in QGIS script editor following the template. However, when I run the script I get an Access ...
1
vote
1answer
32 views

Writing pyQGIS 3 script to modify layer (add field and feel it) inside QGIS?

I have the following PyQGIS script with QGIS 3 that tries to ask for a layer, add a new field in that layer and modify the value of this field. But the code doesn't work. I get either Seems there is ...
0
votes
0answers
9 views

How to increase the header height for an Layout Attribute Table in QGIS 3?

I need to increase the header height because the header text has 2 lines. The only way I could find to increase it was use cell margins. But that affects all rows. How to increase the height of the ...
1
vote
0answers
12 views

QGIS 3.4.3 touch zoom and pan

QGIS 3.4.3 touch zoom and pan missing from Map Navigation Toolbar is this a permanent loss or will there be a fix?
4
votes
1answer
114 views

RGB TIFF goes black when zoomed out in QGIS 3.4!

Am importing a RGB TIFF into QGIS 3.4 and when I zoom in I can see the image properly, however, when I zoom out the layer turns black (most of it) and red (a small portion). After doing some search I ...
1
vote
1answer
40 views

Method asPoint().x() doesn't work in QGIS 3.4.3 but did in 3.4.1

I have built a plugin which does essentially this equal sized polygons along line Main parts of the code are from user lejedi76 I have used this plugin for months now and it worked as expected. ...
2
votes
1answer
150 views

QGIS crashed when click on anything in plugin manager

When I click on anything inside of the plugin manager QGIS crashes immediately. (QGIS 3.0.3, arch linux) Running from the command line this error shows up on crashing: free(): invalid pointer ...
1
vote
1answer
53 views

Draw rectangles with Shape Digitizing Toolbar and using a snapping function in QGIS 3

I draw rectangles with the Shape Digitizing Toolbar. In QGIS 3 there is a Snapping Toolbar which provides a snapping function. But unfortunately it is not possible to use both together. So whenever I ...
0
votes
0answers
25 views

QGIS plugin - Works on PC, not on Mac

I'm adding some functionality to an existing QGIS plugin (EcoValuator from Key-Log Economics). After playing with the existing version of the plugin, it works on a PC, but not on a Mac. The issue is ...
4
votes
2answers
131 views

QGIS Joined Layer not displaying points visible on pre-join layer (No Extent)

I have a shp file which is the output of the Toolbox Check validity tool in QGIS 3.4.3 The points display for me correctly but if I then join the layer with a csv attribute using the toolbox Join ...
0
votes
2answers
39 views

Applying SVG marker as additional symbol to polygon layer in QGIS 3

I would like to add SVG markers as an additional symbol to a polygon layer. The polygon layer is rendered with a categorized symbol renderer with different fill-color, and I want to add SVG markers ...
1
vote
0answers
13 views

Using formatting option 'aligned' in 'to_dms' function in QGIS 3.4.2

Using formatting option 'aligned' in the expression: to_dms(x(transform($geometry,'EPSG:32632','EPSG:4230')), 'x', 2, 'aligned') not only is the alignment of degrees, minutes, seconds as expected, ...
3
votes
1answer
24 views

MMQGIS Geocode is failing in QGIS 3

I am facing troubles geocoding the CSV file in QGIS 3 with MMQGIS (OpenStreetMap). Images below are showing my workflow and the problem that I am encountering. I am getting the following error: ...
3
votes
1answer
75 views

Install QGIS plugin manually - Package not available in Plugin Manager

If it is helpful, I am using QGIS 3.4.3 (Madeira) and MacOS High Sierra v10.13.6 I am trying to install a QGIS plugin manually, I've been using the instructions from the PyQGIS Programmer's Guide by ...
3
votes
1answer
534 views

Compiling resources in QGIS 2.99 (Windows) for creating plugin?

I tried out to create, for Windows, the Where Am I? QGIS 2.99 plugin (similar to Gary Sherman's book) by using Plugin Builder 3. In spite of being created, it was generated an error that it can be ...
1
vote
0answers
23 views

Opening template project with PyQGIS in QGIS 3?

What do I need to do to open a project-file as a template with PyQGIS in QGIS 3? I am able to open a project like this: project = QgsProject.instance() project.read('C:/path/to/my/project.qgs') But ...
11
votes
1answer
1k views

R Scripts in QGIS 3.0?

It seems the Processing options in QGIS 3.0 no longer include R Scripts (they are not listed as available along with SAGA, GRASS, and GDAL). Is this a change in this version of QGIS or have I had a ...
2
votes
1answer
96 views

QProgressDialog in QGIS 3.0 not updating

I am using a QProgressDialog to show the progress of a routine that is running. I found this very helpful question/answer how-to-show-a-moving-progress-bar-in-qgis, but I can not reproduce successful ...
2
votes
0answers
23 views

Showing split polygons in different layers in QGIS

I used the split feature to split a polygon into two parts. Is it possible to show the split parts in sub-layers in the layers panel, so that I can hide them individually? I am using QGIS 3.
1
vote
1answer
28 views

Inputting CSV in QGIS graphical modeler and defining its geometry [duplicate]

Is it possible to have a model in QGIS graphical modeller which accepts a CSV with geometry fields and then allows you to use them for the rest of the model as if it was a vector file? This is ...
0
votes
0answers
36 views

Looping through Clip Raster By Mask function

I created a script to loop through the Clip Raster By Mask function. I assign my personal files to the variables and use a nested for loop to iterate through the feature ID numbers in my selected ...
1
vote
1answer
41 views

Is there any plugin that plots a profile from point survey data in QGIS 3

I used to work with the plugin ProfileFromPoints, but it is not avaible 8or updated) in Qgis 3. I wonder if there is another one which does the same or if there is an easy (foolproof) way to use the ...
1
vote
1answer
52 views

Compute 3D seismic fold with QGIS and Python

Computing 3D seismic fold is quite straight forward, for those unfamiliar with the concept, below is a brief explanation. Background information (Seismic 101) : Seismic Fold: Basically, I have (...
0
votes
1answer
32 views

PosGIS KNN returns different results from QGIS hub spoke function

Following example here I have tried to get nearest neighbours where code is; CREATE TABLE model.hub_spoke_spokes3f AS SELECT hub.id AS hub_id, spoke.id, spoke.point_geom, ST_Distance(hub....
1
vote
2answers
77 views

Connect multipart polygon with lines to one label

I have several one-part and multipart polygons that I want to label. I Set X and Y values to move the label to a certain position and want to connect the label to the polygon using the following ...
4
votes
1answer
139 views

PostGIS table shows twice in QGIS Browser panel

I've observed for a while that for many (but not all) of my tables, QGIS 3 (2.99) shows the same table name twice in the Browser Panel on the left, when I expand my PostGIS data source. The first ...
0
votes
0answers
33 views

QGIS 3 - Variables in rule-based rendering?

I'll try and lay this out clearly, I have most of it covered, but there's a very specific thing I'm looking for in the rules - whether or not it can be done and if so, how? Key things I have done and/...
1
vote
1answer
42 views

Export MultiPolygon data as WKT from QGIS 3

I have the polygon data for the city of Kamloops in QGIS 3. When I try to copy features of this polygon and try to paste it over here: https://arthur-e.github.io/Wicket/sandbox-gmaps3.html I don't get ...
1
vote
1answer
50 views

How to Create Gradient map from GRID file in QGIS-3 Above?

I have a very important Question. I have a GRD file which can be opened in SURFER or QGIS or GIS. The problem is that how can I customize and make my grid file perfect? Here I have two photos which ...
2
votes
0answers
27 views

How to create a valid QgsVectorLayer from a PostgreSQL view?

I am attempting to create a QgsVectorLayer with the same code as I am using for a PostgreSQL table, which works correctly and the isValid() method on the layer returns true. uri=QgsDataSourceUri() ...
2
votes
1answer
38 views

Method to convert all 'overlapping' points to exact same geometry in QGIS 3.4

I have a point vector layer with approximately 2.5 million points, many of which share the same or a very similar geometry (within 1 m of each other). I would like to know if I can bulk amend the ...
2
votes
1answer
48 views

Progress reporting in QGIS 3.0

I would like to provide the user of a plugin with progress status using messages and a progress bar. My plugin processes several files using memory files, processing, writing to disk etc. It all ...