Skip to main content

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.

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.


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?

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

 

 


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

 

 


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.

 

 


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.

 

 


Reply