Skip to main content
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
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
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

 

 


Reply