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

Based on a previous post, I tried to implement this in the expressions tab:

CASE
  WHEN "dBM" <= 0 THEN '255,0,0'
  WHEN "dBM" > 0 AND "dBM" <= 20 THEN '255,255,0'
  ELSE '0,255,0'

However, I get an error like this:

Parser Error: syntax error, unexpected $end Eval Error: No root node! Parsing failed?

Desperately need this to work...

share|improve this question

Just tested (QGIS 2.8). It works if you add a END statement at the end, like that:

CASE
  WHEN "dBM" <= 0 THEN '255,0,0'
  WHEN "dBM" > 0 AND "dBM" <= 20 THEN '255,255,0'
  ELSE '0,255,0'
END
share|improve this answer

Your Answer

 
discard

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.