Skip to main content

Hi

I have a few thousand shape-files arranged in pairs of 5 in the form of a1.shp, a2.shp, a3.shp...... and b1.shp, b2.shp..... and so on. I would like to batch merge these into a.shp, b.shp and so on.

Some guidance on how to create this batch would be much appreciated.

Best regards, robin123

Hi @robin123,

You can use the option Generate Workspace:

On Reader - Dataset: you can choose all shapefiles from a ( a1.shp, a2.shp,a3.shp ):

Thanks,

Danilo


Hi @robin123,

I create dynamic Workspace for you.

The Reader was configurated to read a Folder. My folder:

I used the transformer Tester to filter by fme_basename:

I attached the Workspace.

Thanks, - workspace-shape.fmw

Danilo


You can read all shape files (*.shp) (assuming they have the same schema) in dynamic mode..

Then use a SubstringExtractor (index 0 - 0) to get the first character of the file name from fme_basename.

Then set the name of the output to the _substring attribute (created in the SubstringExtractor).


Reply