Hi,
If the features have the same ID, you can try to merge them (FeatureMerger) and use the AreaBulider with the ID in the Group By setting of the transformer.
Itay
Hi,
You might not need the FeatureMerger at all. Just use the AreaBuilder and set the Group By attribute to STAU_ID.
Consider using the snapping functionality of the AreaBuilder if your lines does not line up perfectly.
David
both ways doesnt really bring me the right output
i explain again:
feature class 1 contains 395 features with 395 different "STAU_IDs"
feature class 2 contains 5273 features with different STAU_ID (which match on minimum 1 line in feature class 1)
the lines from feature class 2 overlaps to the base line in feature class 1
now i want build areas with one line in feature class1 and for example 7 features in feature class 2 with the same STAU_ID.....the result should be 7 different areas ...which all have the border from feature class 1....
after the feature merger the result is that FME duplicates the geometry from feature class 1 for each candidate from feature class 2
the area builder with group by STAU_ID don't cut feature class 2 at the intersection part from feature class 1 and the output is a kind of:
first area has border feature class 1 and first feature from feature class 2
second area is between border first feature from feature class 2 and second feature from feature class 2 and so on......
phew....that was now confusing or? ;-)
Hi Franco,
Maybe this workflow works. It was inspired from Itay's suggestion.
Takashi
Hi,
it is difficult to give a concrete solution without having seen the data (and I'm not quite sure I've understood your question correctly), but perhaps something like the following could work:
- On FC2, insert a GeometryExtractor to store the geometries in an attribute
- FeatureMerger on STAU_ID, with FC1 (feature class 1) as REQUESTOR and FC2 as SUPPLIER. Enable multiple suppliers and give a supplier list name
- Counter on the MATCHED port to give each matched feature a unique id
- Send the data to both no. 5 and no. 7 below.
- ListExploder, make sure that you use "List elements and original attributes" as attributes to keep
- GeometryReplacer to recuperate the FC2 geometries
- AreaBuilder with Group By on the Counter id. This will build areas based on the line from FC1 and the lines from FC2, grouped by the matching STAU_ID.
Like this:
Hope this helps...
David
Thank you guys ....both solutions worked.....thumbs high!!!
Greetz
Franco