Skip to content

Instantly share code, notes, and snippets.

@rubypanther
Created July 20, 2013 05:58
Show Gist options
  • Save rubypanther/6044034 to your computer and use it in GitHub Desktop.
Save rubypanther/6044034 to your computer and use it in GitHub Desktop.
QGIS label expression
CASE
WHEN (SPECIES2 IS NOT NULL) THEN tostring( toint(2013 % YR_ORIGIN) ) || '\n' || tostring(SPECIES1)||'/'||tostring(SPECIES2 )
WHEN (SPECIES1 IS NOT NULL) THEN tostring( toint(2013 % YR_ORIGIN) ) || '\n' || tostring(SPECIES1)
ELSE
tostring( toint(2013 % YR_ORIGIN) )
END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment