Skip to main content
Best Answer

Unable to use FeatureMerger on different geometries

  • April 30, 2018
  • 6 replies
  • 37 views

Forum|alt.badge.img

Hello,

 

I have two set of data (Points and lines).

 

They have a common attribute X

 

Some of points have a common attribute value (X) with lines

 

How do i can extract those lines ? I tried the feature merger but the translation fails

 

Thank you.

Best answer by jneujens

If you know this attribute X --> a simple TestFilter on the lines will suffice?

 

But the FeatureMerger should also solve your problem! What are your settings in the transformer?
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

6 replies

erik_jan
Contributor
Forum|alt.badge.img+26
  • Contributor
  • April 30, 2018

For the points/lines with common attributes, you can use the Aggregator (group by common attribute).

Another option would be the NeighborFinder (max distance = 0).

Or the PointOnLineOverlayer.

So many options to choose from.


jneujens
Forum|alt.badge.img
  • Best Answer
  • April 30, 2018

If you know this attribute X --> a simple TestFilter on the lines will suffice?

 

But the FeatureMerger should also solve your problem! What are your settings in the transformer?

Forum|alt.badge.img

If you know this attribute X --> a simple TestFilter on the lines will suffice?

 

But the FeatureMerger should also solve your problem! What are your settings in the transformer?
Hello,

 

How can I do it with just the tester ?

 

Here is my workspace file

 

Thank you

 

hydrographic-4quadrant-splitter.fmw

 

 


Forum|alt.badge.img

For the points/lines with common attributes, you can use the Aggregator (group by common attribute).

Another option would be the NeighborFinder (max distance = 0).

Or the PointOnLineOverlayer.

So many options to choose from.

Hello,

 

The aggregator will not filter lines having same value of the attribute X as entering points.

 

For the NeighborFinder and the PointOnLineOverlayer I don't know how can I use them

 

 


erik_jan
Contributor
Forum|alt.badge.img+26
  • Contributor
  • April 30, 2018
Hello,

 

The aggregator will not filter lines having same value of the attribute X as entering points.

 

For the NeighborFinder and the PointOnLineOverlayer I don't know how can I use them

 

 

Using PointOnLineOverlayer: The output port Line will contain all lines, with an additional attribute _overlaps, containing the number of points that are on the line.

 

Testing for _overlaps > 0 will get you all lines, that overlap with at least one point.

 

The attributes of the point will be added to the line.

 

 


jneujens
Forum|alt.badge.img
  • May 2, 2018
Hello,

 

How can I do it with just the tester ?

 

Here is my workspace file

 

Thank you

 

hydrographic-4quadrant-splitter.fmw

 

 

I only have FME 2017.1, so I cannot really open your whole workspace.

 

If you know that attribute X has value '1' for both points and lines, you can just send the lines through a TestFilter. All the lines with attribute X = '1' can be seperated for example.