<div dir="ltr">Hi,<br><div>I have several rectangles (almost squared) and I'd like to represent their diagonals.<br><br>I started to do with geometry generator with:</div><div>make_line(point_n($geometry,1),point_n($geometry,4))<br></div><div>and</div><div>make_line(point_n($geometry,2),point_n($geometry,5))<br></div><div><br></div><div>Unfortunately, even if they look rectangular, actually they have more then 4 points and, moreover, points do not always have the same order.</div><div><br></div><div><div>here below an example:</div><div><img src="cid:ii_kz7jsrjs0" alt="image.png" width="654" height="245" style="margin-right: 0px;"></div></div><div><br></div><div>Is there any expression in order to pick the two longest segments connecting all the points of the geometry?</div><div><br></div><div><br></div><div>Thanks</div></div>