Question

Make a dynamic line segmentation with points

  • 31 January 2018
  • 6 replies
  • 8 views

Badge

Dears FME comunnity members.

 

 

I've a cloud of point with ID and a type (Start/end) along a linear.

 

I would like to make a dynamic segmentation for keep cut lines between two points with same ID and different types.

 

The aim is to extract linear concerns by two points and exclude other linears.

You can see an explication of my problem with a draw in attachment.

Thank you very much for your help.


6 replies

Userlevel 3
Badge +17

Hi @lalandexavier, a possible approach is to create copies of the line for each pair of Start/End points and snip off the copied line by measures of the Start/End points. The idea is simple but the implementation could be a long story.

This is an example: dynamic-line-segmentation.fmwt (FME 2017.1.2.1)

Gray: Original Line, Blue: Step 1 (moved to +Y direction), Red: Step 2

Badge

Hi @lalandexavier, a possible approach is to create copies of the line for each pair of Start/End points and snip off the copied line by measures of the Start/End points. The idea is simple but the implementation could be a long story.

This is an example: dynamic-line-segmentation.fmwt (FME 2017.1.2.1)

Gray: Original Line, Blue: Step 1 (moved to +Y direction), Red: Step 2

Dear @takashi, this is a perfect answer, thank you very much !

I saw, since this post, I identify few particular cases, for example same vertex for different points or linear not in the same direction explication-probleme-copie-copie.png.

In this case, I've a proble with the NeighborFinder because point doesn't match. If I use the Unmatchedcandidate, the MeasureExtractor doesn't work. finally if I work without the point unmatched, I don't have all my linears.

What kind of transformer can I use for it ?

Thank you for your help.

Userlevel 3
Badge +17

This workspace could solve the problems

dynamic-line-segmentation-2.fmwt (FME 2017.1.2.1)

 

Badge

This workspace could solve the problems

dynamic-line-segmentation-2.fmwt (FME 2017.1.2.1)

 

Thank you for your help @takashi that seem's to work with my example but if I try in production in see the transformer snipper doesn't work.

 

 

The transformer keep the lines from my transformer Listexploder without another action

 

 

I extract a simple example if you want to see : snipper.zip

 

 

Userlevel 3
Badge +17
Thank you for your help @takashi that seem's to work with my example but if I try in production in see the transformer snipper doesn't work.

 

 

The transformer keep the lines from my transformer Listexploder without another action

 

 

I extract a simple example if you want to see : snipper.zip

 

 

The line features in the dataset don't have measure dimension. That's the reason why the Snipper (Mode: Measure) won't work.

 

Badge
The line features in the dataset don't have measure dimension. That's the reason why the Snipper (Mode: Measure) won't work.

 

Thank you very much @takashi that's work very good, if I add a measuregenerator in output of ListExploder.

 

 

That's perfect, thank you.

 

 

Reply