Linked Questions

1 vote
1 answer
4k views

Adding a sequential number using ArcGIS field calculator to string file and keeping the 0 in front of the number? [duplicate]

I want to know if anyone has a code to count +1 starting at a certain number for Field Calc. ArcGIS. (I.e. 04312, 04313) It also must keep the 0 in front. rec=0 def autoIncrement(): global rec ...
Christopher Harrod's user avatar
0 votes
0 answers
2k views

Sequential numbers in a field using Python in the Field Calculator on a based on Sorted Column not FID/OID [duplicate]

This code below auto-increments based on the FID/OID in the attribute table. How can I auto-increment a column based on a sort of another column? I don't want it to follow the FID/OID. Please advise. ...
Aperi's user avatar
  • 1
0 votes
1 answer
541 views

Programmatically sorting attribute table, adding field and sequentially numbering field based on that sort? [duplicate]

Basically, I have a bunch of photos from a field data capture software that I am exporting into Arc. I need to create a map for these photo locations labeled in the the order the photos were take. ...
gnarkilleptic's user avatar
13 votes
3 answers
19k views

Calculating sequential numbers into sorted table using ArcMap

I am using ArcMap 10.3. Is there a way to calculate a sorted field with sequential numbers in the Field Calculator or using an Update Cursor in ArcPy? I have seen Sorting feature class to calculate ...
Midavalo's user avatar
  • 29.9k
6 votes
3 answers
11k views

Auto-incrementing in Python Script with ArcPy cursor?

I want to autoincrement values in a field within a Python script. I've done this using Field Calculator and the code referenced here. I tried using this code in the Python script below but it is not ...
Patty Jula's user avatar
  • 1,083
0 votes
1 answer
11k views

Populating a field in an attribute table with a consecutive number sequence? [duplicate]

I know that this is probably a very basic question but I can't seem to find an answer through Google searches. I would like to create a field in an attribute table (in ArcMap 10.2) for a Number ...
gyoung1986's user avatar
3 votes
1 answer
5k views

Calculating Cumulative Field Values in ArcMap

In ArcMap 10.2, I wish to create a field which contains the cumulative values of another field in the same attribute table. For example, if the first three cells of the original field contained the ...
jc22's user avatar
  • 425
4 votes
2 answers
1k views

Field calculation- Arcpy

I am developing a script to calculate the values of two fields (C and D) based on value of field A (It is a Point feature): A C D 0.2 1 1 0.2 1 2 0.2 1 3 0.4 2 1 0.5 3 1 0.5 3 2 So the idea is n = ...
Deep's user avatar
  • 789
5 votes
1 answer
2k views

Select every other n rows in ArcGIS for Desktop?

I am trying to select n rows then skip n rows and then select the next n rows until the completion of all rows in a feature class in a file-geodatabase. Below is an example where n =3: Select Select ...
Brian Brokling's user avatar
2 votes
2 answers
1k views

Re-numbering points along a polyline

Using ArcGIS 10.1 for Desktop. I created perpendicular lines along a polyline. In the process of doing that, the lines were numbered in order (automatically). I manually edited some of the ...
Water_Hammer_85's user avatar
1 vote
1 answer
1k views

Sort feature class in Modelbuilder and populate new ids

I would like to sort my feature class in a model based on coordinates stored in its attribute table. The sorting must be done on Y_coord descending, then X_coord ascending. The answer to Sorting ...
Cindy Jayakumar's user avatar
2 votes
2 answers
257 views

Polyline to points ordered in cumulative distance from starting point

I have a problem with converting a line to points, where the points are ordered as the cumulative distance from the start of the line. I originally had 3 individual lines which I merged to make 1 ...
user2507608's user avatar
0 votes
2 answers
280 views

Comparing areas of polygon over time

I have three polygon shapefiles that each represent water (lakes, ponds, rivers) for three different time periods (1990, 2000, 2010). Each shapefile has over 1 million polygons/attributes and were ...
user20408's user avatar
  • 1,545
2 votes
1 answer
150 views

Attribute Table ArcMap / get specific values [duplicate]

I have an Attribute table with 151823 rows. I want to cut off the upper and lower 5% of the data so I sorted the Value field ascendingly but now I am not able to select the first and the last 7591 ...
Thessla's user avatar
  • 51