1

I have a ModelBuilder to work as a tool. The workflow is that buffer 30 meters in the rivers and then intersect with classification feature class (vegetation and production area) then the result is selected (only the production area) and is converted to "feature to line" and then "feature to point" but when the feature class resulted from intersection is empty I find a error and the tool does't run completly. My wish is to run the tool to delivery even a empty feature class (point).

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Dec 8, 2015 at 18:16

1 Answer 1

0

Add a check to determine if the feature class is empty; if it isn't empty, run your conversions (I'd just go for centroids rather than going from poly to line to point), and if it is empty, skip it or add a message/log file.

answered Dec 8, 2015 at 21:59
1
  • 1
    GetCount()--the link actually shows how to use it in MB--though you'll need to create a 2nd branch that creates an empty feature class. Commented Dec 9, 2015 at 6:19

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.