Skip to main content
Question

How could I remove the arrow symbol from line ?


gogopotter90
Contributor
Forum|alt.badge.img+13

Hello ,

i would like to remove the arrow symbol from the lines

how could I test in data which lines has arrow then remove it .

as info :arrow symbol and line connects to has the same id

FME 2021

 

6 replies

takashi
Influencer
  • November 17, 2023

Hi @gogopotter90​ ,

If the arrowhead always consists of two lines shorter than the shaft, an easy way is to calculate length of all the lines with LengthCalculator, sort them by length descending with Sorter, and select the first one for each identical ID with Sampler or DulicateFilter.


gogopotter90
Contributor
Forum|alt.badge.img+13
  • Author
  • Contributor
  • November 17, 2023
takashi wrote:

Hi @gogopotter90​ ,

If the arrowhead always consists of two lines shorter than the shaft, an easy way is to calculate length of all the lines with LengthCalculator, sort them by length descending with Sorter, and select the first one for each identical ID with Sampler or DulicateFilter.

i have tested before but I have still no luck .

Bcs some of them is connected as arrow head and line (as one object )

so if I want to calculate the length ,it calculate for the whole line with arrowahead .they are not seperated .


takashi
Influencer
  • November 17, 2023
gogopotter90 wrote:

i have tested before but I have still no luck .

Bcs some of them is connected as arrow head and line (as one object )

so if I want to calculate the length ,it calculate for the whole line with arrowahead .they are not seperated .

You can use Chopper (Mode: By Vertex, Maximum Vertices: 2) to separate an arrow shape into individual line segments.​


gogopotter90
Contributor
Forum|alt.badge.img+13
  • Author
  • Contributor
  • November 17, 2023
gogopotter90 wrote:

i have tested before but I have still no luck .

Bcs some of them is connected as arrow head and line (as one object )

so if I want to calculate the length ,it calculate for the whole line with arrowahead .they are not seperated .

Thanks I will try it

is there possible to use azimuth calculator ,to find the arrowhead depends on the angle ?


takashi
Influencer
  • November 18, 2023
gogopotter90 wrote:

i have tested before but I have still no luck .

Bcs some of them is connected as arrow head and line (as one object )

so if I want to calculate the length ,it calculate for the whole line with arrowahead .they are not seperated .

If the azimuth of arrow shaft is known, you can determine if a line segment is a part of arrowhead based on its azimuth. 


takashi
Influencer
  • November 18, 2023
gogopotter90 wrote:

i have tested before but I have still no luck .

Bcs some of them is connected as arrow head and line (as one object )

so if I want to calculate the length ,it calculate for the whole line with arrowahead .they are not seperated .

If you calculate azimuth for each line (arrowhead x 2, arrow shaft), it could be possible to determine if which one is the shaft.


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