I need to iterate through each of the features of a feature class successively to use each one as the mask to extract from a raster with the ExtractByMask tool. Basically I'm looking for the "Iterate Feature Selection" function from ModelBuilder for Python scripting. If I understand correctly, using a search cursor will return only the row of values from the attribute table, not the feature shape itself. Would iteratively creating a new shape with "Select_Analysis" be a feasible way to go about this instead? I suppose creating a new shape file for each feature would take quite long. Is there another, more efficient way?
... View more
I am using the feature class iterator to pass all feature classes in a geodatabase to an intersect tool where they are intersected with one other feature class. The feature classes in the geodatabase are grouped in datasets however. Is there a way to retain the dataset structure in the output? I tried: - outputting to the original geodatabase - only feature classses are output without being grouped in datasets. - outputting to a new geodatabase - only feature classses are output without being grouped in datasets. - nesting the iterate feature classes model in an iterate datasets model - only datasets are output without intersected feature classes Thanks in advance
... View more