Skip to content

Instantly share code, notes, and snippets.

@govvin
Created May 12, 2021 02:09
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 govvin/485799d070d031fb85475c94001e3ace to your computer and use it in GitHub Desktop.
Save govvin/485799d070d031fb85475c94001e3ace to your computer and use it in GitHub Desktop.
Query for boundary relations with missing "admin_centre" roles
/*
Question: Boundary relations without "admin_centre" role nodes
Overpass Turbo query: http://overpass-turbo.eu/s/17ef
For admin_level details, see https://osm.org/wiki/Philippines/Mapping_conventions#Administrative_boundaries
*/
[out:json][timeout:600];
area[admin_level=2]["name"="Philippines"][boundary=administrative]->.NominatimArea;
( rel(area.NominatimArea)[boundary=administrative][admin_level=6]; -
( node(r:"admin_centre")->.a;
rel(bn.a)[boundary=administrative][admin_level=6];
);
);
out geom;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment