Skip to content

Instantly share code, notes, and snippets.

@oeon
Last active December 12, 2015 06:49
Show Gist options
  • Save oeon/4732520 to your computer and use it in GitHub Desktop.
Save oeon/4732520 to your computer and use it in GitHub Desktop.
QGIS field calculator
CASE WHEN "UNIT2" IS NULL AND "TYPE2" IS NOT NULL THEN concat("ADDRESS",' ',"NAME2",' ',"TYPE2") WHEN "UNIT2" IS NOT NULL AND "TYPE2" IS NOT NULL THEN concat("ADDRESS",' ',"NAME2", "TYPE2",' Unit ',"UNIT2") WHEN "UNIT2" IS NOT NULL AND "TYPE2" IS NULL THEN concat("ADDRESS",' ',"NAME2", ' Unit ', "UNIT2") ELSE concat("ADDRESS",' ',"PREFIX2",' ',"NAME2",' ',"TYPE2",' Unit ',"UNIT2") END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment