Counting GIS layers

3992
4
Jump to solution
08-29-2014 01:26 PM
MarkBooks2
New Contributor III

Hello All,

 

Has anyone ever counted their GIS layers? If so, how?

One option is to use Windows Explorer and search for *.shp (and other GIS extensions) and looking at the count in the bottom of the results window.

Are there any other methods/tools?

 

thanks

Mark

1 Solution

Accepted Solutions
DarrenWiens2
MVP Honored Contributor

Using Python, you can use a combination of os.walk (to traverse directory tree) and arcpy.ListFeatureClasses (to list feature classes). Windows Explorer search won't include file geodatabase feature classes.

View solution in original post

4 Replies
DarrenWiens2
MVP Honored Contributor

Using Python, you can use a combination of os.walk (to traverse directory tree) and arcpy.ListFeatureClasses (to list feature classes). Windows Explorer search won't include file geodatabase feature classes.

MarkBooks2
New Contributor III

Thank you Darren. This was very helpful. Please excuse the delay in replying.  Best Regards. Mark

NahedTaha_Hassan_Zeini
New Contributor II

Thank you

0 Kudos
PROBERT68
Frequent Contributor

Or there is another way around that you can do  is to go to the folder where the files you want to look for such as shapefiles, excel or so on...

Explaining the Views Available in Windows Explorer and File Explorer

Look at number 3 and see the list under the View..change it to "Details" because it will give you all the deteails about the files and show you the columns. When you see "Type"  there is a down arrow that will give you the list to choose from to display...

That is what I always do is to select one and delete anything you don't need  not only for gis but in general...

Types.png