Question

KML/XML file flattened - How to expose attributes that are in feature information window

  • 14 October 2015
  • 2 replies
  • 2 views

Badge
My KML files have a Description element and the Description have either an attirbute/value pair or just a value. After the Description has been extracted and a ListExploder for each entry on the description, two stream were created - one for entries that have an attribute name/value pair and another one for entries that have a value with no attribute name.

 

 

For the name/value pair (22 entries per feature) they are split and then @Value(_list{0}) was created and (_list{1}) assigned a value to each entry.

 

 

For the value only entry (3 entries per feature), an attribute name (attr_name) is created using the element index and then another atribute using @Value(attr_name) is assigned the value of each entry.

 

 

When the attributes are merged back with the geometry, the data stream from both attribute streams appear only in the feature information window when features are identified in the inspector. he transformers don't show any attributes . When I use AtributeRenamer to make the attributes friendlier for the data stream which has values only, the attributes show up on the transformer and its suceeding transformer. This does not work for the pairs.  In theory I don;t have to rename the attributes from the pairs because I can see the results and they are attributed but I can't make them show up on the translation so I could write these attributes on my output.

2 replies

Badge
Feature Information window screencapture. 

 

Badge
Solved my own answer... use Attribute Exposer and then Rename as the fields from the entries have spaces.

 

 

Thanks to this thread and Takashi for opening my eyes to what the exposer can do: https://knowledge.safe.com/CommunityAnswers?id=906a0000000cuLcAAI

 

 

I thought you can expose only format attributes that's available onthe drop down.... you can use it to expose hidden attributes created by the translation during run time....

 

 

Reply