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 now need to reclassify, I'm using rastercalc... but I can't get the syntax right!!

I need that values >0 become 1

I found this example... eq( [relief]@1, [mask]@4, 150 )

so I tried: ( [raster A insularis_1]@1, > 0, 1) and I absolutely failed

share|improve this question
up vote 6 down vote accepted

You simply need to use following expression

raster A insularis_1@1 > 0

The expression means , set all values greater than 0 as 1 and others as 0.

share|improve this answer
thanks a lot! i'm really new at this – Nadia Jun 22 '12 at 6:09
@Nadia Please consider accepting the answer if it helped you. – underdark Jun 22 '12 at 6:44
Oh, sorry! I didn't know I could do that ! – Nadia Jun 22 '12 at 7:13

Your Answer


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

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