I've just now gone back and retried the split -- this time with a normal split shapefile of the county boundaries. This is working. My correct syntax is:arcpy.Split_analysis("blk","cnty","CNTY","c:\census2010")I'm not sure what was happening when I tried it the other way but since it worked partially I was thinking it might work that way.Thanks, Barbara.
For the first time today I attempted to split a large dataset into smaller pieces using the Split_analysis tool. I am attempting to split an entire statewide shapefile into county by county pieces. Here is my code as entered in the Python window:arcpy.Split_analysis("blk","blk","CNTY","c:\census2010")The statewide shapefile is "blk" and "CNTY" is the county FIPS code attached to each census block.Running the command does indeed produce output for each selected county, but only a small number of blocks from each county make it into the output shapefile (easily less than 10% of the features). Is there some limit to this operation or is there some other explanation?
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.