Skip to main content

Questions tagged [qgis-expression]

refers to a kind of dialect QGIS uses to expand its features, primarily used to calculate fields, manipulate geometry or manage symbology.

1 vote
1 answer
34 views

Return geometry values based on field in attribute table

I have several linestrings and want to place labels at varying positions along those lines. To not play around with additional (point) features, I need to return the x- and y-position along the ...
Jon's user avatar
  • 13
2 votes
2 answers
179 views

Splitting polygons with line with Geometry generator, using QGIS expressions

The question I QGIS, you can split polygons with lines using Split with lines algorithm. I want to do this in Geometry genrator, using QGIS expressions. However, there is no expression/function ...
Babel's user avatar
  • 80.2k
3 votes
1 answer
99 views

Creating new attribute with name of feature with the highest group value using QGIS Expression

In QGIS, I have a point layer. I'd like to create a new attribute that will retrieve the value from the "Name" field for the object that has the highest value in the "he" field in ...
Piotr's user avatar
  • 51
2 votes
5 answers
216 views

Expression Builder not allowing multiple expressions with "replace"

I am trying to use the expression label to make a couple simple changes to my labels. I am able to successfully change one using replace-- like so: replace("columnname", 'oldname', 'newname')...
Kira's user avatar
  • 21
3 votes
2 answers
291 views

Numbering QGIS fishnet from lower left, moving right

I create a fishnet in QGIS and want the FID numbering to start from the lower left corner and increase row-wise to the right. By default, the FID numbers start from the upper left and increase column-...
yaser tahmasebi's user avatar
4 votes
1 answer
129 views

Geometry generator skips Null values in QGIS

I have a geometry generator, which I have drastically simplified below, it's for drawing tree canopies. I want to be able to expand this to 8 points (which is easy), but have the expression skip any ...
Sethinacan's user avatar
  • 2,360
2 votes
1 answer
188 views

Issue with OR operator in QGIS Rule-Based Labelling expression

I want to label only the major roads (primary, trunk, and tertiary) in the roads layer, using the "Highway" field. I have created a rule based expression: "HIGHWAY"= 'primary' OR '...
Lilit Mathieu's user avatar
3 votes
1 answer
131 views

Combining replace and title function for labelling in QGIS Expression

I need to clean up the labels from a shapefile dataset for mapping. Working in QGIS. Current values appear as DUNDAS RAILWAY STATION, TOWN HALL RAILWAY STATION, etc. I need to strip the "RAILWAY ...
yamanotori's user avatar
4 votes
1 answer
175 views

HTML MapTip to show elevation data from DEM layer in QGIS

Is there a way to set the HTML MapTip to show elevation data on a DEM layer in QGIS? The QGIS expression builder doesn't have any functionality to connect to mouse movement. I am guessing a custom ...
Ivan Marjanović's user avatar
3 votes
3 answers
199 views

Mapping X and Y Coordinates with Geometry By Expression in QGIS

I have a csv file, containing the x and y coordinates (EPSG:2229) of 4 points: I would like to use the Geometry By Expression tool in QGIS to map these points. The expression at the very basic level ...
sBoroushaki's user avatar
6 votes
1 answer
191 views

Smoothing curves with specific radius in QGIS

I did not find a good solution to this problem by searching this page (and the rest of the web) so here we go, even if it sounds trivial: I have a project in QGIS where I have do draw an access route ...
Cris_315's user avatar
  • 235
2 votes
0 answers
81 views

Select by Expression no longer working as before in QGIS

I have a vector layer of contours with a 0.25m elevation difference. These are standard vector contours generated by the QGIS Contour... tool, with the elevation value stored in column ELEV. For a ...
GlenS's user avatar
  • 646
5 votes
0 answers
29 views

QGIS Raster Calculator Expression Box Text Font Very Small

Does anyone know how to increase the font size in the QGIS Raster Calculator Expression box as its very small
sean jarrett's user avatar
4 votes
2 answers
249 views

Simplifying defining several variables at once with QGIS Expression

Using QGIS expressions, I want to define several variables. For this, there is the function with_variable(). However, you can just define one variable at once, and the expression has to be repeated ...
Babel's user avatar
  • 80.2k
3 votes
1 answer
188 views

Getting attribute value on intersection with QGIS Expression

I am using QGIS 3.34 and i want to get an attribute value in a field calculator expression using intersection. My layers are a polygon layer with some attribute, and a point layer. I need that when i ...
etorresm's user avatar

15 30 50 per page
1
2 3 4 5
13