I tried some of the scripts I found but none worked so far. What I am trying to do is batch merging hundreds, maybe thousands of shapefiles from different folders/sub-folders into a single shp or feature class (I read is better in case of large data). My data is stored in [Shape Files] folder, as you may see here:
- O:\ABC\DEF\2010\project_nu\Shape Files*.shp
- O:\ABC\DEF\2011\project_nu\Shape Files*.shp
- O:\ABC\DEF\2012\project_nu\Shape Files*.shp
- O:\ABC\DEF\2013\project_nu\Shape Files*.shp
- O:\ABC\DEF\2014\project_nu\Shape Files*.shp
(where there's many project_nu in each year)
I don't have any experience in Python just in ModelBuilder.
I did a little bit of research and I understand that first I need to use the os.walk through all these folders and search for *.shp polygons (all shp's are polygon so there's no need to test this). Then apply merge to the generated list.
I tried ModelBuilder too (Iterate feature class-> Collect Values-> Merge) and got stuck in the iterative process that kept running with no results (I even tried for a few shps).