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?
-
Have you looked into using a modulus operator?– PolyGeo ♦May 5, 2016 at 7:27
-
Fid in (5,10,15) unless you'd like to compute additional field as @PolyGeo suggested– FelixIPMay 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.– VinceMay 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.– LolloMay 5, 2016 at 14:27
1 Answer
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]
-
-
1@FelixIP screenshot added showing use of Select by Attributes window and result in attribute table– Midavalo ♦May 5, 2016 at 10:02
-