I'm having issues with drawing line(s) from point layer at azimuth value and given distance (using layer "float" field with azimuth). I'm trying to do this using Geometry Generator display for geopackage layer (created using Python/geopandas), and azimuth field 'azi1' might have "float" value in degrees (or NULL if there is nothing to draw). I keep getting "Eval Error: Cannot convert 'azi1' to double" (despite the value is always numerical or NULL in the table). GG code looks like this:
CASE WHEN 'azi1' IS NULL THEN make_line(@geometry,@geometry) ELSE collect_geometries( make_line(@geometry, make_point( x(@geometry)+20*cos(radians('azi1')), y(@geometry)+20*sin(radians('azi1'))))) END "make_line(@geometry,@geometry)" is temporary, is there anything like Pythonic "pass" in GG syntax? (there should be just a point, but probably it can't be displayed in line-based GG)
Am I doing something wrong with NULL check (in GeoPandas dataframe that was NaN, but in QGIS table it shows as NULL), conversions from decimal degrees to radians is done wrong or is it something else (maybe I should use shapefile etc.)?
I'm using QGIS 3.32.2.
'azi1'to"azi1". Single quotes are for strings, double quotes for fields