New answers tagged

0 votes

Filling field with values from field of another table using QGIS

If you are fine with pygis in the console, you could do the follwing steps: SETTING For this example you have in the plot layer (source) a field called sourceField and in the building layer (target) ...
Xeppit's user avatar
  • 1,235
0 votes

Can't connect with Web Map Services - problem with OpenSSL 3.0.2 Ubuntu 22.04

As I have spent a long time sorting this out, in my case the problem was fixed by removing an old symlink linking /lib/x86_64-linux-gnu/libssl.so.1.1 to /lib/x86_64-linux-gnu/libssl.so. Removing (...
andersking's user avatar
1 vote

QGIS hidden behind Windows toolbar (bottom)

Every time someone encounters a GUI problem with QGIS, simply uninstalling won't do the trick as corrupted GUI files are located in the profile folder, which isn't removed when uninstalling QGIS. To ...
Darko Tripunovski's user avatar
3 votes
Accepted

How to update QGIS display from script run in console

This can be achieved by using a QTimer instead of time.sleep. layer = iface.activeLayer() # instantiate a Qtimer() object and set its interval timer = QTimer() timer.setInterval(300) # milliseconds #...
Matt's user avatar
  • 16.2k
0 votes

Why is the extent of a "point" grid different from a "polygon (rectangle)" grid in QGIS?

I'm not sure it answers the question of why, but the official documentation is pretty clear that the extent of a polygon grid is larger than the extent of the corresponding point or line grid. https:/...
Tom Brennan's user avatar
  • 4,407
0 votes
Accepted

Change selection color to be just a polygon with no fill in QGIS 3

So upgrading will solve this as per Matt's workflow and the option suggested in the comment by JGH will also resolve the issue. You can create a virtual layer to handle Point, Line and Polygon ...
GeorgeC's user avatar
  • 8,196
2 votes
Accepted

Adding geometry from first row of attribute table to all other rows of attribute table of layer using PyQGIS

Try this. Backup first, it will modify the layer in place. layer = QgsProject.instance().mapLayersByName("thelayer")[0] pr = layer.dataProvider() #Fetch the geometry of the first feature ...
BERA's user avatar
  • 71.2k
2 votes

How to hide or remove the subgroup labels on a QgsLayoutItemLegend with PyQGIS?

The method you are looking for is QgsLegendRenderer.setNodeLegendStyle(). The first argument is a QgsLayerTreeNode object and the second is a QgsLegendStyle.Style Enum object, e.g. QgsLegendStyle....
Ben W's user avatar
  • 21.2k
2 votes

Using Attribute Table in QGIS

Yes. If you: right-click a layer and choose "Properties..." then go to the "Attributes form" tab you can edit the properties for each field. E.g. if you want to define a list of ...
Pieter's user avatar
  • 1,520
3 votes

INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified

The error seems quite clear: /home/azureuser/geoserver/Chintareddy/chintareddy/Chintareddypalem.qix (Permission denied) ERROR [data.shapefile] - Couldn't replace original file with a temporary after ...
Ian Turton's user avatar
  • 81k
0 votes

INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified

There are two possible causes: The XML file actually contains a disallowed character (for example a control character such as form-feed). In this case you need to (a) repair the invalid file, and/or (...
Michael Kay's user avatar
1 vote

Make statistical expression for field calculator

Assume you just want the median DD value for each uuid/station_id category, you can use this expression in Field Calculator on the Stations layer (replace 'stations-attitudes' with the name of your ...
she_weeds's user avatar
  • 12k
4 votes

QGIS Attribute Form -> Value Relation -> Filter expression: expressions or functions to get the names of current layer and current field

You could itterate through all layers in a pyqgis script or use it in filter function editor and call it in filters layer = iface.mapCanvas().currentLayer() def foo(layer): fields = layer.fields()...
Xeppit's user avatar
  • 1,235
0 votes
Accepted

Select by location fails for some lines in QGIS

Answer from Babel that solved my problem: "Without having your data, we can just speculate: please share a sample of your data. Probably the lines form the two layers are not properly connected, ...
Dennis's user avatar
  • 41

Top 50 recent answers are included