Advertisement
Guest User

Untitled

a guest
Nov 27th, 2014
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. UPDATE osmm.topographicarea
  2. SET fcode = (CASE
  3. --building CASE statements
  4. WHEN (descriptivegroup @> '{Building}' and descriptiveterm @> '{Archway}') then 1
  5. WHEN (descriptivegroup @> '{Building}') then 2
  6.  
  7. WHEN (descriptiveterm @> '{Step}') then 3
  8. WHEN (descriptivegroup @> '{Glasshouse}') then 4
  9. WHEN (descriptivegroup @> '{Historic Interest}') then 5
  10. WHEN (descriptivegroup @> '{Inland Water}') then 6
  11. ELSE 99
  12. END);
  13. COMMIT;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement