Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to loop through the rows in the raster attribute table and add a date for each row.


share|improve this question
which toolset to you have in mind? – underdark Sep 29 '10 at 20:15
CalculateField in Data Management Tools (.NET) – deskcheck1 Sep 29 '10 at 20:32
Is this a one-off (to "fix" data) or will you need to do it again in the future? Also, could you do it on the database side of things rather than programmatically via C#? – Michael Todd Sep 29 '10 at 21:33
It would help if you edited your question to include the software name and version number, and preferred language (I figured this out from reading the answers and comments, but was about to post an answer using python which is not what you want). – djq Sep 30 '10 at 1:11

Because it has an attribute table, this is a categorical raster. Why not, then, create a lookup table to match dates to categories and join the lookup table to the attribute table? You probably already have a computer-readable version of this lookup table anyway, so this procedure might save considerable time and effort as well as reduce the error rate compared to a manual alternative.

share|improve this answer

To loop using CalculateField as deskcheck1 mentions

ModelBuilder link for Iterate Row Selection

*assumption using ArcGIS

share|improve this answer
Sorry. We don't have ArcGIS 10 yet. I'm writing the code in C# using ArcGIS 9.3.1 – deskcheck1 Sep 29 '10 at 20:59
I tried casting the raster dataset into a feature class, but it's not accepting it. – deskcheck1 Sep 29 '10 at 21:00

Your Answer


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