You can assign a unique value to the shapefile and then assign the same unique value to each of the separate tiff files. Then use the "Group by" functions in the transformer(s) and then use the fanout by the same attribute to create the kml(s).
A way to do this would be;
If the filenames contain a common name per set you can extract them by exposing the fme_basename attribute on the reader(s) and then use a substring extractor to grab the portion you need.
Example;
shapefile 1 = Kitty_cat.shp
tiff 1 = Kitty_cat1.tif
tiff 2 - Kitty_cat2.tif
Extract Kitty_cat and use that as the group by.
If this doesn't work, post the file names of two pairs so we can see what the structure looks like for additional ideas.
You can assign a unique value to the shapefile and then assign the same unique value to each of the separate tiff files. Then use the "Group by" functions in the transformer(s) and then use the fanout by the same attribute to create the kml(s).
A way to do this would be;
If the filenames contain a common name per set you can extract them by exposing the fme_basename attribute on the reader(s) and then use a substring extractor to grab the portion you need.
Example;
shapefile 1 = Kitty_cat.shp
tiff 1 = Kitty_cat1.tif
tiff 2 - Kitty_cat2.tif
Extract Kitty_cat and use that as the group by.
If this doesn't work, post the file names of two pairs so we can see what the structure looks like for additional ideas.
That sound like a good approach. So in my case I would use SubstringExtraxtor to create a new attribute with the first 19 characters, then use "Group By" in all transformers and dataset fanout by the same attribute?Thanks for the help!
That sound like a good approach. So in my case I would use SubstringExtraxtor to create a new attribute with the first 19 characters, then use "Group By" in all transformers and dataset fanout by the same attribute?Thanks for the help!
Exactly. The group by function processes feature sets independently and at the end use the fanout feature on the KML writer to fan out by that same name. This works on any number of combinations. If some have 1 shapefile and 10 tiffs it will treat them the same as it will with 1 shapefile and 2 tiffs.