Skip to main content
Question

Delete curve lines


mr_fme
Enthusiast
Forum|alt.badge.img+9

Hi,

I have a shapefile with lines, some of which show the degree of curvature...

I would like to delete some lines based on the angle of curvature.

How can I do that?
 

 

3 replies

nielsgerrits
VIP
Forum|alt.badge.img+54

Sounds like a job for the AngularityCalculator.


mr_fme
Enthusiast
Forum|alt.badge.img+9
  • Author
  • Enthusiast
  • March 12, 2024

No unfortunately. Show straight line like 0 and sometimes curves with 0 too...😭


nielsgerrits
VIP
Forum|alt.badge.img+54
mr_fme wrote:

No unfortunately. Show straight line like 0 and sometimes curves with 0 too...😭

I suspect it has to do with the data. You can share a FFS if you want me to try.

From the documentation:

Calculates the "angularity" of a linear or area feature. Angularity indicates the degree of curvature of a feature. The higher the value, the more curved its geometry.

A value of 0 indicates the geometry is a straight line. This mode works on linear and polygonal geometries, and all other geometries will receive a value of 0.

The calculation of this property utilizes the angle between segments and, as a result, linear and polygonal features must have more than one segment to receive a non-zero value. Arcs are stroked into lines before determining this value. The actual value is the sum of the angles between the segments divided by the total length of the segments.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings