I have setup a test filter that separates out a number of shapefiles based on part of the filename. I now want to use the output port that these features will run through as the new table name. Is there an easy way to do this, or do I need to create a writer for each port so that this has the correct table name.
You can use attribute values as the name of the output file.
Instead of using the TestFilter I would have used an AttributeCreator (use the conditional values option) to create different values for the new attribute (e.g. FileName).
Then use that attribute to define the Shape file name in the Writer feature type.
Do you actually need to use a test filter? You could conditionally assign an attribute using the same statements and then fanout on this attribute to create separate shape files
You can use attribute values as the name of the output file.
Instead of using the TestFilter I would have used an AttributeCreator (use the conditional values option) to create different values for the new attribute (e.g. FileName).
Then use that attribute to define the Shape file name in the Writer feature type.
You can use attribute values as the name of the output file.
Instead of using the TestFilter I would have used an AttributeCreator (use the conditional values option) to create different values for the new attribute (e.g. FileName).
Then use that attribute to define the Shape file name in the Writer feature type.
SU_AdministrativeBoundary
ST_AdministrativeBoundary
etc etc. then there are also other types that are defined this way such as Buildings, Roads etc.
I was hoping to consolidate these so that all AdministrativeBoundary files could go into a new table or featureclass (file geodatabase) using this generic name, rather then new tables for each different name.
SU_AdministrativeBoundary
ST_AdministrativeBoundary
etc etc. then there are also other types that are defined this way such as Buildings, Roads etc.
I was hoping to consolidate these so that all AdministrativeBoundary files could go into a new table or featureclass (file geodatabase) using this generic name, rather then new tables for each different name.
Attribute Name: TableName
Attribute Value: If fme_basename contains "AdministrativeBoundary" Then "AdministrativeBoundary", Else If fme_basename contains "Building" Then "Building" and so on.
That would create one attribute containing "AdministrativeBoundary" in both examples.
Attribute Name: TableName
Attribute Value: If fme_basename contains "AdministrativeBoundary" Then "AdministrativeBoundary", Else If fme_basename contains "Building" Then "Building" and so on.
That would create one attribute containing "AdministrativeBoundary" in both examples.