1

I am building a cost distance model to find three different paths. Each has his own start and end point. So there are three start points with each an end point belonging to it. I want to use an iterator and variable inputs:

enter image description here

The iterator works now and creates three different outputs with each start point. The problem is that I cannot connect them with the end points. I can always only put end point 1 into the model and every start point end at end point one. But start point two and three should end on their own end point.

I tried to write Endpoint_%Value% but he does not accept it. I couldnt get it to run yet. Can anyone help?

I now did it like you said and get this:

enter image description here

That means that it is still not working correctly and although I put OBJECTID as destination field it connects the startpoint to all three destination points..

I now tried: As I write destination_%Value% in the Cost path input field with stable inputs it works and I get the output I want!! But as I'm doing it with variables he does not accept this input... I dont understand why because it is exactly the same only written somewhere else...

1

Just you should pay attention to one thing (GroupField of Iterator = DestinationField of cost path).

So in your case (e.g define the ID of the point)

In this example (field is destination):

The model looks like:

enter image description here

The iteration looks like:

enter image description here

Cost distance (output distcane raster e.g Cost_%Value%):

enter image description here

Cost Path (output raster e.g CostPat_%Value%):

enter image description here

The result:

enter image description here

  • I edited the question – Loki Mar 21 '18 at 19:43
  • and how did you create the connection between feature out and cost path? – Loki Mar 21 '18 at 19:51
  • @Loki so your problem now is how to connect the feature_out with cost path? just connect it as shown in my answer – Moh Mar 21 '18 at 21:08
  • Did you connect it as destination input? That would be wrong in my case. Because these are only the start points and not the end points. The problem is how to connect the end points with variables. It should be endpoint_%Value% and that works in a model with stale inputs (colored) but not in the variable model (white). Do you understand? – Loki Mar 22 '18 at 6:11
  • the other solution by making another submodel and main model, to insert new iterator for the end_points and connect them together with cost path and the output from submodel. – Moh Mar 22 '18 at 10:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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