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 want to use an IF/ELSE-Statement to define a field in the attribute table of my raster. Therefore I have a field "VALUE". The condition should be: If "VALUE" < 4 ...then use die field "A".....if "VALUE" > 4 then set 0.5.

I was searching for answers but couldn't find a proper one.

share|improve this question

closed as unclear what you're asking by PolyGeo, Fezter, BradHards, Devdatta Tengshe, simo Apr 2 '14 at 7:02

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

What software are you using? – Barbarossa Apr 1 '14 at 18:00
Please add more information to this question, so that we can help you out. Details like the software that you are using, what you have tried so far, and where you are currently stuck, will help us give you a better answer. – Devdatta Tengshe Apr 2 '14 at 3:47

In Python:

def function(field):
    if field>4:
         return "0.5"
         return "A"

And below:

function(!choose from Fields!)
share|improve this answer

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