Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UPDATE osmm.topographicarea
- SET fcode = (CASE
- --building CASE statements
- WHEN (descriptivegroup @> '{Building}' and descriptiveterm @> '{Archway}') then 1
- WHEN (descriptivegroup @> '{Building}') then 2
- WHEN (descriptiveterm @> '{Step}') then 3
- WHEN (descriptivegroup @> '{Glasshouse}') then 4
- WHEN (descriptivegroup @> '{Historic Interest}') then 5
- WHEN (descriptivegroup @> '{Inland Water}') then 6
- ELSE 99
- END);
- COMMIT;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement