Saturday, 4 January 2020

arcgis desktop - Iterating shapefiles using ModelBuilder?


What tool can I use to run many shapefiles to intersect with a shapefile as a output?


It looks like that Iterate tools is use for feature classes or datasets and I don't see any for the shapefile.


I can use the Batch but I want to use ModelBuilder because I might need to add more tools later.



Answer



A shapefile is a kind of feature class, like an FGDB feature class or an SDE feature class. Use iterate feature classes in modelbuilder. You can then output as a feature class, and if it is named correctly (c:\path\to\directory\that\exists\output.shp) you will get a shapefile out.


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...