Skip to main content
Solved

Read multiple shapefiles and write to GDB


Forum|alt.badge.img

I have a harddrive full of data I need to turn into a good database, essentially.

I'm starting with converting any shapefiles into feature classes. I know how to convert one shapefile into a feature class, but I'm struggling with multiples that live in multiple areas/folders.

I've got two workspaces setup so far.

  • One is a read/write on ALL information in the hardrive. It writes a CSV so I can see what data exists. You can see the PATH in the photo below to see the data this reads.
  • The second is where my reader is set to read all .shp using the following to work through all "\\**\\*.shp" however this obviously does not read the underlying datasets that work together with a ShP to create it (.dbf .prj etc)

The write is a Feature dataset and the second is just a GDB set to fanout.

None seem to really do the job. Some export just a table, some just two feature classes.

I'm not sure if there is more I need to do within the workspace to process Shapefiles. I can't seem to find much documentation on shapefiles in FME or transformers.

It also doesn't help I'm working with ArcGIS Pro and not Desktop (which I'm experienced in), so understanding that along with this isn't the most straight forward.

Can anyone help?

Best answer by chandan

Hello @kimburrows1242,

Try attached workbench (FME 2018.1), hope it will solve your problem.

shapetogdb.fmw

View original
Did this help you find an answer to your question?

9 replies

chandan
  • Best Answer
  • March 11, 2020

Hello @kimburrows1242,

Try attached workbench (FME 2018.1), hope it will solve your problem.

shapetogdb.fmw


Forum|alt.badge.img
chandan wrote:

Hello @kimburrows1242,

Try attached workbench (FME 2018.1), hope it will solve your problem.

shapetogdb.fmw

Perfect. Thanks so much!


Forum|alt.badge.img
This doesn't seem to search for shapefiles within further subfolders. I've tried \\**.shp /*.shp /**.shp. Any ideas?

ebygomm
Influencer
Forum|alt.badge.img+31
  • Influencer
  • March 16, 2020

Try \\**\\*.shp


Forum|alt.badge.img
ebygomm wrote:

Try \\**\\*.shp

Thanks and do you think that will go through all sub-folders and their sub-folders etc or just one set of sub-folders?


ebygomm
Influencer
Forum|alt.badge.img+31
  • Influencer
  • March 16, 2020
kimburrows1242 wrote:

Thanks and do you think that will go through all sub-folders and their sub-folders etc or just one set of sub-folders?

That should look in all sub-folders and their sub-folders


sekarjntu
Contributor
Forum|alt.badge.img+2
  • Contributor
  • December 5, 2024
chandan wrote:

Hello @kimburrows1242,

Try attached workbench (FME 2018.1), hope it will solve your problem.

0684Q00000ArL9AQAV.png

shapetogdb.fmw

It is asking for arcgis setup in fme server which we dotn have..is it mandatory to install arcgis in fme server to work with fgdb files


sekarjntu
Contributor
Forum|alt.badge.img+2
  • Contributor
  • December 5, 2024

can some one please help me how to read gdb file  in fme without installing arcgis


tomf
Contributor
Forum|alt.badge.img+14
  • Contributor
  • December 6, 2024

You can read and write to fGDB using the Open API format in FME without needing an ArcGIS installation.

Quick Add fGDB Open API Reader

 Be aware though that this format does not have all the functionality of the native File GeoDB format. https://docs.safe.com/fme/html/FME-Form-Documentation/FME-ReadersWriters/filegdb/filegdb.htm


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