0

A QGIS expression (0<=0”az”<180) related to a column az with values 0 to 360 returns all records. Tried to_int and to_real as well because source of the data was a csv and result was same.

1

2 Answers 2

1

Something along the lines

if(0<=to_int(az)<180,do one thing,do another thing)

should work for the field calculator. Make sure to check which field type "az" is (layer properties -> fields), maybe you can leave the "to_int" out. Refering to the column has to be without quotation marks in this context - don't ask me why.

0

Thanks Michael and Erik as the references and comments were helpful in reaching the following solution: "az" >= 0 and "az" < 180 By the way the attribute table was numeric as every value had a huge number of decimal places. Clicking on the field headers sorted the table. QGIS claims a certain level of SQL capability for expressions and this problem is entry level stuff that still intimidates rookies like me. Paul

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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