I'm merging several databases and clipping out certain areas of interest. Sometimes there are no points that are clipped because there is nothing in the clip. I have each of the features output to a geodatabase. Is there a way for it not to export the feature class to the geodatabase if the file is empty?
Asked
Active
Viewed 1,265 times
5
MjonesGEO
- 791
- 1
- 10
- 27
1 Answers
2
You can use the result of the Get Count (Data Management) tool, and check it within Using If-Then-Else logic for branching logic to check for features.
artwork21
- 35,114
- 8
- 66
- 134
-
I'm not sure how to write code on this. I'm trying to do it with calculate values for the next step. I don't know how to plug in an if-then going from Row Count > Calculate Values. I'm fairly new to model builder. I'm going from "Select" > "Copy Features", but I want it to stop going if there's nothing in the feature. – MjonesGEO Mar 01 '13 at 00:54
-
@joebob, pg 110 of Getting to Know ArcGIS ModelBuilder goes over how to use if-elif statements. – artwork21 Mar 01 '13 at 12:32