Skip to content

v0.2.47..v0.2.48 changeset grailOverpassStatsQuery.oql

Garret Voltz edited this page Sep 27, 2019 · 1 revision
diff --git a/conf/services/grailOverpassStatsQuery.oql b/conf/services/grailOverpassStatsQuery.oql
new file mode 100644
index 0000000..4b94560
--- /dev/null
+++ b/conf/services/grailOverpassStatsQuery.oql
@@ -0,0 +1,17 @@
+[out:csv(::count, ::"count:nodes", ::"count:ways", ::"count:relations")][bbox:{{bbox}}];
+(
+   node;<;>;
+)->.all;
+
+(
+   relation[natural=coastline];
+   way[natural=coastline];<;>;
+   relation[boundary=census];>;
+   relation[boundary=administrative];
+   way[boundary=administrative];>;
+   node[boundary=administrative];
+)->.exclude;
+
+(.all; - .exclude;);
+
+out count;
\ No newline at end of file
Clone this wiki locally