I have big data on production values of farmers (shapefile). Each farmer has a number of parcels in the attribute table. I try to apply a model for each farmer in the attribute table. The model simply following the steps below: 1- Feature to point (input: parcels) 2- Minimum bounding geometry (convex hull; input: output of feature to point' output) 4- Feature to point (input: minimum bounding geometry output) 5- Point distance (this step is to calculate the distance between the center of minimum bounding geometry and the center of parcels) Note: The model is also attached for a farmer but we want to apply the model for each farmer. You can see the structure of the attribute table with the farmers code (tootja) as wellenter image description here

enter image description here

  • You don't need a model to compute this. – FelixIP Mar 4 '19 at 20:16
  • How I can do it then? Any suggestions? – Fırat Arslan Mar 5 '19 at 7:57
  • Create a copy of your shapefile. Run !shape!. convexhull() on field shape. Add geometry attributes, centroid to both Join 2 tables using polygon unique id, use Pythagorean to compute distance, or math.hypot(dx,Dy). Dissolve by farmer 1st. – FelixIP Mar 5 '19 at 8:10
  • Maybe your way is easy but I couldn't understand. I have about 300 farmers data, so I need to do it for each farmer? – Fırat Arslan Mar 5 '19 at 8:15

you can use the iterator called "iterate feature selection" with your field TOOTJA_ID as input. Right-clic in the window of your model, then select iterator in the contextual menu.

You can also export your model to python and loop on the unique values of your field, but this is a bit more complicated.

| improve this answer | |
  • Thank you for your answer. Where I should use "iterate feature selection" ? Could you say which part I should use it in the model? – Fırat Arslan Mar 4 '19 at 12:32

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.