Related Plugins and Tags

QGIS Python Plugins Repository

SOSIexpressions

Plugin ID: 3201
(0) votes 

Expressions related to SOSI-data

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.

Author
Morten Sickel
Maintainer
mortensickel
Tags
expressionsnorwaynorgesosi
Plugin home page
https://github.com/sickel/SOSIexpression
Tracker
Browse and report bugs
Code repository
https://github.com/sickel/SOSIexpression
Latest stable version
1.11
Latest experimental version:
0.1
Plugin ID
3201
Version Experimental Min QGIS version Max QGIS version Downloads Uploaded by Date
1.11 no 3.0.0 3.99.0 209 mortensickel 2023-12-26T13:33:08.827123+00:00
1.0 no 3.0.0 3.99.0 183 mortensickel 2023-11-29T21:03:08.813394+00:00
0.1 yes 3.0.0 3.99.0 136 mortensickel 2023-11-22T18:16:16.986390+00:00

Sustaining Members