Questions tagged [qgis-3]

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

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

QGIS 3.4: Evaluate default values (data source preference) not staying checked on?

Anyone having trouble with "evaluate default values" in QGIS 3.4 preferences, under "Data Sources"? When I click the check box and then "OK", I go back to preferences it's unchecked! And default ...
0
votes
1answer
37 views

Are there other values than “wms” and “WFS” for providerType() for a WMS/WFS layer?

According to the docs, providerType() returns the provider type (provider key) for a layer. According to https://gis.stackexchange.com/a/262050/105333, the values for a WMS/WFS layer are wms and WFS. ...
3
votes
1answer
76 views

Creating DEM map in QGIS

I would like to create a DEM map with QGIS. Therefor I installed QGIS 3.4 and SRTM Downloader Plugin Now if I start the plugin and run it by clicking on Set canvas extent and Download nothing ...
1
vote
1answer
55 views

Displaying progress bar when using QGIS processing tool

I'm building a QGIS plugin and I want to improve the user interface. I'm able to use processing tools like buffer, but with heavy layers I want to display a progress bar, users can easily see the ...
1
vote
1answer
38 views

Layer disappears when changing from CRS in degrees to CRS in meters in QGIS

The problem I have tens of thousands of small polygons for which I want to create buffer/doughnuts for, but I don’t get the units right. I want meters and not degrees, and changing to (what I think ...
1
vote
1answer
32 views

Polygonizing LineString features to Polygon features and keeping Attribute table values using PyQGIS

i am trying to create a circular raster in Qgis3.8.3-Zanzibar with the Python console. I am able to make it with LineStrings (combine of Polyline and Circular String) and fill each feature with ...
1
vote
0answers
29 views

Point grid in QGIS

I'm working on a project that needs me to map out a point grid for drilling work. The grid needs to fall within an already created polygon and be spaced 30x35meters. I was able to overlay a pointgrid ...
1
vote
0answers
29 views

Convert CSV file to shapefile and show data in view [closed]

I'm searching differents methods with QGIS to convert my CSV file to shapefile and show my points in the view. I tested differents methods that I have seen on the forum and It's not really what I want ...
2
votes
0answers
35 views

How to solve this problem with proportional size data in qgis print composer

I would like to export a map with proportional circle representation for the number of inhabitant of each city. I've used the assistant size of QGIS and created a proportional legend within qgis ...
0
votes
1answer
42 views

QGIS function like ArcGIS Planarize

I have a city road network. I have to divide sections that are separated by intersections into one level. With ArcGIS this is done with Planarize. I tried split commands, but it applies to all ...
1
vote
1answer
19 views

Individual houses in OS Zoomstack using QGIS - splitting terraced homes

I am mapping the UK in QGIS using an OS zoomstack geopackage. I would like to look at the area and perimeter of properties in the UK but this is not possible with terrace and semidetached houses as ...
1
vote
1answer
27 views

Save or add QgsVectorLayer object feature in a layer that is already created

After getting the QgsVectorLayer result, I want to save its features in a layer named dimensioning, that is already created. How to do it in PyQGIS? result = processing.run("qgis:explodelines", {'...
1
vote
1answer
32 views

PyQGIS - ImportError when reloading Plugin

In QGIS 3.4, I created a plugin through Plugin Builder 3 and always reload it with Plugin Reloader when I make any changes. When I reload my plugin I get the error: File: ".../python/plugins\...
0
votes
0answers
25 views

SVG symbols dissapear in QGIS when changing from milimeter to map units [closed]

For my point layer I want to use an .svg image and have it rendered in "map units" or "meter in scale". However, when I try to use either, the symbol is not rendered anymore. Why is that? Is it ...
1
vote
1answer
51 views

Hiding labels with value 0 in QGIS

I have a map with a lot of labels with the value 0. I want to hide or remove them somehow and came up with the following rulebased label: if( floor("area") = 0, " ",floor("area")||'m²') ...
0
votes
1answer
33 views

QGIS 3.10 send incorrect ArcGIS MapServer requests

I am trying to add a web service (ArcGIS MapServer) in QGIS 3.10 here is the url: https://pkk5.rosreestr.ru/arcgis/rest/services/Cadastre/BordersGKN/MapServer/ I see a list of layers, but QGIS gives ...
1
vote
1answer
52 views

Stacking two vectors using QGIS [duplicate]

Although the coordinate systems in QGIS for 2 different vector layers are the same, there are differences between the boundaries. How can I superimpose this data? With the plugin or another way, I ...
1
vote
0answers
34 views

Apply categorized render to Vector Layer

I am new to QGIS and I am cannot find a solution to my problem. I have this piece of code: coord_layer = QgsVectorLayer(coords, "my_layer") single_symbol_renderer = coord_layer.renderer() symbol = ...
-2
votes
0answers
32 views

What is new in QGIS 3.4.14 compared to 3.4.13? [closed]

I just realized that QGIS 3.4.14 is available now, but what are the changes compared to 3.4.13. Is there some sort of website where someone outlined the differences?
0
votes
0answers
47 views

Selecting only visible features from different layers using PyQGIS

I want to control whether features from different layers are visible. These features are in a list. I found a script in qgis api but I can not use it: if not renderer.capabilities().testFlag(...
2
votes
1answer
73 views

No Output When Using Python Console In QGIS

I am fairly new to using the python console in QGIS so I am not entirely sure if there is an issue with a line of code I am using or human error. I am using this code to cycle through a point layer ...
1
vote
1answer
39 views

Using Python Code from QGIS modeler with if and else

I am using QGIS 3. The following script code is generated from a model. At the end the code has to create a field Fl_m2, if the blnFl is true. if ['blnFl'] is True: If it is not true the ...
2
votes
1answer
39 views

QGIS custom script to run one process or another depending on input

[QGIS 3.10] I have two processes I have created using the graphic modeler. I'm trying to create a script that would run one process or another depending on the inputs. But I'm getting an error in line ...
2
votes
3answers
50 views

Calculating elipsoidal length of line in PyQGIS

I am using PyQGIS with QGIS 3. This code below is what I developed already, what I am doing wrong? layer = iface.activeLayer() feature=layer.getFeatures() for feat in feature: feature....
5
votes
1answer
170 views

Turning on/off ALL selected layers in QGIS?

When I select few layers in the QGIS 3 Layers Panel and press Space - only one of the selected layers is turned off/on. I want to turn them all. How to do that?
1
vote
1answer
62 views

Converting selected polygons to lines using PyQGIS

In PyQGIS 3, how can I convert selected polygons with n sides, into another layer with n lines? import processing mapcanvas = iface.mapCanvas() layer = mapcanvas.currentLayer() features = layer....
2
votes
1answer
74 views

QGIS 3-->Python-Code from graphic modeler doesn't work

I run a model with an if-condition with sucess. After exporting the code the scirpt gives me an error: "Unable to execute algorithm Field name is not set. Please enter a field name". the code-snippt ...
2
votes
1answer
47 views

QGIS Processing Model with IF script

I have a QGIS model that I want to modify with an IF personalised script. Basically one of the inputs is optional, but if it's empty then the model is throwing some errors down the line. Hence the ...
2
votes
1answer
27 views

TypeError: QgsGeometry.fromMultiPolygonXY(): argument 1 has unexpected type 'list'

When I modify the code (which works) from: vertices = fProject.geometry().asMultiPolygon() for v in vertices: points.append(v) fet.setGeometry(QgsGeometry.fromMultiPolygonXY(points)) to: pt = ...
3
votes
1answer
31 views

QGIS Attribute dependent visibility

I have a contour map which I have applied a symbology to add arrows pointing 'downslope' (defined by the average of adjacent line segment directions) by editing a linetype and adding markers. I am ...
2
votes
1answer
31 views

If I selected (highlight) a feature or points would I be able to color that feature as as it is being highlighted?

The points on purple and lightgreen area I want to maintain them reds. The points outside that I want to color them yellow not just the highlighted ones. How can I do that?
1
vote
1answer
40 views

Getting QgsMapCanvas viewport's four corners' coordinates

I have a PyQgis application that uses the QgsMapCanvas as map display. I am trying to retrieve its four corners' coordinates, but couldn't find any public function to do that. All I have is its width()...
2
votes
1answer
34 views

Setting QGIS simple line color depending on fields value in python plugin in QGIS

I am new to QGIS and using QGIS 3.6. I am trying to add a geojson file to QGIS and then export it to a png. I have a color filed in geojson, and can apply it with GUI. Now I want to do it using ...
1
vote
1answer
30 views

QGIS topology checker: must not overlap

I use the topology checker in QGIS 3 with the rule "must not overlap" for a single PostGIS multipolygon layer. Can somebody explain the meaning of errors (colored in red) when the plugin colors a ...
-5
votes
0answers
55 views

continuation of shapefiles rewritten to 100 bytes [duplicate]

This is a continuation of "shapefiles rewitten to 100 bytes" which somebody has closed before I could update it. Update Normally the situation would be that you have changed to a new version qgis, ...
1
vote
1answer
20 views

Default UI Theme is still set to Dark Mode (QGIS 3.8)

I've noticed that the default for version 3.8 appears to be dark mode. I've set it Night Mapping and back to Default and it's still dark mode (I restarted both times). Any suggestions for setting ui ...
1
vote
1answer
45 views

Create Rubber Band with rotation using PyQGIS

To start I am going to be upfront, I am trying to add a feature to a QGIS Plugin Called instantprint. I am trying to add rotation to the tool so that you can align features to the print box and have ...
2
votes
1answer
41 views

Graphic modeler with if Statement

Is it possible to use a boolean as an input and if it is true then the field will be created?
1
vote
1answer
37 views

Using iface in standalone pyqgis script

I am practicing QGIS python API and I made standalone script to create .qgs file and import some layers from postgis database. Now I need to zoom to imported layer but I saw that it is not possible ...
1
vote
0answers
44 views

OSM Map quality deteriorates when changing CRS - QGIS

I have a problem with basemaps for my drawings in QGIS. By basemaps I mean OpenStreetView, Google Maps etc. I'm aware that most of them (if not all) are natively set in EPSG:3857, and they look just ...
2
votes
1answer
28 views

Extracting some bands of multiband satellite image as layers using QGIS 3

I have a multiband(8 bands) satellite image. Now what I want, is to extract 5 bands from that image. By extraction I mean saving those 5 bands into a different layer or Geotiff. I am using QGIS 3 (...
1
vote
0answers
19 views

Change connection details in QGIS 3 (Polygon to MultiPolygon)

I've got a qgis project with a lot of layers. In the past they were established as postgis-polygon-layers/-tables. I updated my postgres/postgis-database recently. Now the updated database stores ...
0
votes
0answers
32 views

Getting layer reference using a feature

Using an existing feature, is there a way/method to get the layer which contains that feature? Example: # new empty feature which doesn't belong to any layer new_feat = QgsFeature() #---------------...
2
votes
1answer
45 views

Interpolation (TIN) from Python Console in QGIS

I am referring to the most voted answer by root676 in Calling interpolation plugin from Python console of QGIS. root676 ends his/her answer with: Keep in mind that the QGIS-API is currently ...
1
vote
0answers
30 views

QGIS API (PyQGIS) doesn't properly read layers

I have a problem with reading qgs file by PyQGIS lib. I'm creating python standalone stript which externally use PyQGIS from installed QGIS desktop application. The problem is that PyQGIS sometimes ...
1
vote
0answers
46 views

Using area or $area function in QGIS, when the data (polygons) is stored in UTM32N (25832)?

I have a question regarding the area and $area function in QGIS and St_Area in Postgis. I am trying to calculate the exact area of Polygons stored in a Shapefile in UTM 25832 and do not know which ...
2
votes
0answers
30 views

Dropdown option in QGIS 3 processing modeler input?

I have an Excel spreadsheet with multiple sheets of different XY database. I made a processing model in QGIS 3.10, in which I have used 'make points from table' tool to create a point shapefile. But ...
1
vote
0answers
33 views

Using Input Layer as part of Global Expression in PyQGIS

In Advanced Python Field Calculator tool, I can get a feature's geometry using $geom or its id using $id in Formula section. Is there a way to get reference of layer selected as Input Layer to use in ...
0
votes
0answers
36 views

QGIS cannot see PostGIS empty tables

QGIS didn't load empty tables with geometry columns from Postgresql, showing this error message: "invalid PostgreSQL layer", but when these tables have data it shows it without any problem. Is it ...
-1
votes
0answers
24 views

QField visibility - some offline layers are not visible [duplicate]

Does anyone know a solution for the following (old) issue? QGIS Qfield visiblity of offline layers on Android 6.0 Samsung tablet Galaxy tab S2 I assume that the problem is part of the QGIS 3.X ...