Plugin icon

SOSIexpressions

Plugin ID: 3201

Expressions related to SOSI-data

(2) votes 
 Download latest

This plugin contains utility expressions to work with data from the Norwegian SOSI format. The expressions will be listed under SOSI in the expression list in e.g. the field calculator.

rotation_from_vector("vectorfield")

From "vectorfield", a field containing a vector as a space separated string of numbers, e.g. "0 -1" or "0.2 0.8", a rotation in degrees is calculated. This function can be used directly for calculating a rotation angle in the symbology window, in which case the symbol will be rotated the number of degrees clockwise so a stymbol initially pointing northwards is pointing in the same direction as the vector. If the symbol initially is not pointing northwards, the angular offset can be corrected, e.g.
rotation_from_vector("vectorfield") + 90
for a symbol that is pointing westwards.

0.1
Version QGIS >= QGIS <= Date
1.11 3.0.0 3.99.0 767 mortensickel 2023-12-26T13:33:08.827123+00:00
1.0 3.0.0 3.99.0 437 mortensickel 2023-11-29T21:03:08.813394+00:00
0.1 3.0.0 3.99.0 430 mortensickel 2023-11-22T18:16:16.986390+00:00

QGIS sustaining members

Flagship membership


Flagship membership


Large membership


Large membership


Large membership


Large membership


Large membership


Large membership


Large membership