Skip to content

Instantly share code, notes, and snippets.

@naoliv
Created February 5, 2018 12:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save naoliv/ddba97060b4fd5c35e1a03d2949b3e1a to your computer and use it in GitHub Desktop.
Save naoliv/ddba97060b4fd5c35e1a03d2949b3e1a to your computer and use it in GitHub Desktop.
Validation rule for landuse inside landuse (including relations)
area[tag("landuse") = parent_tag("landuse")] ∈ area[landuse] {
throwWarning: tr("{0} inside {1}", concat("landuse=", tag("landuse")), concat("landuse=", tag("landuse")));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment