Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

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 calculate and return the value "continuous" to those records in a polygon feature class with species records aggregated to a UTM grid considering the attributes are species name, grid code, record age (2 values, new and old) and, while some records in a distinct grid code are either new or old, but some distinct grid codes, have also new and old records. For those records where a distinct species and distinct grid code contain the values new and old, I would like to return the value "continuous" in a new column using "Field calculator" and a python script.

Could someone help me with such a python script?

share|improve this question
I'm guessing ArcMap? – Nathan W May 19 '13 at 22:37
Welcome to the site @Ciprian ! Just a couple of quick clarifications: You're using ArcGIS? Could you please let us know which version? Also, am I reading your question correctly; your polygons feature class already has all the data in the attribute table, you just need to calculate a field? – om_henners May 19 '13 at 22:40
conditional statements in arcmap are carried with the Con statement. Read the appropriate help files for your version. Con is like an "if" statement in other programming languages. If you want to implement this in pure python the the if-elif-else syntax will work. Details are needed. – Dan Patterson May 19 '13 at 23:23
I am using ArcGIS 10.1. The feature class already has the attribute data. – Ciprian May 20 '13 at 5:53
This would be much easier to respond to if we could see a table with some sample records in your question. – PolyGeo May 20 '13 at 8:55

Your Answer


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

Browse other questions tagged or ask your own question.