126/5000 Thanks Klas! This video is for me very useful. Until now I did not know the "Geometry generator" tools. They will certainly help me in my work
Hi how would I be able to use this to do a live dissolve and sum by category (attribute) text label... to check total population by district as I assign a district code to blocks for example
Nice video Klas! I was wondering if i can create a line next to my line feature indicating where it starts and ends and display the length (available as one of my fields)on it at the same time. Since my line is made of many segments the expression that im using (make_line) creates a straight line between these points. Do you know how could i approach this problem? segments_to_lines creates a line for each segment and i want a simple line. My main goal is to get displayed the length of a line (multiline and therefore with curves). Id appritiate any advice :)
Thanks Karlsson! Great! How can I get points starting from the "most northerly" vertex, regardless of the order of the polygons vertices? Could you help me about this question?
With a geometry generator or any expression you can use "segments_to_lines" to isolate each segment in the polygon. You can iterate over them, or the vertecies them selves. You can use azimuth( point_n( $geometry, 1), point_n($geometry, 2)) to get the azimuth between vertex number 1 and 2 in radians. Nor sure what you are after exactly though...
Klas thank you for the tutorial on geometry generator. Thou, am not picking much on it. Like how do you get to know the different functions. Or is it like excel that you keep getting the functions as you use them. Thou, would be good if there is a library for the geometry functions and what they do.
Hi Klas - thanks for your great channel, I have learned alot from you! May I kindly ask you how to rotate the rectangles/squares by using a field attribute ? The rectangles needs to have fixed dimensions, lets say 3x6m. And yes, my dataset is a point.shp with "angle" as one of the attributes. Many thanks, Steinar (Norway)
@@georisiko8021 try this: rotate( make_polygon( make_line( make_point(x($geometry)-3,y($geometry)+1.5), make_point(x($geometry)+3,y($geometry)+1.5), make_point(x($geometry)+3,y($geometry)-1.5), make_point(x($geometry)-3,y($geometry)-1.5) )),"angle") width and length of rectangle are hardwired (w/2, h/2) but you can use the same function with_variable as explained in the video to customize them, maybe from an attribute value?
Geometry generators are essentially "expression", and you can use the processing tool "Geometry by Expression" to generate the geometrys as actual geometry layers.
Mostly U can use the qgis2web plugin, wch creates an html with the map layers and elements you want to show.Then you can now edit your html, with the web development tools you are comfortable with
Well, mostly I use the built in simple explanations that is shown in the expression builder. A basic understanding of code also helps. And there's also hints and tips all over Internet.
Wow, that was cool. Thank you very much Klas
Your channel is a gem, thank you for sharing this!
Great stuff , nice way to generate styles shapes/symbols on the fly without creating a new layer
Thank you for sharing this valuable lesson. I have been searching how to convert lines to points to do a network analysis and this saves me time.
Thanks Sir for sharing to other your guild will be alive forever (love love)
Thanks Klas. I've used it for simple buffers but this added complexity will be great. Thanks for the channel.
Thank you Klas! Nice introduction to the geometry generator I wasn't aware of
126/5000
Thanks Klas! This video is for me very useful. Until now I did not know the "Geometry generator" tools. They will certainly help me in my work
Thanks a lot for these videos!! Wish I had them discovered before...
Respect, that is awesome!
Thank you
Hi how would I be able to use this to do a live dissolve and sum by category (attribute) text label... to check total population by district as I assign a district code to blocks for example
Nice video Klas! I was wondering if i can create a line next to my line feature indicating where it starts and ends and display the length (available as one of my fields)on it at the same time. Since my line is made of many segments the expression that im using (make_line) creates a straight line between these points. Do you know how could i approach this problem? segments_to_lines creates a line for each segment and i want a simple line. My main goal is to get displayed the length of a line (multiline and therefore with curves). Id appritiate any advice :)
Thank you for sharing. In particular, the make_polygon on point geometry could be useful to produce demers cartograms.
i realize Im pretty randomly asking but does anyone know a good place to watch newly released movies online?
Thanks Karlsson! Great!
How can I get points starting from the "most northerly" vertex, regardless of the order of the polygons vertices?
Could you help me about this question?
Can I dimension the azimuth of the sides of a polygon layer? Thank you so much for the tutorial
With a geometry generator or any expression you can use "segments_to_lines" to isolate each segment in the polygon. You can iterate over them, or the vertecies them selves. You can use azimuth( point_n( $geometry, 1), point_n($geometry, 2)) to get the azimuth between vertex number 1 and 2 in radians.
Nor sure what you are after exactly though...
Klas thank you for the tutorial on geometry generator. Thou, am not picking much on it. Like how do you get to know the different functions. Or is it like excel that you keep getting the functions as you use them. Thou, would be good if there is a library for the geometry functions and what they do.
They are all in the expression builder, with descriptions, so just go through the list by category.
@@KlasKarlsson Thank you will do that. Really want to get efficient with using qgis by end of this year. Any hints on how to best do so.
Hi Klas - thanks for your great channel, I have learned alot from you! May I kindly ask you how to rotate the rectangles/squares by using a field attribute ? The rectangles needs to have fixed dimensions, lets say 3x6m. And yes, my dataset is a point.shp with "angle" as one of the attributes. Many thanks, Steinar (Norway)
And the origin point should be the centroid of the rectangle.
@@georisiko8021
try this:
rotate( make_polygon(
make_line(
make_point(x($geometry)-3,y($geometry)+1.5),
make_point(x($geometry)+3,y($geometry)+1.5),
make_point(x($geometry)+3,y($geometry)-1.5),
make_point(x($geometry)-3,y($geometry)-1.5)
)),"angle")
width and length of rectangle are hardwired (w/2, h/2) but you can use the same function with_variable as explained in the video to customize them, maybe from an attribute value?
Thanks for this tutorial, especially for MilkyWay stars:)
Great Tutorial, how do you save the created geometry as a new layer.
Also, what can i do to offset lines permanently?
Geometry generators are essentially "expression", and you can use the processing tool "Geometry by Expression" to generate the geometrys as actual geometry layers.
do you know how to do a dashed line around a polygon, but to make sure that in every corner the dashed line has never a gap?
Dear sir, I have a river shapefile and I wanna symbology it by offset to the right and then to the left simultaneously. Do you how to do it?
buffer, clip then segments to lines, maybe?
wow, awesome Klas.. Thanks
Do anyone know how to create a interactive map in Qgis 3.2 ?
Mostly U can use the qgis2web plugin, wch creates an html with the map layers and elements you want to show.Then you can now edit your html, with the web development tools you are comfortable with
demonstrate "closest_point" and "distance" would be nice. maybe between a street and all assigned buildings.
Sir Please make videos on Web based application using QGIS
Where do you find all possible function?
Well, mostly I use the built in simple explanations that is shown in the expression builder. A basic understanding of code also helps. And there's also hints and tips all over Internet.
In Minute 21:15 in our expression why we Multiply by 100 ??
My values are really small so this is to increase the value by a factor of 100.
30:30 lol