Select to view content in your preferred language

Iterator: Select(analysis) tool

516
1
03-31-2017 07:30 AM
GregoriusIvaniddo
New Contributor

Hi All, 
I am trying to make a model which would iterate the select (analysis) tool.

Basically, I have a feature class with more than 10,000 points. These point have different Z values (height), with the field name is "POINT_Z".

So, i want to export these points into different feature class by dividing them based on the Z values.

Without using model builder, I will need to manually select these points using the select(analysis) tool.

this is the SQL script to select the features that have height between 32 and 33

(POINT_Z >=32) AND (POINT_Z <33)

This process of using select(analysis) tool is repeated with different height range, but I was wondering whether there is a way to iterate this process.

The lowest and highest values of the POINT_Z is 32.355 and 69.804 respectively. Thus, the intended output is 38 different feature classes alltogether (FC with Z value between 32-33, FC with Z value between 33-34, so on and so forth)

Can anybody help me on this problem?

Thank you in advance!

 model builder; #iterator

Tags (2)
0 Kudos
1 Reply
curtvprice
MVP Esteemed Contributor

Easiest way is to add a field, calculate a value using the expression Int([POINT_Z]) and then use the Iterate Field Values tool to select each group of points.