Skip to main content
Question

Creating a SchemaFeature and mapping values to it


Forum|alt.badge.img+1

Hi

I have managed to create new attributes for a SchemaFeature:

 

And when I set the Excel Writer Schema Sources to "Schema From Schema Feature" I am outputting an excel spreadsheet with the new column headers as I require.

 

 

However, I can't work out how to populate these column headers! I tried to populate them in AttributeManager like so:

 

 

But then in the excel spreadsheet the values of the column headers replaced the column headers themselves.

 

 

I seem to be missing one vital step here but I can't work out what it is.

 

Thanks,

3 replies

david_r
Evangelist
  • October 19, 2017
Your screenshot isn't visible...

Forum|alt.badge.img+1
  • Author
  • October 19, 2017

Unfortunately my computer won't let me copy screenshots so I will have to type what I've done (see below).

I can create the new column headers using the AttributeCreator with the parameters as such:

 

New AttributeAttribute Valueattribute{0}.name@Value(_candidates{0}.Node_Label)_Distanceattribute{0}.fme_data_typefme_decimal(10,2)attribute{1}.name@Value(_candidates{1}.Node_Label)_Distanceattribute{1}.fme_data_typefme_decimal(10,2)attribute{2}.name@Value(_candidates{2}.Node_Label)_Distanceattribute{2}.fme_data_typefme_decimal(10,2)

But I can't work out how to populate the new attributes names with the actual values (which are coming from another list).

 

Thanks,

david_r
Evangelist
  • October 19, 2017
aquamarine wrote:

Unfortunately my computer won't let me copy screenshots so I will have to type what I've done (see below).

I can create the new column headers using the AttributeCreator with the parameters as such:

 

New AttributeAttribute Valueattribute{0}.name@Value(_candidates{0}.Node_Label)_Distanceattribute{0}.fme_data_typefme_decimal(10,2)attribute{1}.name@Value(_candidates{1}.Node_Label)_Distanceattribute{1}.fme_data_typefme_decimal(10,2)attribute{2}.name@Value(_candidates{2}.Node_Label)_Distanceattribute{2}.fme_data_typefme_decimal(10,2)

But I can't work out how to populate the new attributes names with the actual values (which are coming from another list).

 

Thanks,
For screenshots, try uploading to e.g. imgur.com and inserting the link here:

 


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