1

I want to select all the polygons of a vector grid which have a FID multiple of N (e.g. N=5). Is that possible?

4
  • Have you looked into using a modulus operator?
    – PolyGeo
    Commented May 5, 2016 at 7:27
  • Fid in (5,10,15) unless you'd like to compute additional field as @PolyGeo suggested
    – FelixIP
    Commented May 5, 2016 at 9:51
  • FID is an internal identifier, not well-suited for use in this manner. The range of values and ordering can vary by data format, and deleted features' IDs may or may not be reassigned. I would recommend extreme caution in the use of this methodology.
    – Vince
    Commented May 5, 2016 at 12:35
  • @Vince I agree that is maybe better to add a new field and calculate it as =FID or =FID+1.
    – Lollo
    Commented May 5, 2016 at 14:27

1 Answer 1

5

Use Select by Attributes and enter

MOD(FID, 5) = 0

Where FID is the fieldname and 5 is the multiple you want to select by.

It may need to be "FID" or [FID]

enter image description here

3
  • This won't work in select by attribute window
    – FelixIP
    Commented May 5, 2016 at 9:48
  • 1
    @FelixIP screenshot added showing use of Select by Attributes window and result in attribute table
    – Midavalo
    Commented May 5, 2016 at 10:02
  • +1. My bad, memory games I tried this on 9.3, didn't work
    – FelixIP
    Commented May 5, 2016 at 19:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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