Skip to main content
edited body; edited tags; edited title
Source Link
Taras
  • 34k
  • 4
  • 73
  • 148

How to select Selecting top 2 linetwo features with longest length in athe line vector file? in QGIS

I have a line vector file and I need to select two lines with the longest length using expression. I am familiar with selecting the line with the longest length:

length($geometry) = maximum(length($geometry))

enter image description here But

But how to select the longest and second-longest line using an expression?

How to select top 2 line with longest length in a line vector file?

I have a line vector file and I need to select two lines with the longest length using expression. I am familiar with selecting the line with the longest length:

length($geometry) = maximum(length($geometry))

enter image description here But how to select the longest and second-longest line using an expression?

Selecting top two features with longest length in the line vector file in QGIS

I have a line vector file and I need to select two lines with the longest length using expression. I am familiar with selecting the line with the longest length:

length($geometry) = maximum(length($geometry))

enter image description here

But how to select the longest and second-longest line using an expression?

Became Hot Network Question
Source Link
unknown123
  • 457
  • 2
  • 8

How to select top 2 line with longest length in a line vector file?

I have a line vector file and I need to select two lines with the longest length using expression. I am familiar with selecting the line with the longest length:

length($geometry) = maximum(length($geometry))

enter image description here But how to select the longest and second-longest line using an expression?