Solved
Convert multiple ESRI shape files into SQL Server Geography
I have a number of ESRI shape files that need Sqlising. Each shape file goes into a SQL Server Database table as a single row. How do I achieve this in one workflow? Doing these one by one is not practical as there are hundreds of shape files and I can easily make a mistake plus not repeatable.
Best answer by erik_jan
Two ways of doing this:
1) Point the Shape reader to <your folder>\\*.shp to read all Shape files in one go
2) Create a workspace to process 1 Shape file and a "runner" workspace using a "Directory and File Path" reader. This reader gets the file names (shp files) and not the contents. Follow the reader by a WorkspaceRunner transformer to call the workspace for processing a Shape file and pass the attribute containing the file name to the parameter in the WorkspaceRunner. This will create a loop to run the same workspace for each Shape file in the folder.
Option 1 is the easier, option 2 more flexible.
Hope this helps.
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.