Skip to main content
Solved

Make a dynamic line segmentation with points


geo-x
Contributor
Forum|alt.badge.img+5
  • Contributor

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.

Best answer by takashi

geo-x wrote:
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.

 

View original
Did this help you find an answer to your question?

6 replies

takashi
Influencer
  • February 1, 2018

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


geo-x
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • February 5, 2018
takashi wrote:

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.


takashi
Influencer
  • February 6, 2018

This workspace could solve the problems

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

 


geo-x
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • February 6, 2018
takashi wrote:

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

 

 


takashi
Influencer
  • Best Answer
  • February 7, 2018
geo-x wrote:
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.

 


geo-x
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • February 7, 2018
takashi wrote:
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.

 

 


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