Skip to main content
Question

How to create multiple features?


Forum|alt.badge.img

Dear FME-Users,

 

 

I’d like to create multiple features (e.g. shapefiles) from multiple input rasters. For instance: I’ve 3 input raster and I’d like to have 3 features as output.

 

 

But it does not work, I get just 1 output-feature as result.

 

 

You’ll find my FME-workflow in the attachment.

 

 

Thank you very much and best regards. :)

 

 

Konrad

8 replies

david_r
Celebrity
  • April 21, 2017

You need to do a fanout on your writer based on an attribute unique to each output file. You can e.g. use a Counter if you just need an incrementing filename.

Example:


Forum|alt.badge.img
  • Author
  • April 21, 2017
david_r wrote:

You need to do a fanout on your writer based on an attribute unique to each output file. You can e.g. use a Counter if you just need an incrementing filename.

Example:

It seems that just the name of input files are differnt. I really need to do a fanout? I've 72 files.

 

 


david_r
Celebrity
  • April 21, 2017

You can try fanning out based on the "fme_feature_type" attribute. You may have to expose it on the reader first, if it's not visible in the workspace.


Forum|alt.badge.img
  • Author
  • April 21, 2017

I’ve tried „fme_basename“, now it works. :) Thank you very much @david_r.


itay
Supporter
Forum|alt.badge.img+17
  • Supporter
  • April 21, 2017
In that case use the fme_basename (raster file name), just make sure to expose it in the reader.

 

 


itay
Supporter
Forum|alt.badge.img+17
  • Supporter
  • April 21, 2017
uba_kp wrote:
It seems that just the name of input files are differnt. I really need to do a fanout? I've 72 files.

 

 

In that case use the fme_basename (raster file name), just make sure to expose it in the reader.

 

 


itay
Supporter
Forum|alt.badge.img+17
  • Supporter
  • April 21, 2017
uba_kp wrote:

I’ve tried „fme_basename“, now it works. :) Thank you very much @david_r.

glad I also could help.

 

 


Forum|alt.badge.img
  • Author
  • April 25, 2017
itay wrote:
glad I also could help.

 

 

Yes @itay thank you very much too. :)

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