Skip to main content

New answers tagged

7 votes
Accepted

Repeat a linestring across a farm field at 40 inch intervals to use r.report for pixel values

You can use the processing toolbox for that: there is a tool Array of offset (parallel) lineswhich will do the job for you. Just define the first line, the nummer of repeats and the distance between ...
eurojam's user avatar
  • 11.1k
0 votes

Auto populating attribute table with lat and lon in QGIS

@Tom-Brennan describes exactly what you have to do, if your data is already in WGS84. But for a general solution, you must first transform the geometry object to WGS84: lon = x(transform(@geometry, @...
christoph's user avatar
  • 5,727
2 votes

Auto populating attribute table with lat and lon in QGIS

You have a couple of options. Option 1 - Virtual Field The easiest method - which based on your question, seems likely to satisfy - is to simply add virtual fields "lat" and "lon" ...
Tom Brennan's user avatar
  • 5,052
0 votes

Expression to auto-fill field according to the order of polygon creation

Under Layer Properties -> Attributes Form, you should be able to use your expression above (or a small variation of it) as the Default Value for "field_1". Don't check the Apply default ...
Tom Brennan's user avatar
  • 5,052
1 vote
Accepted

Creating ranking from value of different attribute in QGIS Field calculator

The answer : array_find( array_sort( array_agg( "differ_per" ), true ), "differ_per" ) + 1
Gregory C's user avatar
  • 353
1 vote

Calculating field using expression taken from DataFrame with PyQGIS

⚠️ The vital thing, you are missing is to activate layer editing. Either with the edit() method: with edit(layer): or the combination of the following methods startEditing() and commitChanges() and ...
Taras's user avatar
  • 33k

Top 50 recent answers are included