Questions tagged [qgis-3]

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

Filter by
Sorted by
Tagged with
3
votes
2answers
101 views

Automatically write attribute when creating features in QGIS

Using QGIS 3.0 I have to draw a lot of features on the map and these features have attributes that change with each entry. However, there is a part of the attribute that is the same for all features. ...
1
vote
1answer
293 views

Import of print compositions in QGIS 3.0

I installed QGIS 3.0 last week and would like to edit my projects with it. However when I try to import my saved print compositions the following message appears (see picture below). Can you tell my ...
0
votes
1answer
276 views

Debug QgsDataSourceUri as a QgsVectorLayer [closed]

I'm trying to figure out what is wrong with my code, sometimes it works sometimes it doesn't, I don't know how to debug it when it doesn't work. Basically I'm working with this code: uri = ...
3
votes
1answer
559 views

Render points (spheres) at certain height (trees) in QGIS 3.0 3D View

I succesfully rendered 3D View of Vienna city centre as shown in this tutorial by underdark . I download trees point data in GeoJSON from OSM using Overpass API. Now I want to render the points as ...
0
votes
1answer
125 views

QGIS 3 has reworked tools for loading layers. Is there and easy way to load data from PostGIS views

QGIS 3 has a new "Data Source manager" and I was hoping that it gave a better mechanism to load layers from PostGIS views but it would appear that it is just a wrapper around the old stuff that was ...
1
vote
0answers
687 views

DLL problem with QGIS 3.0 64bit (while 32bit works)

I installed the new version of QGIS 3.0 and first of all it worked all fine. After a while I tried to launch QGIS again and now the following problem appears. After clicking "OK" another window ...
0
votes
1answer
150 views

Cannot use GDAL algorithms in processing modeler (QGIS 3.0)

I am trying to run a fairly complex model in QGIS 3.0, but when I try to use a GDAL algorithm which uses the output of another algorithm as input, I get error messages about an unexpected '(' ...
1
vote
0answers
216 views

How to create irregular shape grid in QGIS 3.0?

As I mentioned in my question, I want to create a grid which I defined the row and column widths. However, difference between them are not equal. The shape example in my mind is:
3
votes
2answers
764 views

How to change the font color of an attribute field using attribute table?

I'm using QGIS 3.0.1 and I would like to change the font color of some attribute fields with a changing value in attribute table (depends on which value was entered). My idea is to use signal "...
3
votes
0answers
145 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 ...
4
votes
1answer
522 views

QGIS 3 Raster calculator output file

I am using QGIS 3 raster calculator. I write the operation I want and, when I click on the three dots to select the output layer (as usual), the program doesn't allow me to give a name and create a ...
6
votes
2answers
559 views

Finding help for QGIS 3.0?

Where do I find the help files for QGIS 3.0? The program links to the version 2.8 help files instead of the current version. There seem to be major differences between the two, and I don't want to ...
1
vote
0answers
202 views

changing projection in QGIS 3.0 not working? [closed]

I am using QGIS 3.0 and trying to modify the projection. For some reason, it's not allowing me to change to a user defined projection, it only allows me to select one of the previously defined ...
1
vote
1answer
223 views

QGIS - Add layer that is Editable and with Add Polygon Feature selected

I want to add a layer in QGIS that is editable and has Add Polygon Feature selected (by default). I can easily accomplish the editable part by this command: layer = QgsVectorLayer("Polygon?crs=epsg:...
6
votes
3answers
3k views

Install QGIS3 (QGIS-dev) on MacOSX

As it mentioned on the official doc we can download a nightly build for QGIS-dev-2.99. I did, but the version is actually outdated QGIS_2-99-0_2016-09-20_cd1d44b.dmg it's the 2.15 dev version instead ...
6
votes
1answer
270 views

How to use optional inputs in model processor for QGIS 2.18/3.0?

I have developed a processing model in QGIS 2.18 where all my inputs are optional and I need them to be truly optional. However, the model will not run unless I have all inputs present. I have tried ...
2
votes
1answer
332 views

How to populate auxiliary fields in QGIS 3?

After creating a user field in the auxiliary storage, how can I populate this field with a default value? Normally I'd do this in the attribute table with "Update All" or "Update Selected", but the ...
10
votes
1answer
842 views

Set QGIS 2.18 as default on Win with both 2.18 and 3.0

Is there a way to have both QGIS 3.0 and 2.18 installed on one computer but have 2.18 as the default Package when opening workspaces. At the moment 3.0 opens all my workspaces which is rather annoying ...
2
votes
1answer
512 views

Is there a list available of plugins compatible with QGIS 3.0 Girona?

On February 23rd, QGIS 3.0 Girona was officially released. I read in the documentation that the release contains breaking changes that will affect some or all of the existing QGIS plugins. I've been ...
1
vote
0answers
578 views

QGIS 3 missing vector tab mac [duplicate]

I installed QGIS 3 as instructed and the Vector processing tab is missing. I did uninstall all previous versions and Python.
0
votes
1answer
113 views

Spatial joins with no common fields?

I have shapefiles pertaining to NYC traffic density as well as NYC trucking routes, and what I'd like to do is join the attribute data from the trucking route file into the traffic file. Seen here, ...
2
votes
1answer
888 views

How to get rid of master password in QGIS 3

Is there way to get rid of the current master password in QGIS 3? I want to start from scratch with a new master password and new auth. database. When I clear or erase the auth db (even delete ...
6
votes
1answer
846 views

Compatibility PyQt5 and PyQt4

I'm having some compatibility problems with PyQt5, as expected some of the scripts I wrote are not working. My biggest issues are with these two PyQt4 functions: layer.pendingFields() layer = ...
2
votes
2answers
451 views

How can QGIS 3 Data Source Manager automatically close after load a layer?

In previous QGIS version, after load whatever layer, Data Source Manager automatically closed. However, in QGIS 3, as it can be observed at following image, Data Source Manager remains open afterward ...
6
votes
1answer
579 views

Quickly temporarily disabling snapping in QGIS 3?

In some other applications I use you can use one of the "shift" keys to disable snapping for a single operation. Is there an equivalent for the new node tool?
1
vote
1answer
47 views

Unsnapping two items that have accidentally been snapped in QGIS 3?

In QGIS 3 how can I "unsnap" two items that have accidentally been snapped? So far the only way I have found of unsnapping is to delete the vertex and re-add it.
5
votes
1answer
3k views

Importing paths for QGIS 3 standalone scripts

For QGIS 2.x, I used the batch file provided in the answer for this post in the OSGeo4W Shell to run standalone scripts: Problem with import qgis.core when writing a stand-alone PyQGIS script The ...
5
votes
1answer
1k views

Loading labels from Python script in QGIS

Is there a way to add labels of the added layers using python. I've tried these lines of code but no label shows after execution in QGIS 3.0 for layer in QgsProject.instance().mapLayers().values(): ...
2
votes
0answers
322 views

QGIS Contour Extraction Malformed Path (QGIS 3.0.1 Girona)

I'm attempting to create contours from a raster DEM (provided by USGS). I open the dialog at Raster > Extraction > Contour, choose the input level, leave the default Band number of Band 1, set an ...
6
votes
1answer
9k views

Obtaining base maps / base layers in QGIS 3.0

I'm excited to upgrade from QGIS 2.18 to 3.0. However, I rely heavily on the plugin QuickMapServices for base maps. For example, the main project I'm working on currently uses these base layers, all ...
2
votes
0answers
5k views

QGIS gdal_translate: command not found

When I go to Raster -> Extraction -> Clip Raster by extent, I get the error "/bin/sh: gdal_translate: command not found ". I am using QGIS version 3.0 on a MacBook Pro. Anyone know how I can fix ...
1
vote
0answers
1k views

WFS 2.0 in QGIS 3

I have a WFS server I am desperately trying to get data from. It is possible in WFS 2.0 Client in QGIS 2, but now that QGIS 3 is out (and seemingly with a WFS 2 option) I wanted to try this instead. ...
6
votes
0answers
889 views

Join attributes by location very slow on QGIS 3.0

"Join attributes by location" is very slow on QGIS 3.0. I have tried it with a CSV file and also with a shapefile (point layer) and a grid (made of polygons). On QGIS3.0 it takes about 3 hours to ...
1
vote
1answer
232 views

Using SQL parameter when saving to GeoPackage

In QGIS 3.0, when I am saving a layer as a GeoPackage when using the Points to Path tool. The 'Paths' parameter is pre-filled with something like this, ogr:dbname='C:/Paths/Paths.gpkg' table="1119" ...
3
votes
2answers
2k views

Fixed distance buffer missing in QGIS 3.0

I know its early adopter version, but anyone know why my regular buffer tool is missing? Possibly others too. Ps: I have already tried the other missing feature fix of deleting .qgis2 folder
4
votes
0answers
235 views

Connectors do not appear automatically in easy custom labelling

I'm using the easy custom labelling plugin in QGIS 3. When I move a label away from its associated polygon a connector does not automatically appear as in QGIS 2.18. How do I get connectors to appear ...
1
vote
1answer
498 views

Reproject layer in QGIS3 from consol

I had some problems with the processing alg reprojectlayer in QGIS3. Earlier in QGIS2.18 I used following command: processing.run('qgis:reprojectlayer', 'path_AND_filename_to_org_file','EGSG: 4326'...
1
vote
0answers
57 views

Rasterize after buffer in loop

I'm trying to get layer from gdb - make buffer, then convert it to raster. Here is my code: import os import processing from qgis._core import QgsProject, QgsRasterLayer from qgis.utils import iface ...
2
votes
1answer
1k views

How to update/refresh fields/attributes after modifying SpatiaLite/SQLite database?

I have modified the columns in a SpatiaLite database table (by creating a new table with a renamed column, populating it with the old table, deleting old and renaming the new table to the old). I ...
2
votes
1answer
1k views

Incomplete raster menu in QGIS3

My QGIS3 raster menu seems to be incomplete: Analysys, projections, extraction, and all other items are not present, only calculator, align and georeferencer are... I'm on OSX 10.11.6. Reinstalling ...
4
votes
1answer
6k 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
748 views

How can I get information displayed at tooltips for each algorithm's name at Processing Toolbox for QGIS 3?

I use following code for searching adequate id name for each algorithm presents in Processing Toolbox (gdal, grass7, qgis, saga) for QGIS 3. from os import listdir from os.path import isfile, join ...
4
votes
1answer
2k views

How to get selected layers in QGIS3 from python

How can I get the selected layers in QGIS 3 with pyqgis? I tried selectedLayers = iface.legendInterface().selectedLayers() as suggested in How to get programmatically selected layers from the QGIS ...
4
votes
4answers
920 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 ...
1
vote
0answers
81 views

Using gpkg layer as input in rasterize with PyQGIS?

I try to rasterize a gpkg layer but it does not work efficiently. It always return empty raster data. However, if I run it by using processing toolbox it works. To see the code, I look the processing ...
3
votes
2answers
1k views

Usage of QgsTask and QgsTaskManager

I'm trying to test the new QgsTask and QgsTaskManager, I found some examples in the PullRequest in github. I modified it slightly and added a print(i) in the code bellow: from qgis.core import ...
6
votes
2answers
2k views

Photo Map tip in QGIS 3 on windows

How do you display a photo map tip in QGIS 3 on Windows? As a new user I'm not sure if this is my lack of experience or a bug, so I've tried to simplify it as far as I can: This is the contents of ...
4
votes
1answer
2k views

QGIS 3 on Mac OS - Where is the configuration directory?

I've got a fresh clean install of QGIS 3 running on Mac OS and I can't find where the plugin directory should be. I don't have a directory at ~/.qgis3. I've search my drive with locate qgis and ...
9
votes
1answer
395 views

QGIS constrain move by vertex along an x or y axis

In QGIS, is there a way to constrain a 'move by vertex' along the x or y axis? In the picture below, I would like to constrain the edit movement along the y-axis as shown in the bold red dashed line....
2
votes
0answers
146 views

QGIS 3 interprets polylines as multipolylines?

ogrinfo -al reports a file as Geometry: Line String and each feature as LINESTRING. But when loaded in QGIS 3, it is reported as Line (MultiLineString). As far as I remember, QGIS 2 imported it as ...