gismarty

Selecting only Shapefiles that have Polygon Geometry

Discussion created by gismarty on Jul 2, 2012
Latest reply on Jul 2, 2012 by gismarty
Hi friends,

I think I am having a brain ****.

I have a script that goes through and selects all files ending in ".shp" in a bunch of folders. Then at the end I merge them all together.

My problem is I think there are some rogue shapefiles in some of these folders that use line or point geometry instead of polygon (which is what I really want).

How can I filter these out? I was looking for something along the lines of a simple if statement but just can't seem to wrap my head around it...

Thanks!

Outcomes