Skip to main content

I have created a polygon layer from a numeric raster. RastertoPolygonCoercer shows a _label attribute to be created and this appears in inspector as the values from the raster. Perfect - but - I want to ensure this is carried through and written out to shapefile - except I can't "see" the attribute in subsequent transformers. So I thought attribute creator and map the attribute to a new field, or attribute exposer and ensure it appears, or even attribute mapper sounds a possibility. Except when it comes to picking the attribute you want to make available (_label) it doesn't appear in any list of available attributes. It doesn't appear in a shapefile written out and

I don't know how else to access it - Help.....

These attributes are unexposed attributes. Use the Exposer transformer to expose it.


Forgive a newbie but if I add and connect an AttributeExposer and click on the drop down list of attributes to expose the _label attribute doesn't show. So how do I get it to expose?


You have to type in the attribute names manually:

 

 

Alternatively you can use the Import-button on the bottom right to import attribute names from e.g. a sample data file.

 

This happens when you have dynamic elements in your workspace where FME doesn't know at design-time (i.e. when you're authoring your workspace) what attributes will be available once the translation starts (run-time).

Forgive a newbie but if I add and connect an AttributeExposer and click on the drop down list of attributes to expose the _label attribute doesn't show. So how do I get it to expose?

You have to type in the attribute names manually:

 

 

Alternatively you can use the Import-button on the bottom right to import attribute names from e.g. a sample data file.

 

This happens when you have dynamic elements in your workspace where FME doesn't know at design-time (i.e. when you're authoring your workspace) what attributes will be available once the translation starts (run-time).

@david_rExcellent answer. I thought you could only pick from the drop down list that comes up as soon as you click in the box. Extra thumbs up for the explanation of the significance and importance of dynamic elements and run-time and the use of the import button. Made my day as my whole process was hanging on that one attribute.


These attributes are unexposed attributes. Use the Exposer transformer to expose it.

I tried the import option and chose a table with a list of the names of attributes I wanted to expose. All I ended up with was the name of the field that contains the 48 separate field names. Is this some obvious mistake I'm making that is easily explained?

 

Thank you,

 

Randy McGregor


I tried the import option and chose a table with a list of the names of attributes I wanted to expose. All I ended up with was the name of the field that contains the 48 separate field names. Is this some obvious mistake I'm making that is easily explained?

 

Thank you,

 

Randy McGregor

You need to choose attribute values rather than attribute names when you import the list


These attributes are unexposed attributes. Use the Exposer transformer to expose it.

You need to select "Attribute values" not "Attribute names" in the "Import from:" option. Unintuitive to me because these are the names of the attributes, not the values that populate them. Anyway, "Import" works beautifully for this. I had to create a table containing these values first, then I used that table with the "Import" option.


You need to choose attribute values rather than attribute names when you import the list

Thank you! That was it.


Reply