Skip to content

Instantly share code, notes, and snippets.

@phpmaps
Last active September 28, 2018 03:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phpmaps/6b60f597751c5884bf3ae0d006bc4660 to your computer and use it in GitHub Desktop.
Save phpmaps/6b60f597751c5884bf3ae0d006bc4660 to your computer and use it in GitHub Desktop.
BOUYS CLASSIFY
IF(AND(wvht__m_ >= 0,wvht__m_ <= 1.5),"SMALL",IF(AND(wvht__m_ > 1.5,wvht__m_ <=3),"MEDIUM",IF(AND(wvht__m_ > 3,wvht__m_ <=8),"LARGE","NA")))
@phpmaps
Copy link
Author

phpmaps commented Sep 28, 2018

When you copy and paste expressions, sometimes field names get a little strange. When using the field calculator expression helper the expression would look something like this.

IF(AND(WVHT >= 0,WVHT <= 1.5),"SMALL",IF(AND(WVHT > 1.5,WVHT <=3),"MEDIUM",IF(AND(WVHT > 3,WVHT <=8),"LARGE","NA")))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment