To me the next step after this is making the contour labels “aggregate” with the zoom level. That is, as you zoom out you see fewer. How would this be accomplished? Just using a zoom range modifier to make every third or fourth one visible, etc? Would that also be possible to do with SVG objects so that as you zoom out they “combine” to reduce clutter.
Not sure about SVG, but for selective rendering depending on scale you can absolutely use geometry generators: with_variable( 'factor', to_int( scale_linear( value:=@map_scale, domain_min:=1000000, domain_max:=10000000, range_min:=1, range_max:=10)), if("ELEV"%(@factor*100)=0, $geometry,'') )
You can usually do a lot of things multiple ways. In this case you are right, overlay_intersects() gets you the same result as intersects(aggregate...) but with less code. Well spotted!
Mr. Klas karlsson, I envision you as a tranquil, modest, and benevolent gentleman.
Thank you very much.
absolutely awsome!
very useful, huge thank You))
does anybody know a solution to display the altitude labels correctly - always facing to the top?
Try this (at 8 min): ruclips.net/video/-xzoVF7Z7u0/видео.htmlsi=co42L6mgXGlstQhU
how the hillshade effect made?
To me the next step after this is making the contour labels “aggregate” with the zoom level. That is, as you zoom out you see fewer. How would this be accomplished? Just using a zoom range modifier to make every third or fourth one visible, etc? Would that also be possible to do with SVG objects so that as you zoom out they “combine” to reduce clutter.
Not sure about SVG, but for selective rendering depending on scale you can absolutely use geometry generators:
with_variable(
'factor',
to_int(
scale_linear(
value:=@map_scale,
domain_min:=1000000,
domain_max:=10000000,
range_min:=1,
range_max:=10)),
if("ELEV"%(@factor*100)=0,
$geometry,'')
)
Hello Klas..can I ask your inputs how to do a symbology bypass for two lines (of same layer) intersecting each other with geometry generator? Thanks
Are you having trouble exporting maps with masks on QGIS 3.32?
My labels don't apear on the intersections. The label line only dictates witch contur gets a label
Am I wrong that for the intersect you can use the overlay_intersects function?
You can usually do a lot of things multiple ways. In this case you are right, overlay_intersects() gets you the same result as intersects(aggregate...) but with less code. Well spotted!
i'm the winner... 1 hundred
... thank you