Skip to main content
Solved

Batch Deploy in FME 2013

  • April 25, 2013
  • 3 replies
  • 33 views

Forum|alt.badge.img
Hi,

 

 

I am new to FME.

 

I am trying to do a batch processing to convert shapefiles to JSOn files.

 

All my shape files are in current directory, e.g.,

 

C:\\Users\\username\\Documents\\Projects

 

I am trying to convert each of them into a separate json file in a folder

 

C:\\Users\\username\\Documents\\Projects\\JSON

 

I used dataset fanout after selecting all the shapefiles as input but it is returning only json file corresponding to the first shapefile.

 

I also used file->batch deploy by selecting the source folder with *.shp as wild card  and destination as above and deselected retain basename.

 

But it is also giving only the output from first file.

 

 

Please help me out where I am wrong or if you need information.

 

 

Thanks,

 

Vivek

Best answer by conterrastefan

Hi Vivek,

 

 

if you still have problems, another easy option would be the Quick Translator. Here you can use the 'Advanced Browser' to navigate to your input Shape folder (or use your wildcard ...\\*.shp). In the next try the option 'Seperate destination for each source file'. In the last step you set up your destination folder.

 

 

Best regards,

 

Stefan
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

Forum|alt.badge.img+4
  • April 25, 2013
Hi Vivek,

 

 

Try reselecting that "retain basename" parameter and rerunning the procedure.

 

 

When using Batch Deploy, for it to fanout to different files based on the source file name, you will need to have this parameter checked. Be aware that basename means the source filename in regards to Shape files.

Hi Vivek,

 

 

if you still have problems, another easy option would be the Quick Translator. Here you can use the 'Advanced Browser' to navigate to your input Shape folder (or use your wildcard ...\\*.shp). In the next try the option 'Seperate destination for each source file'. In the last step you set up your destination folder.

 

 

Best regards,

 

Stefan

Forum|alt.badge.img
  • Author
  • April 26, 2013
Thank you all for the answers.

 

I tried all the three procedures.

 

 

1) Retain base name did not change anything.

 

2) Yes, Unexpected Input Remover was indeed a problem and I did use Mark's solution to get the expected results.

 

 

However, the really quicky was Stefan's answer.

 

 

Thanks,

 

Vivek