From cc2f1c06b71e8ec661ed898e7c4634934762ac92 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= <skunk@xover.mud.at>
Date: Thu, 7 Jun 2018 22:02:35 +0200
Subject: [PATCH] Fossil Energy: new category

---
 fossil-energy.json | 52 ++++++++++++++++++++++++++++++++++++++++++++++
 index.json         |  3 +++
 2 files changed, 55 insertions(+)
 create mode 100644 fossil-energy.json

diff --git a/fossil-energy.json b/fossil-energy.json
new file mode 100644
index 0000000..9e13d73
--- /dev/null
+++ b/fossil-energy.json
@@ -0,0 +1,52 @@
+{
+    "type": "overpass",
+    "name": {
+        "de": "Fossile Energie",
+        "en": "Fossil energy"
+    },
+    "query": {
+        "11": [
+            "(",
+            "way[man_made=pipeline][substance~\"^(oil|gas|lng|cng|multiphase)$\"];",
+            "relation[man_made=pipeline][substance~\"^(oil|gas|lng|cng|multiphase)$\"];",
+            "way[landuse=industrial][industrial~\"^(refinery)$\"];",
+            "relation[landuse=industrial][industrial~\"^(refinery)$\"];",
+            "way[waterway=offshore_field];",
+            "relation[waterway=offshore_field];",
+            "node[man_made~\"^(offshore_platform)$\"];",
+            "way[man_made~\"^(offshore_platform)$\"];",
+            "relation[man_made~\"^(offshore_platform)$\"];",
+            ")"
+        ],
+        "13": [
+            "(",
+            "way[man_made=pipeline][substance~\"^(oil|gas|lng|cng|multiphase)$\"];",
+            "relation[man_made=pipeline][substance~\"^(oil|gas|lng|cng|multiphase)$\"];",
+            "way[landuse=industrial][industrial~\"^(oil|gas|lng|cng|multiphase|refinery|oil_refinery)$\"];",
+            "relation[landuse=industrial][industrial~\"^(oil|gas|lng|cng|multiphase|refinery|oil_refinery)$\"];",
+            "way[waterway=offshore_field];",
+            "relation[waterway=offshore_field];",
+            "node[man_made~\"^(petroleum_well|offshore_platform|gasometer|oil_tank|gas_cavern)$\"];",
+            "node[man_made~\"^(storage_tank)$\"][contents~\"^(oil|gas|lng|cng|multiphase)$\"];",
+            "way[man_made~\"^(petroleum_well|offshore_platform|gasometer|oil_tank|gas_cavern)$\"];",
+            "way[man_made~\"^(storage_tank)$\"][contents~\"^(oil|gas|lng|cng|multiphase)$\"];",
+            "relation[man_made~\"^(petroleum_well|offshore_platform|gasometer|oil_tank|gas_cavern)$\"];",
+            "relation[man_made~\"^(storage_tank)$\"][contents~\"^(oil|gas|lng|cng|multiphase)$\"];",
+            ")"
+        ]
+    },
+    "feature": {
+        "description": [
+            "{% if tags.man_made == 'pipeline' %}",
+            "{{ tagTrans('man_made', 'pipeline') }} ({{ tagTrans('substance', tags.substance) }})",
+            "{% elseif tags.man_made %}",
+            "{{ tagTrans('man_made', tags.man_made) }}",
+            "{% elseif tags.landuse == 'industrial' %}",
+            "{{ tagTrans('landuse', tags.landuse) }} ({{ tagTrans('industrial', tags.industrial) }})",
+            "{% elseif tags.waterway == 'offshore_field' %}",
+            "{{ tagTrans('waterway', tags.waterway) }}",
+            "{% endif %}"
+        ],
+        "markerSymbol": null
+    }
+}
diff --git a/index.json b/index.json
index 1b5b475..5c4104e 100644
--- a/index.json
+++ b/index.json
@@ -237,6 +237,9 @@
                 {
                     "id": "power"
                 },
+                {
+                    "id": "fossil-energy"
+                },
                 {
                     "id": "railway",
                     "type": "index",