Skip to main content
Solved

fme_feature_type attributes removed after areaBuilder


Forum|alt.badge.img
Hi!

 

 

I would like to know why the fme_feature_type attributes is removed after passing the lines features through areaBuilder transformer inserted inside a custom transformer.

 

 

Even more weird, just after areaBuilder, Im doing a FeatureMerger to restore all attributes to each feature as they were before going through some transformers, but only fme_feature_type is not passed.

 

 

 

 

Anybody may provide explanations on this?

 

Thank you,

 

-Max Demars

Best answer by gio

Hi, yes heterogenous sources wich contibuted to areas built can only be contained in a list. (like David said)

 

So a group by on attributes wich are likely to be heterogenous, will not pass.

 

Group on homogenous attributes will pass.

 

 

Obviouly in your workspace the area is built up from different feature types.

 

U need to try and set some ID prior to the AB wich will identify the area's uniquely. (for instance insert a point an ID  with a counter)

 

 

Also sometimes it possibel to do some logical operation on the contrbutors. (like it can only be build by grass feature type and water...etc.)

 

 

This logic also works on the merger: as only the suplier has the "fme_feature_type" passed, and the output "merged" are the area's built, it is logical that this attribute will not exit there. (it will exit  trough referenced or no referenced ports)

 

 

Gio

 

View original
Did this help you find an answer to your question?
This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, 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.

2 replies

david_r
Celebrity
  • April 3, 2014
Hi,

 

 

the AreaBuilder will only include those attributes that are specified in the Group By-clause. This is because a resulting polygon could potentially contain a mixture of heterogenous values and FME has no automatic way of knowing which to preserve, except for those specified in the Group By.

 

 

If you need the individual values, specify a Polygon List Name (as per the documentation). This will the contain a list of all the attributes for each contributing polygons.

 

 

Regarding the FeatureMerger, I couldn't say, but in my experience it is often better to user e.g. an AttributeCopier to store these values in a different attribute than the internal ones used by FME (fme_* etc)

 

 

David

gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • Best Answer
  • April 4, 2014
Hi, yes heterogenous sources wich contibuted to areas built can only be contained in a list. (like David said)

 

So a group by on attributes wich are likely to be heterogenous, will not pass.

 

Group on homogenous attributes will pass.

 

 

Obviouly in your workspace the area is built up from different feature types.

 

U need to try and set some ID prior to the AB wich will identify the area's uniquely. (for instance insert a point an ID  with a counter)

 

 

Also sometimes it possibel to do some logical operation on the contrbutors. (like it can only be build by grass feature type and water...etc.)

 

 

This logic also works on the merger: as only the suplier has the "fme_feature_type" passed, and the output "merged" are the area's built, it is logical that this attribute will not exit there. (it will exit  trough referenced or no referenced ports)

 

 

Gio

 


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