Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

In my shapefile, I have a bunch of features and one field is a integer numerical attribute. I'd like to select all of the features whose value is a multiple of another value. For instance, I have a field with typical values of 100, 101, 102, 103, 104, 105, 106, etc. (up to 1000) and I would like to select all features with a value that is a multiple of 5.

share|improve this question
add comment

1 Answer 1

If your tool supports it, use the modulo operator.

e.g. value % 5 = 0

... all features with a value that divides by five without a remainder.

share|improve this answer
4  
Beat me to it! I'll add that in ArcGIS you should use MOD ( "FIELD" , 5) = 0 in the select by attributes window. –  Jay Guarneri Mar 6 '13 at 20:44
    
I am using ArcMap 10, so thank you Jay! –  csevers Mar 6 '13 at 20:50
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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