Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

enter image description hereI'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?

share|improve this question
add comment

1 Answer 1

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.

share|improve this answer
    
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. –  joebob Mar 1 '13 at 0:54
    
@joebob, pg 110 of Getting to Know ArcGIS ModelBuilder goes over how to use if-elif statements. –  artwork21 Mar 1 '13 at 12:32
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.