Skip to main content
Best Answer

Adresses on Area - Lists - AttributeCreator

  • February 5, 2020
  • 5 replies
  • 32 views

featuremichael
Enthusiast
Forum|alt.badge.img+9

Hello FME Community,

 

 

i need help to understand how i can solve my problem.

 

 

 

The outcome should be a Excel-File where all Adresses on a parcell should be stored.

 

 

1.)i got Points(Adresses) and Areas

 

 

2.) Use the PointonAreasOverlayer and make a List on the Areas.

 

 

3.) Use the ListExploder: Take the List and Create a _element_index (rest is standard)

 

 

now comes the part that i dont really understand.

 

 

4.) i use the AttributeCreator for Creating Attributes like "@Value(_element_Index)Adress" = "@value(Adress)"

 

then i use the "centerpointreplacer" and a "pointonpointoverlayer" to merge the "new" attributes

 

 

then comes the duplicatefilter(group = ID) to get the unique Adresspoint with all the AdressesStored in a parcell.

 

 

and then comes the tricky part: after i use the AttributeCreator my Created Attributes where gone but when i redirected it to the datainspector my attributes where stored an the "Areas"

 

 

and that was it. I tried to write, after the attributecreator, a ffs-files and use this file for the workflow but it does not work :(

 

 

i hope someone can help me.

 

 

 

Thank you, Michael.

 

 

 

 

 

 

Best answer by featuremichael

Thank you guys for your help,

 

 

i found the solution,

 

 

i had to define my created attributes in the Excel-Writer and it worked flawless.

 

 

i tought with the "Automatic setting - for Attribute Definition, it will create this Attributes - but it will not work that way.
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.

5 replies

nielsgerrits
VIP
Forum|alt.badge.img+64

If I understand correctly you want to add attributes from parcels to address features. Then why use the Area output port and not the point output port?


featuremichael
Enthusiast
Forum|alt.badge.img+9
  • Author
  • Enthusiast
  • February 5, 2020

If I understand correctly you want to add attributes from parcels to address features. Then why use the Area output port and not the point output port?

no, i want to add, 3 Attributes[Street,Nr,statecode] from my Adress points, that can be 1 or more on one parcell

and the excel-file should look

CountryCode,PalcellNr, and then 1Street,1Nr,1Statecode,2Street,2Nr,2StateCode

 

 

 


Forum|alt.badge.img+2
  • February 5, 2020

@featuremichael ListBreaker which is a custom transformer might be what you need.


erik_jan
Contributor
Forum|alt.badge.img+26
  • Contributor
  • February 5, 2020

To rename the attributes to the 1Street etc. you could use the BulkAttributeRenamer (prefix with _element_index attribute).


featuremichael
Enthusiast
Forum|alt.badge.img+9
  • Author
  • Enthusiast
  • Best Answer
  • February 6, 2020

Thank you guys for your help,

 

 

i found the solution,

 

 

i had to define my created attributes in the Excel-Writer and it worked flawless.

 

 

i tought with the "Automatic setting - for Attribute Definition, it will create this Attributes - but it will not work that way.