Skip to content

Instantly share code, notes, and snippets.

@springmeyer
Created October 28, 2013 23:31
Show Gist options
  • Save springmeyer/7206659 to your computer and use it in GitHub Desktop.
Save springmeyer/7206659 to your computer and use it in GitHub Desktop.
( SELECT way, waterway AS type,
CASE WHEN intermittent IN ('yes') OR tags@> hstore('seasonal','yes') THEN 'yes'
ELSE 'no' END AS seasonal
FROM planet_osm_line
WHERE waterway IN ('river', 'canal', 'stream', 'ditch', 'drain')) as tmp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment