Skip to main content
Solved

Exposing attributes from Spatial Relator

  • November 23, 2015
  • 1 reply
  • 31 views

Forum|alt.badge.img
I used a spatial relator for a project to show counties that state parks are in. After the spatial relator complete it gave me attributes _relationships(0).name and so on and the I have a few names for each park since the parks go into multiple counties. But when I write the end files out the _relationship().name attributes are emplty. On the FME data inspector it has values

 

Best answer by roland.martin

Hi,

 

 

If they have {}s in the name, that's a list - a bit like an array in programming. A lot of formats won't accept them without a bit of extra processing. Try one of the following:

 

- ListConcatenator - concatenate all the values for each item with a comma

 

- ListExploder - create a separate feature for each list value

 

- AttributeRenamer - rename all the list values to specific attribute names

 

 

Hope this helps!

 

Roland.
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.

1 reply

roland.martin
Forum|alt.badge.img+9
Hi,

 

 

If they have {}s in the name, that's a list - a bit like an array in programming. A lot of formats won't accept them without a bit of extra processing. Try one of the following:

 

- ListConcatenator - concatenate all the values for each item with a comma

 

- ListExploder - create a separate feature for each list value

 

- AttributeRenamer - rename all the list values to specific attribute names

 

 

Hope this helps!

 

Roland.

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