How to loop through multiple feature datasets in ArcPy?

How to loop through multiple feature datasets in ArcPy?

Try this: You also only need to specify the arcpy.env.overwriteOutput = True once at the top of the script like you have so I removed the second reference to it in your nested for loop. Hope this helps. Thanks for contributing an answer to Geographic Information Systems Stack Exchange!

What is the output type of ArcGIS intersect?

The Output Type can be that of the Input Features with the lowest dimension geometry or lower. For example, if all the inputs are polygons, the output could be polygon, line, or point. If one of the inputs is of type line and none are points, the output can be line or point.

What do you need to know about intersect?

Computes a geometric intersection of the input features. Features or portions of features which overlap in all layers and/or feature classes will be written to the output feature class. Input Features must be simple features: point, multipoint, line, or polygon.

How to use the Intersect function in Python?

The following Python window script demonstrates how to use the Intersect function in immediate mode. The following stand-alone script uses the Intersect function as part of a workflow with other analysis tools to determine the type of vegetation within 100 meters of all stream crossings. Feedback on this topic?

How to call intersect function in ID _ INTs?

One by one, I would like to get the name of the feature class (ID_NB) and search for its corresponding feature class in another dataset (called CCH) so that I can perform the Intersect function on the two files and save the output in the 3rd feature dataset and call it ID_Ints.

How to iterate through geodatabase with multiple datasets?

Just to add to Bjorn’s answer. You can iterate through all the feature datasets within a file geodatabase (or SDE) with the following: This will attach all the feature classes to a list which you can then work with. Not the answer you’re looking for?

How does the iterate datasets tool work in ArcGIS?

The Iterate Datasets tool iterates over datasets in a workspace or feature dataset. In the image below, the model copies all the feature datasets contained in the Input Dataset variable, a workspace variable. The iteration has been restricted to iterate only on the feature dataset type.