2

enter image description here

I have 90 point shapefiles. I would like to export the largest value of one of the fields in the attribute table. I have sorted the field so that the largest number is at the top. I have also added in another field, which is the name of the shapefile so I can export both fields and still know the name of the file.

I am now trying to use 'Get Field Value', 'Collect Values' and an array of tools to get the data into a table or csv or similar which I can work with. see image: I don't have to do both at the same time, I just want to be sure which number comes from which file.

I am not great with Python so if this is possible within ModelBuilder can you help?

PolyGeo
65.5k29 gold badges115 silver badges349 bronze badges
asked Sep 11, 2020 at 5:27
1
  • I wouldn’t rely on pre-sorting a table - it may work sometimes but not others. If you want to get the maximum value then you should explicitly do so. Eg, use Summary Statistics with Maximum for the value field and First for the filename field. Commented Sep 11, 2020 at 7:30

1 Answer 1

1

I ended up getting this to work by using two models, which could probably be one but it worked:

  1. feature iterator to Summary Statisticstables
  2. Table iterator to collect values to Merge tables
PolyGeo
65.5k29 gold badges115 silver badges349 bronze badges
answered Sep 15, 2020 at 0:41

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.