I have a large grid file, and I am looking to extract each individual polygon that makes up the grid into a new layer. Essentially, I would like to replicate selecting a layer by mouse click, then "Create Layer from Selected Features".
I am familiar with coding in ArcPy and the Python environment as a whole, I suspect the best approach is to script this process there. My grid table does have each cell attached to a unique number, should this prove useful.
I've written the following code to attempt this:
import arcpy import sys from arcpy import env from arcpy.sa import * # Set environment settings env.workspace = "C:/Users/Eric/Documents/" #Set Local Variables in_grid = "fishnet_clipped.shp" out_feature = "polygrid2.shp" where_clause = ' "FID" = \'2\' ' # Executing Select arcpy.Select_analysis(in_grid, out_feature, where_clause)