From 110197e0349d9b71a1988442466f8917e6c39c01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9mie=20Lehuby?= Date: Wed, 1 Oct 2025 19:28:34 +0200 Subject: [PATCH] add mapcss from PowerQA ValidateMyGrid --- mapcss/item_map.py | 215 + plugins/Josm_powerQA.py | 8737 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 8952 insertions(+) create mode 100644 plugins/Josm_powerQA.py diff --git a/mapcss/item_map.py b/mapcss/item_map.py index a80b67a85..b60a3853e 100644 --- a/mapcss/item_map.py +++ b/mapcss/item_map.py @@ -439,6 +439,221 @@ 'subclass_blacklist': [160705788, 321695123], 'tags': ['tag', 'railway'], 'url': 'https://www.openrailwaymap.org/validator/openrailwaymap.validator.mapcss'}, + 'powerQA': {'class': {None: 0, + 'Incompatibility between method and source on a power generator': 5, + 'Incompatibility between method and source on a power plant': 21, + 'Invalid voltage value for this country (Afghanistan)': 35, + 'Invalid voltage value for this country (Albania)': 36, + 'Invalid voltage value for this country (Algeria)': 37, + 'Invalid voltage value for this country (Andorra)': 38, + 'Invalid voltage value for this country (Angola)': 39, + 'Invalid voltage value for this country (Argentina)': 40, + 'Invalid voltage value for this country (Armenia)': 41, + 'Invalid voltage value for this country (Australia)': 42, + 'Invalid voltage value for this country (Austria)': 43, + 'Invalid voltage value for this country (Azerbaijan)': 44, + 'Invalid voltage value for this country (Bahrain)': 45, + 'Invalid voltage value for this country (Bangladesh)': 46, + 'Invalid voltage value for this country (Belarus)': 47, + 'Invalid voltage value for this country (Belgium)': 48, + 'Invalid voltage value for this country (Belize)': 49, + 'Invalid voltage value for this country (Benin)': 50, + 'Invalid voltage value for this country (Bhutan)': 51, + 'Invalid voltage value for this country (Bolivia)': 52, + 'Invalid voltage value for this country (Bosnia and Herzegovina)': 53, + 'Invalid voltage value for this country (Botswana)': 54, + 'Invalid voltage value for this country (Brazil)': 55, + 'Invalid voltage value for this country (Brunei)': 56, + 'Invalid voltage value for this country (Bulgaria)': 57, + 'Invalid voltage value for this country (Burkina Faso)': 58, + 'Invalid voltage value for this country (Burundi)': 59, + 'Invalid voltage value for this country (Cambodia)': 60, + 'Invalid voltage value for this country (Cameroon)': 61, + 'Invalid voltage value for this country (Canada)': 62, + 'Invalid voltage value for this country (Cape Verde)': 63, + 'Invalid voltage value for this country (Central African Republic)': 64, + 'Invalid voltage value for this country (Chad)': 65, + 'Invalid voltage value for this country (Chile)': 66, + 'Invalid voltage value for this country (Colombia)': 67, + 'Invalid voltage value for this country (Costa Rica)': 68, + 'Invalid voltage value for this country (Croatia)': 69, + 'Invalid voltage value for this country (Cuba)': 70, + 'Invalid voltage value for this country (Cyprus)': 71, + 'Invalid voltage value for this country (Czech Republic)': 72, + 'Invalid voltage value for this country (Democratic Republic of the Congo)': 73, + 'Invalid voltage value for this country (Djibouti)': 74, + 'Invalid voltage value for this country (Dominican Republic)': 75, + 'Invalid voltage value for this country (Ecuador)': 76, + 'Invalid voltage value for this country (Egypt)': 77, + 'Invalid voltage value for this country (El Salvador)': 78, + 'Invalid voltage value for this country (Equatorial Guinea)': 79, + 'Invalid voltage value for this country (Eritrea)': 80, + 'Invalid voltage value for this country (Estonia)': 81, + 'Invalid voltage value for this country (Eswatini)': 82, + 'Invalid voltage value for this country (Ethiopia)': 83, + 'Invalid voltage value for this country (Federated States of Micronesia)': 84, + 'Invalid voltage value for this country (Fiji)': 85, + 'Invalid voltage value for this country (Finland)': 86, + 'Invalid voltage value for this country (France)': 87, + 'Invalid voltage value for this country (Gabon)': 88, + 'Invalid voltage value for this country (Georgia)': 89, + 'Invalid voltage value for this country (Germany)': 90, + 'Invalid voltage value for this country (Ghana)': 91, + 'Invalid voltage value for this country (Greece)': 92, + 'Invalid voltage value for this country (Guatemala)': 93, + 'Invalid voltage value for this country (Guinea)': 94, + 'Invalid voltage value for this country (Guinea-Bissau)': 95, + 'Invalid voltage value for this country (Haiti)': 96, + 'Invalid voltage value for this country (Honduras)': 97, + 'Invalid voltage value for this country (Hungary)': 98, + 'Invalid voltage value for this country (Iceland)': 99, + 'Invalid voltage value for this country (India)': 100, + 'Invalid voltage value for this country (Indonesia)': 101, + 'Invalid voltage value for this country (Iran)': 102, + 'Invalid voltage value for this country (Iraq)': 103, + 'Invalid voltage value for this country (Ireland)': 104, + 'Invalid voltage value for this country (Israel)': 105, + 'Invalid voltage value for this country (Italy)': 106, + 'Invalid voltage value for this country (Ivory Coast)': 107, + 'Invalid voltage value for this country (Jamaica)': 108, + 'Invalid voltage value for this country (Japan)': 109, + 'Invalid voltage value for this country (Jordan)': 110, + 'Invalid voltage value for this country (Kazakhstan)': 111, + 'Invalid voltage value for this country (Kenya)': 112, + 'Invalid voltage value for this country (Kingdom of Denmark)': 113, + 'Invalid voltage value for this country (Kingdom of the Netherlands)': 114, + 'Invalid voltage value for this country (Kuwait)': 115, + 'Invalid voltage value for this country (Kyrgyzstan)': 116, + 'Invalid voltage value for this country (Laos)': 117, + 'Invalid voltage value for this country (Latvia)': 118, + 'Invalid voltage value for this country (Lebanon)': 119, + 'Invalid voltage value for this country (Lesotho)': 120, + 'Invalid voltage value for this country (Liberia)': 121, + 'Invalid voltage value for this country (Libya)': 122, + 'Invalid voltage value for this country (Liechtenstein)': 123, + 'Invalid voltage value for this country (Lithuania)': 124, + 'Invalid voltage value for this country (Luxembourg)': 125, + 'Invalid voltage value for this country (Madagascar)': 126, + 'Invalid voltage value for this country (Malawi)': 127, + 'Invalid voltage value for this country (Malaysia)': 128, + 'Invalid voltage value for this country (Maldives)': 129, + 'Invalid voltage value for this country (Mali)': 130, + 'Invalid voltage value for this country (Malta)': 131, + 'Invalid voltage value for this country (Mauritania)': 132, + 'Invalid voltage value for this country (Mauritius)': 133, + 'Invalid voltage value for this country (Mexico)': 134, + 'Invalid voltage value for this country (Moldova)': 135, + 'Invalid voltage value for this country (Mongolia)': 136, + 'Invalid voltage value for this country (Montenegro)': 137, + 'Invalid voltage value for this country (Morocco)': 138, + 'Invalid voltage value for this country (Mozambique)': 139, + 'Invalid voltage value for this country (Myanmar)': 140, + 'Invalid voltage value for this country (Namibia)': 141, + 'Invalid voltage value for this country (Nepal)': 142, + 'Invalid voltage value for this country (New Zealand)': 143, + 'Invalid voltage value for this country (Nicaragua)': 144, + 'Invalid voltage value for this country (Niger)': 145, + 'Invalid voltage value for this country (Nigeria)': 146, + 'Invalid voltage value for this country (North Korea)': 147, + 'Invalid voltage value for this country (North Macedonia)': 148, + 'Invalid voltage value for this country (Norway)': 149, + 'Invalid voltage value for this country (Oman)': 150, + 'Invalid voltage value for this country (Pakistan)': 151, + 'Invalid voltage value for this country (Panama)': 152, + 'Invalid voltage value for this country (Papua New Guinea)': 153, + 'Invalid voltage value for this country (Paraguay)': 154, + "Invalid voltage value for this country (People's Republic of China)": 155, + 'Invalid voltage value for this country (Peru)': 156, + 'Invalid voltage value for this country (Philippines)': 157, + 'Invalid voltage value for this country (Poland)': 158, + 'Invalid voltage value for this country (Portugal)': 159, + 'Invalid voltage value for this country (Qatar)': 160, + 'Invalid voltage value for this country (Republic of the Congo)': 161, + 'Invalid voltage value for this country (Romania)': 162, + 'Invalid voltage value for this country (Russia)': 163, + 'Invalid voltage value for this country (Rwanda)': 164, + 'Invalid voltage value for this country (San Marino)': 165, + 'Invalid voltage value for this country (Saudi Arabia)': 166, + 'Invalid voltage value for this country (Senegal)': 167, + 'Invalid voltage value for this country (Serbia)': 168, + 'Invalid voltage value for this country (Sierra Leone)': 169, + 'Invalid voltage value for this country (Singapore)': 170, + 'Invalid voltage value for this country (Slovakia)': 171, + 'Invalid voltage value for this country (Slovenia)': 172, + 'Invalid voltage value for this country (South Africa)': 173, + 'Invalid voltage value for this country (South Korea)': 174, + 'Invalid voltage value for this country (South Sudan)': 175, + 'Invalid voltage value for this country (Spain)': 176, + 'Invalid voltage value for this country (Sri Lanka)': 177, + 'Invalid voltage value for this country (State of Palestine)': 178, + 'Invalid voltage value for this country (Sudan)': 179, + 'Invalid voltage value for this country (Suriname)': 180, + 'Invalid voltage value for this country (Sweden)': 181, + 'Invalid voltage value for this country (Switzerland)': 182, + 'Invalid voltage value for this country (Syria)': 183, + 'Invalid voltage value for this country (Taiwan)': 184, + 'Invalid voltage value for this country (Tajikistan)': 185, + 'Invalid voltage value for this country (Tanzania)': 186, + 'Invalid voltage value for this country (Thailand)': 187, + 'Invalid voltage value for this country (The Bahamas)': 188, + 'Invalid voltage value for this country (The Gambia)': 189, + 'Invalid voltage value for this country (Timor-Leste)': 190, + 'Invalid voltage value for this country (Togo)': 191, + 'Invalid voltage value for this country (Trinidad and Tobago)': 192, + 'Invalid voltage value for this country (Tunisia)': 193, + 'Invalid voltage value for this country (Turkey)': 194, + 'Invalid voltage value for this country (Turkmenistan)': 195, + 'Invalid voltage value for this country (Uganda)': 196, + 'Invalid voltage value for this country (Ukraine)': 197, + 'Invalid voltage value for this country (United Arab Emirates)': 198, + 'Invalid voltage value for this country (United Kingdom)': 199, + 'Invalid voltage value for this country (United States)': 200, + 'Invalid voltage value for this country (Uruguay)': 201, + 'Invalid voltage value for this country (Uzbekistan)': 202, + 'Invalid voltage value for this country (Venezuela)': 203, + 'Invalid voltage value for this country (Vietnam)': 204, + 'Invalid voltage value for this country (Yemen)': 205, + 'Invalid voltage value for this country (Zambia)': 206, + 'Invalid voltage value for this country (Zimbabwe)': 207, + 'Is it a power circuit or a power line section? Add the power=* tag accordingly.': 208, + 'Unsuitable method for biofuel generator': 13, + 'Unsuitable method for biofuel power plant': 29, + 'Unsuitable method for biogas generator': 14, + 'Unsuitable method for biogas power plant': 30, + 'Unsuitable method for biomass generator': 12, + 'Unsuitable method for biomass power plant': 28, + 'Unsuitable method for coal generator': 10, + 'Unsuitable method for coal power plant': 26, + 'Unsuitable method for diesel generator': 16, + 'Unsuitable method for diesel power plant': 32, + 'Unsuitable method for gas generator': 11, + 'Unsuitable method for gas power plant': 27, + 'Unsuitable method for gasoline generator': 17, + 'Unsuitable method for gasoline power plant': 33, + 'Unsuitable method for hydro generator': 7, + 'Unsuitable method for hydro power plant': 23, + 'Unsuitable method for nuclear generator': 4, + 'Unsuitable method for nuclear power plant': 20, + 'Unsuitable method for oil generator': 15, + 'Unsuitable method for oil power plant': 31, + 'Unsuitable method for solar generator': 9, + 'Unsuitable method for solar power plant': 25, + 'Unsuitable method for tidal generator': 8, + 'Unsuitable method for tidal power plant': 24, + 'Unsuitable method for waste generator': 18, + 'Unsuitable method for waste power plant': 34, + 'Unsuitable method for wind generator': 6, + 'Unsuitable method for wind power plant': 22, + 'Unsuitable value for generator:source=* tag': 3, + 'Unsuitable value for plant:source=* tag': 19, + 'Unsuitable value for power=* tag': 1, + 'Unsuitable value for transformer=* tag': 2, + 'power=circuit relations should have a topology tag with value linear or branched': 209, + 'wires tag should be on the power line and not on the circuit relation': 210}, + 'item': 9042, + 'prefix': 'Josm_', + 'tags': ['tag', 'power'], + 'url': 'https://github.com/open-energy-transition/validate-my-grid/blob/gh-pages/powerQA.validator.mapcss'}, 'relation': {'class': {'missing tag': 9007001}, 'item': 9007, 'prefix': 'Josm_', diff --git a/plugins/Josm_powerQA.py b/plugins/Josm_powerQA.py new file mode 100644 index 000000000..b7f775a52 --- /dev/null +++ b/plugins/Josm_powerQA.py @@ -0,0 +1,8737 @@ +#-*- coding: utf-8 -*- +import modules.mapcss_lib as mapcss +import regex as re # noqa + +from plugins.Plugin import with_options # noqa +from plugins.PluginMapCSS import PluginMapCSS + + +class Josm_powerQA(PluginMapCSS): + # ------------------------------- IMPORTANT ------------------------------- + # This file is generated automatically and should not be modified directly. + # Instead, modify the source mapcss file and regenerate this Python script. + # ------------------------------------------------------------------------- + + MAPCSS_URL = 'https://github.com/open-energy-transition/validate-my-grid/blob/gh-pages/powerQA.validator.mapcss' + + + def init(self, logger): + super().init(logger) + tags = capture_tags = {} # noqa + self.errors[1] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Unsuitable value for power=* tag'), fix = mapcss.tr('Check the list of possible values on the wiki and correct the tag for this object.'), detail = mapcss.tr('The power=* tag can only have certain well-defined values. This is probably a typo or an deprecated way of tagging.'), resource = 'https://wiki.openstreetmap.org/wiki/Key:power') + self.errors[2] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Unsuitable value for transformer=* tag'), fix = mapcss.tr('Check the list of possible values on the wiki and correct the tag for this object.'), detail = mapcss.tr('The transformer=* tag can only have certain well-defined values. This is probably a typo or an deprecated way of tagging.'), resource = 'https://wiki.openstreetmap.org/wiki/Key:transformer') + self.errors[3] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Unsuitable value for generator:source=* tag'), fix = mapcss.tr('Check the list of possible values on the wiki and correct the tag for this object.'), detail = mapcss.tr('The generator:source=* tag can only have certain well-defined values. This is probably a typo or an deprecated way of tagging.'), resource = 'https://wiki.openstreetmap.org/wiki/Key:generator:source') + self.errors[4] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Unsuitable method for nuclear generator'), fix = mapcss.tr('Check the list of possible values for this source on the wiki and correct the `{0}` tag.', 'generator:method'), detail = mapcss.tr('Nuclear generator can only use certain well-defined methods to generate energy.'), resource = 'https://wiki.openstreetmap.org/wiki/Key:generator:method') + self.errors[5] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Incompatibility between method and source on a power generator'), fix = mapcss.tr('Check the wiki page and change the `{0}` tag or the `{1}` tag accordingly.', 'generator:method', 'generator:source'), detail = mapcss.tr('It is not possible to use the specified method to generate energy from this source.'), resource = 'https://wiki.openstreetmap.org/wiki/Key:generator:method') + self.errors[6] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Unsuitable method for wind generator'), fix = mapcss.tr('Remove the `{0}` tag or change it to `{1}`.', 'generator:method', 'wind_turbine'), detail = mapcss.tr('Wind generators can only use turbines to generate energy.'), resource = 'https://wiki.openstreetmap.org/wiki/Key:generator:method') + self.errors[7] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Unsuitable method for hydro generator'), fix = mapcss.tr('Check the list of possible values for this source on the wiki and correct the `{0}` tag.', 'generator:method'), detail = mapcss.tr('Hydro generator can only use certain well-defined methods to generate energy.'), resource = 'https://wiki.openstreetmap.org/wiki/Key:generator:method') + self.errors[8] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Unsuitable method for tidal generator'), fix = mapcss.tr('Check the list of possible values for this source on the wiki and correct the `{0}` tag.', 'generator:method'), detail = mapcss.tr('Tidal generator can only use certain well-defined methods to generate energy.'), resource = 'https://wiki.openstreetmap.org/wiki/Key:generator:method') + self.errors[9] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Unsuitable method for solar generator'), fix = mapcss.tr('Check the list of possible values for this source on the wiki and correct the `{0}` tag.', 'generator:method'), detail = mapcss.tr('Solar generator can only use certain well-defined methods to generate energy.'), resource = 'https://wiki.openstreetmap.org/wiki/Key:generator:method') + self.errors[10] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Unsuitable method for coal generator'), fix = mapcss.tr('Check the list of possible values for this source on the wiki and correct the `{0}` tag.', 'generator:method'), detail = mapcss.tr('Coal generator can only use certain well-defined methods to generate energy.'), resource = 'https://wiki.openstreetmap.org/wiki/Key:generator:method') + self.errors[11] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Unsuitable method for gas generator'), fix = mapcss.tr('Check the list of possible values for this source on the wiki and correct the `{0}` tag.', 'generator:method'), detail = mapcss.tr('Gas generator can only use certain well-defined methods to generate energy.'), resource = 'https://wiki.openstreetmap.org/wiki/Key:generator:method') + self.errors[12] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Unsuitable method for biomass generator'), detail = mapcss.tr('Biomass generator can only use certain well-defined methods to generate energy.'), fix = mapcss.tr('Check the list of possible values for this source on the wiki and correct the `{0}` tag.', 'generator:method'), resource = 'https://wiki.openstreetmap.org/wiki/Key:generator:method') + self.errors[13] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Unsuitable method for biofuel generator'), detail = mapcss.tr('Biofuel generator can only use certain well-defined methods to generate energy.'), fix = mapcss.tr('Check the list of possible values for this source on the wiki and correct the `{0}` tag.', 'generator:method'), resource = 'https://wiki.openstreetmap.org/wiki/Key:generator:method') + self.errors[14] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Unsuitable method for biogas generator'), detail = mapcss.tr('Biogas generator can only use certain well-defined methods to generate energy.'), fix = mapcss.tr('Check the list of possible values for this source on the wiki and correct the `{0}` tag.', 'generator:method'), resource = 'https://wiki.openstreetmap.org/wiki/Key:generator:method') + self.errors[15] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Unsuitable method for oil generator'), fix = mapcss.tr('Check the list of possible values for this source on the wiki and correct the `{0}` tag.', 'generator:method'), detail = mapcss.tr('Oil generator can only use certain well-defined methods to generate energy.'), resource = 'https://wiki.openstreetmap.org/wiki/Key:generator:method') + self.errors[16] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Unsuitable method for diesel generator'), fix = mapcss.tr('Check the list of possible values for this source on the wiki and correct the `{0}` tag.', 'generator:method'), detail = mapcss.tr('Diesel generator can only use certain well-defined methods to generate energy.'), resource = 'https://wiki.openstreetmap.org/wiki/Key:generator:method') + self.errors[17] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Unsuitable method for gasoline generator'), fix = mapcss.tr('Check the list of possible values for this source on the wiki and correct the `{0}` tag.', 'generator:method'), detail = mapcss.tr('Gasoline generator can only use certain well-defined methods to generate energy.'), resource = 'https://wiki.openstreetmap.org/wiki/Key:generator:method') + self.errors[18] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Unsuitable method for waste generator'), fix = mapcss.tr('Check the list of possible values for this source on the wiki and correct the `{0}` tag.', 'generator:method'), detail = mapcss.tr('Waste generator can only use certain well-defined methods to generate energy.'), resource = 'https://wiki.openstreetmap.org/wiki/Key:generator:method') + self.errors[19] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Unsuitable value for plant:source=* tag'), fix = mapcss.tr('Check the list of possible values on the wiki and correct the tag for this object.'), detail = mapcss.tr('The plant:source=* tag can only have certain well-defined values. This is probably a typo or an deprecated way of tagging.'), resource = 'https://wiki.openstreetmap.org/wiki/Key:plant:source') + self.errors[20] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Unsuitable method for nuclear power plant'), fix = mapcss.tr('Check the list of possible values for this source on the wiki and correct the `{0}` tag.', 'plant:method'), detail = mapcss.tr('Nuclear power plants can only use certain well-defined methods to generate energy.'), resource = 'https://wiki.openstreetmap.org/wiki/Key:plant:method') + self.errors[21] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Incompatibility between method and source on a power plant'), fix = mapcss.tr('Check the wiki page and change the `{0}` tag or the `{1}` tag accordingly.', 'plant:method', 'plant:source'), detail = mapcss.tr('It is not possible to use the specified method to generate energy from this source.'), resource = 'https://wiki.openstreetmap.org/wiki/Key:plant:method') + self.errors[22] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Unsuitable method for wind power plant'), fix = mapcss.tr('Check the list of possible values for this source on the wiki and correct the `{0}` tag.', 'plant:method'), detail = mapcss.tr('Wind power plants can only use certain well-defined methods to generate energy.'), resource = 'https://wiki.openstreetmap.org/wiki/Key:plant:method') + self.errors[23] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Unsuitable method for hydro power plant'), fix = mapcss.tr('Check the list of possible values for this source on the wiki and correct the `{0}` tag.', 'plant:method'), detail = mapcss.tr('Hydro power plants can only use certain well-defined methods to generate energy.'), resource = 'https://wiki.openstreetmap.org/wiki/Key:plant:method') + self.errors[24] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Unsuitable method for tidal power plant'), fix = mapcss.tr('Check the list of possible values for this source on the wiki and correct the `{0}` tag.', 'plant:method'), detail = mapcss.tr('Tidal power plants can only use certain well-defined methods to generate energy.'), resource = 'https://wiki.openstreetmap.org/wiki/Key:plant:method') + self.errors[25] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Unsuitable method for solar power plant'), fix = mapcss.tr('Check the list of possible values for this source on the wiki and correct the `{0}` tag.', 'plant:method'), detail = mapcss.tr('Solar power plants can only use certain well-defined methods to generate energy.'), resource = 'https://wiki.openstreetmap.org/wiki/Key:plant:method') + self.errors[26] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Unsuitable method for coal power plant'), fix = mapcss.tr('Check the list of possible values for this source on the wiki and correct the `{0}` tag.', 'plant:method'), detail = mapcss.tr('Coal power plants can only use certain well-defined methods to generate energy.'), resource = 'https://wiki.openstreetmap.org/wiki/Key:plant:method') + self.errors[27] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Unsuitable method for gas power plant'), fix = mapcss.tr('Check the list of possible values for this source on the wiki and correct the `{0}` tag.', 'plant:method'), detail = mapcss.tr('Gas power plants can only use certain well-defined methods to generate energy.'), resource = 'https://wiki.openstreetmap.org/wiki/Key:plant:method') + self.errors[28] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Unsuitable method for biomass power plant'), detail = mapcss.tr('Biomass power plants can only use certain well-defined methods to generate energy.'), fix = mapcss.tr('Check the list of possible values for this source on the wiki and correct the `{0}` tag.', 'plant:method'), resource = 'https://wiki.openstreetmap.org/wiki/Key:plant:method') + self.errors[29] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Unsuitable method for biofuel power plant'), detail = mapcss.tr('Biofuel power plants can only use certain well-defined methods to generate energy.'), fix = mapcss.tr('Check the list of possible values for this source on the wiki and correct the `{0}` tag.', 'plant:method'), resource = 'https://wiki.openstreetmap.org/wiki/Key:plant:method') + self.errors[30] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Unsuitable method for biogas power plant'), detail = mapcss.tr('Biogas power plants can only use certain well-defined methods to generate energy.'), fix = mapcss.tr('Check the list of possible values for this source on the wiki and correct the `{0}` tag.', 'plant:method'), resource = 'https://wiki.openstreetmap.org/wiki/Key:plant:method') + self.errors[31] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Unsuitable method for oil power plant'), fix = mapcss.tr('Check the list of possible values for this source on the wiki and correct the `{0}` tag.', 'plant:method'), detail = mapcss.tr('Oil power plants can only use certain well-defined methods to generate energy.'), resource = 'https://wiki.openstreetmap.org/wiki/Key:plant:method') + self.errors[32] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Unsuitable method for diesel power plant'), fix = mapcss.tr('Check the list of possible values for this source on the wiki and correct the `{0}` tag.', 'plant:method'), detail = mapcss.tr('Diesel power plants can only use certain well-defined methods to generate energy.'), resource = 'https://wiki.openstreetmap.org/wiki/Key:plant:method') + self.errors[33] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Unsuitable method for gasoline power plant'), fix = mapcss.tr('Check the list of possible values for this source on the wiki and correct the `{0}` tag.', 'plant:method'), detail = mapcss.tr('Gasoline power plants can only use certain well-defined methods to generate energy.'), resource = 'https://wiki.openstreetmap.org/wiki/Key:plant:method') + self.errors[34] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Unsuitable method for waste power plant'), fix = mapcss.tr('Check the list of possible values for this source on the wiki and correct the `{0}` tag.', 'plant:method'), detail = mapcss.tr('Waste power plants can only use certain well-defined methods to generate energy.'), resource = 'https://wiki.openstreetmap.org/wiki/Key:plant:method') + self.errors[35] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Afghanistan)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Afghanistan') + self.errors[36] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Albania)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Albania') + self.errors[37] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Algeria)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Algeria') + self.errors[38] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Andorra)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Andorra') + self.errors[39] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Angola)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Angola') + self.errors[40] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Argentina)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Argentina') + self.errors[41] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Armenia)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Armenia') + self.errors[42] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Australia)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Australia') + self.errors[43] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Austria)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Austria') + self.errors[44] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Azerbaijan)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Azerbaijan') + self.errors[45] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Bahrain)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Bahrain') + self.errors[46] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Bangladesh)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Bangladesh') + self.errors[47] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Belarus)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Belarus') + self.errors[48] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Belgium)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Belgium') + self.errors[49] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Belize)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Belize') + self.errors[50] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Benin)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Benin') + self.errors[51] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Bhutan)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Bhutan') + self.errors[52] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Bolivia)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Bolivia') + self.errors[53] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Bosnia and Herzegovina)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Bosnia_and_Herzegovina') + self.errors[54] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Botswana)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Botswana') + self.errors[55] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Brazil)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Brazil') + self.errors[56] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Brunei)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Brunei') + self.errors[57] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Bulgaria)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Bulgaria') + self.errors[58] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Burkina Faso)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Burkina_Faso') + self.errors[59] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Burundi)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Burundi') + self.errors[60] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Cambodia)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Cambodia') + self.errors[61] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Cameroon)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Cameroon') + self.errors[62] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Canada)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Canada') + self.errors[63] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Cape Verde)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Cape_Verde') + self.errors[64] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Central African Republic)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Central_African_Republic') + self.errors[65] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Chad)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Chad') + self.errors[66] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Chile)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Chile') + self.errors[67] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Colombia)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Colombia') + self.errors[68] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Costa Rica)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Costa_Rica') + self.errors[69] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Croatia)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Croatia') + self.errors[70] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Cuba)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Cuba') + self.errors[71] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Cyprus)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Cyprus') + self.errors[72] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Czech Republic)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Czech_Republic') + self.errors[73] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Democratic Republic of the Congo)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Democratic_Republic_of_the_Congo') + self.errors[74] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Djibouti)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Djibouti') + self.errors[75] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Dominican Republic)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Dominican_Republic') + self.errors[76] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Ecuador)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Ecuador') + self.errors[77] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Egypt)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Egypt') + self.errors[78] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (El Salvador)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/El_Salvador') + self.errors[79] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Equatorial Guinea)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Equatorial_Guinea') + self.errors[80] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Eritrea)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Eritrea') + self.errors[81] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Estonia)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Estonia') + self.errors[82] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Eswatini)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Eswatini') + self.errors[83] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Ethiopia)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Ethiopia') + self.errors[84] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Federated States of Micronesia)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Federated_States_of_Micronesia') + self.errors[85] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Fiji)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Fiji') + self.errors[86] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Finland)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Finland') + self.errors[87] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (France)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/France') + self.errors[88] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Gabon)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Gabon') + self.errors[89] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Georgia)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Georgia') + self.errors[90] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Germany)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Germany') + self.errors[91] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Ghana)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Ghana') + self.errors[92] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Greece)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Greece') + self.errors[93] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Guatemala)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Guatemala') + self.errors[94] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Guinea)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Guinea') + self.errors[95] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Guinea-Bissau)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Guinea-Bissau') + self.errors[96] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Haiti)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Haiti') + self.errors[97] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Honduras)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Honduras') + self.errors[98] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Hungary)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Hungary') + self.errors[99] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Iceland)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Iceland') + self.errors[100] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (India)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/India') + self.errors[101] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Indonesia)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Indonesia') + self.errors[102] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Iran)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Iran') + self.errors[103] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Iraq)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Iraq') + self.errors[104] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Ireland)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Ireland') + self.errors[105] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Israel)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Israel') + self.errors[106] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Italy)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Italy') + self.errors[107] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Ivory Coast)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Ivory_Coast') + self.errors[108] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Jamaica)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Jamaica') + self.errors[109] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Japan)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Japan') + self.errors[110] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Jordan)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Jordan') + self.errors[111] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Kazakhstan)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Kazakhstan') + self.errors[112] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Kenya)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Kenya') + self.errors[113] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Kingdom of Denmark)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Denmark') + self.errors[114] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Kingdom of the Netherlands)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Netherlands') + self.errors[115] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Kuwait)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Kuwait') + self.errors[116] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Kyrgyzstan)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Kyrgyzstan') + self.errors[117] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Laos)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Laos') + self.errors[118] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Latvia)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Latvia') + self.errors[119] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Lebanon)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Lebanon') + self.errors[120] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Lesotho)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Lesotho') + self.errors[121] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Liberia)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Liberia') + self.errors[122] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Libya)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Libya') + self.errors[123] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Liechtenstein)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Liechtenstein') + self.errors[124] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Lithuania)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Lithuania') + self.errors[125] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Luxembourg)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Luxembourg') + self.errors[126] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Madagascar)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Madagascar') + self.errors[127] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Malawi)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Malawi') + self.errors[128] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Malaysia)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Malaysia') + self.errors[129] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Maldives)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Maldives') + self.errors[130] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Mali)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Mali') + self.errors[131] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Malta)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Malta') + self.errors[132] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Mauritania)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Mauritania') + self.errors[133] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Mauritius)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Mauritius') + self.errors[134] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Mexico)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Mexico') + self.errors[135] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Moldova)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Moldova') + self.errors[136] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Mongolia)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Mongolia') + self.errors[137] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Montenegro)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Montenegro') + self.errors[138] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Morocco)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Morocco') + self.errors[139] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Mozambique)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Mozambique') + self.errors[140] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Myanmar)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Myanmar') + self.errors[141] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Namibia)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Namibia') + self.errors[142] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Nepal)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Nepal') + self.errors[143] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (New Zealand)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/New_Zealand') + self.errors[144] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Nicaragua)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Nicaragua') + self.errors[145] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Niger)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Niger') + self.errors[146] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Nigeria)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Nigeria') + self.errors[147] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (North Korea)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/North_Korea') + self.errors[148] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (North Macedonia)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/North_Macedonia') + self.errors[149] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Norway)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Norway') + self.errors[150] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Oman)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Oman') + self.errors[151] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Pakistan)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Pakistan') + self.errors[152] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Panama)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Panama') + self.errors[153] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Papua New Guinea)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Papua_New_Guinea') + self.errors[154] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Paraguay)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Paraguay') + self.errors[155] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (People\'s Republic of China)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/China') + self.errors[156] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Peru)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Peru') + self.errors[157] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Philippines)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Philippines') + self.errors[158] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Poland)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Poland') + self.errors[159] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Portugal)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Portugal') + self.errors[160] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Qatar)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Qatar') + self.errors[161] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Republic of the Congo)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Republic_of_the_Congo') + self.errors[162] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Romania)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Romania') + self.errors[163] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Russia)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Russia') + self.errors[164] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Rwanda)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Rwanda') + self.errors[165] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (San Marino)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/San_Marino') + self.errors[166] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Saudi Arabia)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Saudi_Arabia') + self.errors[167] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Senegal)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Senegal') + self.errors[168] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Serbia)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Serbia') + self.errors[169] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Sierra Leone)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Sierra_Leone') + self.errors[170] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Singapore)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Singapore') + self.errors[171] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Slovakia)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Slovakia') + self.errors[172] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Slovenia)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Slovenia') + self.errors[173] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (South Africa)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/South_Africa') + self.errors[174] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (South Korea)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/South_Korea') + self.errors[175] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (South Sudan)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/South_Sudan') + self.errors[176] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Spain)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Spain') + self.errors[177] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Sri Lanka)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Sri_Lanka') + self.errors[178] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (State of Palestine)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/State_of_Palestine') + self.errors[179] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Sudan)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Sudan') + self.errors[180] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Suriname)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Suriname') + self.errors[181] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Sweden)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Sweden') + self.errors[182] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Switzerland)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Switzerland') + self.errors[183] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Syria)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Syria') + self.errors[184] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Taiwan)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Taiwan') + self.errors[185] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Tajikistan)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Tajikistan') + self.errors[186] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Tanzania)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Tanzania') + self.errors[187] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Thailand)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Thailand') + self.errors[188] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (The Bahamas)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/The_Bahamas') + self.errors[189] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (The Gambia)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/The_Gambia') + self.errors[190] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Timor-Leste)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Timor-Leste') + self.errors[191] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Togo)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Togo') + self.errors[192] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Trinidad and Tobago)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Trinidad_and_Tobago') + self.errors[193] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Tunisia)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Tunisia') + self.errors[194] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Turkey)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Turkey') + self.errors[195] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Turkmenistan)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Turkmenistan') + self.errors[196] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Uganda)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Uganda') + self.errors[197] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Ukraine)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Ukraine') + self.errors[198] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (United Arab Emirates)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/United_Arab_Emirates') + self.errors[199] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (United Kingdom)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Great_Britain') + self.errors[200] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (United States)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/United_States') + self.errors[201] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Uruguay)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Uruguay') + self.errors[202] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Uzbekistan)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Uzbekistan') + self.errors[203] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Venezuela)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Venezuela') + self.errors[204] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Vietnam)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Vietnam') + self.errors[205] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Yemen)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Yemen') + self.errors[206] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Zambia)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Zambia') + self.errors[207] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Invalid voltage value for this country (Zimbabwe)'), fix = mapcss.tr('Check the list of possible values for this country on the wiki and correct the `0` tag.', 'voltage'), detail = mapcss.tr('Each country has its own voltage set used for electricity transmission.'), example = mapcss.tr('For example, in Jordan, only 132 kV and 400 kV voltages are used.'), trap = {"en": 'If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check.'}, resource = 'https://wiki.openstreetmap.org/wiki/Power_networks/Zimbabwe') + self.errors[208] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('Is it a power circuit or a power line section? Add the power=* tag accordingly.'), fix = mapcss.tr('Check whether it is a line section or a complete circuit, and add the power tag accordingly.'), detail = mapcss.tr('There are only two possible types of power relation. The power tag must be added to specify which type is involved here.'), resource = 'https://wiki.openstreetmap.org/wiki/Relation:power') + self.errors[209] = self.def_class(item = 9042, level = 2, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('power=circuit relations should have a topology tag with value linear or branched'), fix = mapcss.tr('Check the circuit topology and specify a value between `{0}` and `{1}`.', 'linear', 'branched'), detail = mapcss.tr('The topology tag can only take two values on the power circuit context. This is probably a typo or an error.'), resource = 'https://wiki.openstreetmap.org/wiki/Key:topology') + self.errors[210] = self.def_class(item = 9042, level = 3, tags = mapcss.list_('tag', 'power'), title = mapcss.tr('wires tag should be on the power line and not on the circuit relation'), detail = mapcss.tr('Bundles arrangement only regard power segments. A given circuit can go through several line segments with different bundles. Use wires only on power segments.'), fix = mapcss.tr('Remove the tag from the circuit relation and add it to its members instead'), resource = 'https://wiki.openstreetmap.org/wiki/Key:wires#A_physical_property') + + self.re_009ee9c4 = re.compile(r'^(combustion|gasification|anaerobic_digestion)$') + self.re_03e3112c = re.compile(r'^(35000|110000|154000|220000|330000|350000|380000|400000|500000)$') + self.re_0425562b = re.compile(r'^(110000|220000|230000|500000)$') + self.re_043624d0 = re.compile(r'^(33000|66000|150000|220000|400000)$') + self.re_05a6cbca = re.compile(r'^(combustion|gasification)$') + self.re_074fdc09 = re.compile(r'^(69000|138000|230000)$') + self.re_0757e9d5 = re.compile(r'^(11000|12300|13800|15000|16000|20000|22000|24000|25000|27000|32000|33000|33300|35000|36000|66000|90000|110000|132000|145000|150000|170000|200000|220000|250000|254000|270000|275000|320000|400000|450000|515000|525000|600000)$') + self.re_08bfac39 = re.compile(r'^(11000|15000|18000|20000|25000|30000|50000|60000|130000|150000|220000|400000)$') + self.re_0999cd78 = re.compile(r'^(15000|25000|34500|66000|110000|115000|138000|220000|230000|500000)$') + self.re_0a039a95 = re.compile(r'^(66000|132000|220000)$') + self.re_0a188683 = re.compile(r'^(30000|35000|110000|150000|220000|400000)$') + self.re_0bb23efd = re.compile(r'^(23000|33000|132000|230000|400000)$') + self.re_0c11f7a6 = re.compile(r'^(22000|35000|110000|220000|500000)$') + self.re_0cf641e0 = re.compile(r'^(nuclear|wind|hydro|tidal|wave|geothermal|solar|coal|gas|biomass|biofuel|biogas|oil|diesel|gasoline|waste|battery)(;(nuclear|wind|hydro|tidal|wave|geothermal|solar|coal|gas|biomass|biofuel|biogas|oil|diesel|gasoline|waste|battery))*$') + self.re_0d635fe6 = re.compile(r'^(12000|13000|13200|15000|17000|20000|22000|24000|25000|30000|33000|35000|45000|50000|55000|60000|65000|66000|66600|100000|110000|120000|130000|132000|138000|150000|200000|220000|225000|240000|250000|320000|400000)$') + self.re_0e11dbdf = re.compile(r'^(225000)$') + self.re_0f195ae1 = re.compile(r'^(22500|25000|30000|66000|69000|132000|220000|400000|500000)$') + self.re_1031dc3f = re.compile(r'^(10500|19000|20000|22000|33000|38000|110000|200000|220000|275000|320000|380000|400000)$') + self.re_110dc891 = re.compile(r'^(10500|11000|12700|19000|19100|22000|33000|35000|44000|50000|66000|80000|110000|132000|150000|220000|275000|330000|400000|500000)$') + self.re_122154ab = re.compile(r'^(15000|35000|110000|300000|330000|400000)$') + self.re_13fd4c40 = re.compile(r'^(11000|15000|132000|220000|400000|500000)$') + self.re_15aa6eb6 = re.compile(r'^(15000|20000|25000|63000|110000|132000|154000|220000|230000|330000|380000|400000|2300000)$') + self.re_15d3b209 = re.compile(r'^(115000|161000|400000)$') + self.re_1639cf1a = re.compile(r'^(66000)$') + self.re_168afd57 = re.compile(r'^(11000|12000|15000|20000|22000|24000|30000|36000|40000|45000|50000|52000|55000|60000|66000|70000|72500|77000|80000|110000|130000|132000|138000|145000|150000|160000|170000|220000|230000|236000|285000|300000|400000|412000|420000|450000|500000)$') + self.re_17045a03 = re.compile(r'^(63000|138000)$') + self.re_17aa7472 = re.compile(r'^(69000|161000|345000|690000)$') + self.re_1810335f = re.compile(r'^(11000|13200|22000|25000|31000|33000|66000|100000|110000|132000|200000|220000|220001|230000|320000|400000|500000|660000|765000|800000|1200000)$') + self.re_187ae8d5 = re.compile(r'^(132000)$') + self.re_19e5679c = re.compile(r'^(230000)$') + self.re_1b67d214 = re.compile(r'^(13000|20000|22000|23000|24000|25000|30000|33000|34000|50000|66000|110000|150000|220000|320000|380000|450000|600000)$') + self.re_1c0df27c = re.compile(r'^(66000|132000|220000|400000|500000)$') + self.re_1cb10787 = re.compile(r'^(13800|24000|30000|69000|115000|138000|230000|400000|765000)$') + self.re_1e0c1227 = re.compile(r'^(20000|60000)$') + self.re_1f435557 = re.compile(r'^(35000|36000|100000|110000|220000|230000|330000|400000|500000)$') + self.re_20a11341 = re.compile(r'^(60000|66000|110000|132000|150000|220000|400000)$') + self.re_20a91a01 = re.compile(r'^(11000|33000|66000|132000|275000|300000|500000)$') + self.re_2150c255 = re.compile(r'^(161000)$') + self.re_21537747 = re.compile(r'fission|fusion') + self.re_21b86ee6 = re.compile(r'^(22000|50000|110000|115000|220000|230000|500000)$') + self.re_24462be0 = re.compile(r'^(63000|65000|150000|220000|225000)$') + self.re_2450a903 = re.compile(r'^(13800|23100|34500|66000|69000|88000|110000|132000|138000|230000|345000|440000|500000|525000|600000|765000|800000)$') + self.re_247a7ae8 = re.compile(r'^(220000|230000|400000)$') + self.re_24f5f1cd = re.compile(r'^(110000|220000|400000)$') + self.re_25cd10b5 = re.compile(r'^(90000|225000)$') + self.re_25ec0862 = re.compile(r'^(150000)$') + self.re_262476e6 = re.compile(r'line_section|circuit') + self.re_263b6b3e = re.compile(r'^(66000|110000|132000|220000|275000|330000|400000|533000)$') + self.re_2687a5ba = re.compile(r'^(11000|33000|132000|330000)$') + self.re_26c08bf9 = re.compile(r'^(thermal|photovoltaic)$') + self.re_28f9c3db = re.compile(r'^(10500|11000|15000|16000|20000|21000|22000|25000|27000|30000|33000|35000|50000|55000|60000|63000|65000|110000|132000|150000|155000|200000|220000|225000|250000|300000|320000|362000|380000|400000|450000|525000|600000)$') + self.re_296b474d = re.compile(r'^(main|auxiliary|generator|converter|phase_angle_regulator|converter|distribution|yes|traction|minor_distribution|auto)$') + self.re_2bb1cd2e = re.compile(r'^(20000|110000|330000)$') + self.re_2bd2d0e5 = re.compile(r'^(11000|33000|66000|110000|132000|400000)$') + self.re_2c04ecfb = re.compile(r'^(water-storage|water-pumped-storage|run-of-the-river)$') + self.re_2cc8f87e = re.compile(r'^(15000|22500|30000|33000|90000|150000|220000|225000|400000)$') + self.re_2dccca10 = re.compile(r'^(11000|12000|13000|15000|16000|17000|20000|22000|24000|25000|33000|45000|47000|50000|55000|60000|66000|80000|90000|100000|110000|132000|150000|220000|250000|300000|350000|400000|420000|450000|500000|515000|525000|825000)$') + self.re_2e660e01 = re.compile(r'^(66000|132000|220000|400000)$') + self.re_2e7e4902 = re.compile(r'^(70000|110000|220000)$') + self.re_2ea677e3 = re.compile(r'^(66000|110000|220000|500000)$') + self.re_2f6339dc = re.compile(r'^(20000|22000|22500|30000|33000|60000|110000|132000|150000|220000|225000|400000)$') + self.re_2f7e025c = re.compile(r'^(13800)$') + self.re_2fe82f3c = re.compile(r'^(63000|150000|225000)$') + self.re_2ff1797a = re.compile(r'^(10500|15000|16000|20000|30000|35000|60000|66000|100000|110000|138000|150000|154000|220000|330000|350000|400000|500000|750000|800000|1100000)$') + self.re_3007231b = re.compile(r'^(11000|23000|25000|33000|66000|132000|154000|400000)$') + self.re_309280d5 = re.compile(r'^(35000|40000|100000|110000|220000|330000|750000)$') + self.re_313e83ad = re.compile(r'^(25000|33000|110000|115000|132000|230000|380000|400000)$') + self.re_32e2ea6c = re.compile(r'^(11000|11500|12000|12370|12400|12470|12500|13000|13200|13800|13860|14000|14400|14750|15000|16000|17500|18000|19920|19935|20000|20800|21000|21800|22000|23000|23900|24000|24900|24940|25000|26000|26400|27000|27600|32000|33000|34000|34500|34599|35000|35400|37500|38000|40000|41600|43000|43800|44000|46000|49000|50000|55000|57000|57100|60000|66000|69000|70000|71000|87000|88000|92000|100000|110000|111500|115000|120000|125000|130000|132000|138000|150000|160000|161000|200000|220000|230000|235000|250000|260000|276000|287000|320000|345000|400000|450000|460000|500000|690002|765000|1100000|1150003|1333000|1380000)$') + self.re_333c4ef6 = re.compile(r'^(30000|33000|60000|66000|138000|220000|230000|500000)$') + self.re_33f4b70a = re.compile(r'^(20000|25000|35000|110000|220000|400000|500000)$') + self.re_34230a2b = re.compile(r'^(90000|132000|225000)$') + self.re_34dfedad = re.compile(r'^(12000|34500|66000|69000|132000|138000|220000|500000)$') + self.re_351dc689 = re.compile(r'^(11000|161000|225000|330000)$') + self.re_356889db = re.compile(r'^(21000|66000|110000|132000|220000|400000)$') + self.re_35859f0b = re.compile(r'^(11000|66000|132000)$') + self.re_35ea191f = re.compile(r'^(11000|20000|22000|33000|44000|66000|88000|110000|132000|220000|275000|380000|400000|533000|765000)$') + self.re_364ced34 = re.compile(r'^(11000|19000|22000|33000|66000|132000|220000|330000|350000|400000)$') + self.re_375460ae = re.compile(r'^(15000|20000|24000|35000|110000|150000|330000|450000)$') + self.re_38c1c717 = re.compile(r'^(35000|110000|220000|400000)$') + self.re_3907ef06 = re.compile(r'^(11000|15400|20000|22000|25000|30000|33000|44000|60000|66000|77000|100000|110000|132000|154000|187000|200000|220000|250000|275000|500000|660000)$') + self.re_39f1f164 = re.compile(r'^(11000|30000|33000|50000|70000|110000|120000|132000|220000|400000|500000)$') + self.re_39f6e14a = re.compile(r'^(11500|12000|12470|12500|13000|13200|13800|14000|14400|16000|17500|23000|24940|25000|26400|27600|28000|34000|34500|35000|42000|44000|46000|49000|60000|63000|66000|69000|72000|110000|115000|120000|132000|138000|144000|150000|161000|200000|220000|230000|240000|260000|280000|287000|315000|345000|350000|360000|450000|500000|735000|765000)$') + self.re_3aa87d11 = re.compile(r'^(15000|20000|25000|30000|45000|50000|55000|60000|63000|66000|68000|70000|110000|120000|130000|132000|135000|137000|138000|150000|200000|220000|225000|320000|380000|400000|500000)$') + self.re_3b02dceb = re.compile(r'^(33000|35000|110000|330000|400000)$') + self.re_3b2d49c4 = re.compile(r'^(66000|132000|275000)$') + self.re_3c9d3cca = re.compile(r'^(11000|13000|15000|15500|16000|17000|18000|20000|21000|22000|23000|25000|50000|60000|63000|65000|66000|110000|125000|130000|132000|138000|145000|150000|220000|222000|225000|380000|400000)$') + self.re_3de199b9 = re.compile(r'^(35000|110000|138000|220000|500000)$') + self.re_3f88f86c = re.compile(r'^(13800|15000|25000|34500|65000|69000|85000|113000|115000|138000|161000|230000|400000)$') + self.re_40006e82 = re.compile(r'^(11000|20000|33000|66000|110000|132000|230000|500000)$') + self.re_403ae00b = re.compile(r'^(33000|132000|220000|400000)$') + self.re_40d39fce = re.compile(r'^(50000|60000|132000|150000|220000|400000)$') + self.re_4148662f = re.compile(r'^(11000|15000|20000|21000|22000|25000|27000|30000|100000|110000|200000|220000|400000|450000)$') + self.re_4343e75a = re.compile(r'^(35000|110000|220000|400000|500000)$') + self.re_4366c21c = re.compile(r'^(35000|110000|132000|154000|220000|330000|500000)$') + self.re_4399527a = re.compile(r';') + self.re_43d80261 = re.compile(r'^(15000|22900|145000|150000|154000|180000|250000|345000|354000|380000|765000)$') + self.re_445dce10 = re.compile(r'^(30000|110000|225000)$') + self.re_447ac42a = re.compile(r'^(13200|13800|20000|23000|30000|34500|60000|69000|70000|115000|138000|220000|230000|345000|350000|500000)$') + self.re_44d511b4 = re.compile(r'^(69000|138000)$') + self.re_44f7c665 = re.compile(r'^(20000|70000|150000|230000|275000|500000)$') + self.re_455fa519 = re.compile(r'^(15000|90000|225000|400000)$') + self.re_4690e9a7 = re.compile(r'^(33000|66000|132000|220000|400000)$') + self.re_4698125a = re.compile(r'^(132000|400000)$') + self.re_48a46ecb = re.compile(r'^(10300|10500|13000|15000|15500|16000|17000|17200|17500|20000|25000|30000|33000|42000|45000|50000|52000|63000|66000|90000|110000|150000|200000|220000|225000|270000|320000|380000|400000|500000)$') + self.re_494f7be8 = re.compile(r'^(20000|25000|30000|35000|110000|220000|380000|400000)$') + self.re_4a39b920 = re.compile(r'^(11000|22000|23000|34500|46000|48000|69000|138000|230000|500000)$') + self.re_4c208d10 = re.compile(r'^(10500|13800|15000|16000|17500|20000|25000|30000|55000|60000|110000|132000|150000|220000|380000|400000)$') + self.re_4c6c0f8c = re.compile(r'^(66000|132000|400000)$') + self.re_4e6ba896 = re.compile(r'^(132000|220000|400000)$') + self.re_50389fcc = re.compile(r'^(50000|66000|110000|220000)$') + self.re_5079f988 = re.compile(r'^(110000|220000)$') + self.re_526934a1 = re.compile(r'^(11000|66000|110000|154000|220000)$') + self.re_528c9009 = re.compile(r'^(69000|115000)$') + self.re_53561357 = re.compile(r'^(69000|115000|132000|138000|230000|400000)$') + self.re_56b8f45f = re.compile(r'^(11000|15000|33000|66000|132000|220000|400000)$') + self.re_580cbc71 = re.compile(r'^(30000|60000|66000|90000|150000|220000|225000|400000)$') + self.re_583b6258 = re.compile(r'^(barrage|stream)$') + self.re_59057c52 = re.compile(r'^(115000|230000)$') + self.re_59f73886 = re.compile(r'^(22000|33000|35000|110000|220000|380000|400000)$') + self.re_5a39ab8e = re.compile(r'^(22000|110000|220000|400000)$') + self.re_5b4d6241 = re.compile(r'^(waste|gasoline|diesel|oil|biogas|biofuel|biomass|gas|coal)(;(waste|gasoline|diesel|oil|biogas|biofuel|biomass|gas|coal))*$') + self.re_5d252d75 = re.compile(r'^(waste|biomass)(;(waste|biomass))*$') + self.re_5e41b29d = re.compile(r'^(30000|31500|60000|63000|132000|150000|230000|500000)$') + self.re_5e6454d8 = re.compile(r'^(63000|90000|115000|225000)$') + self.re_5ec02c4f = re.compile(r'^(11000|11500|15000|30000|33000|36000|50000|63000|70000|110000|150000|220000|225000|320000|380000|400000)$') + self.re_5ec31fe0 = re.compile(r'^(161000|225000)$') + self.re_5f0cae6b = re.compile(r'^(138000|230000)$') + self.re_601cbfba = re.compile(r'^(33000|66000|132000|275000|400000)$') + self.re_642c98f5 = re.compile(r'^(fission|fusion)$') + self.re_643751fc = re.compile(r'^(11000|18000|20000|22000|25000|35000|110000|132000|220000|400000|750000)$') + self.re_64f34b83 = re.compile(r'^(11000|33000|132000|220000)$') + self.re_65c9364b = re.compile(r'^(33000|66000|88000|110000|132000|220000|330000|400000)$') + self.re_65ecf8ac = re.compile(r'^(110000|115000|220000|230000|500000)$') + self.re_65ed1a9a = re.compile(r'^(10500|11000|22000|23000|25000|27000|27500|33000|35000|50000|63000|66000|100000|110000|132000|160000|220000|230000|275000|320000|330000|400000|500000|544000|660000|750000|800000|1000000|1100000|1150000|2200001|2200002|22000011)$') + self.re_66509c6a = re.compile(r'^(13800|15000|23000|33000|34500|66000|69000|100000|110000|154000|220000|345000|500000)$') + self.re_68c12a97 = re.compile(r'^(20000|22000|25000|45000|80000|100000|110000|150000|220000|400000|450000|500000)$') + self.re_69390aec = re.compile(r'^(66000|132000)$') + self.re_69eb6042 = re.compile(r'^(11000|33000|110000|132000)$') + self.re_6a0cb1be = re.compile(r'^(161000|330000)$') + self.re_6aae528c = re.compile(r'^(10000|110000|220000|500000)$') + self.re_6ae4d0fa = re.compile(r'^(30000|90000|110000|220000|225000)$') + self.re_6ae50e2c = re.compile(r'^(22000|50000|69000|115000|132000|230000|300000|500000)$') + self.re_6b88cc68 = re.compile(r'^(cable|catenary_mast|circuit|compensator|connection|converter|generator|heliostat|insulator|inverter|line|line_section|minor_line|plant|pole|portal|substation|switch|switchgear|terminal|tower|transformer)$') + self.re_6be5b2f4 = re.compile(r'^(20000|25000|38000|55000|110000|220000|380000|400000)$') + self.re_6ccf0b67 = re.compile(r'^(25000|45000|66000|132000|220000|230000|400000|500000)$') + self.re_6d4931b2 = re.compile(r'^(20000|22000|25000|35000|110000|220000|400000)$') + self.re_6dafd830 = re.compile(r'^(15000|22000|35000|110000|220000)$') + self.re_6e8113e9 = re.compile(r'^(11000|33000|66000|110000|132000|220000|230000|500000|660000)$') + self.re_703e20a3 = re.compile(r'^(11000|33000|66000|88000|132000|220000|330000)$') + self.re_713f7fd5 = re.compile(r'^(20000|66000|90000)$') + self.re_71a6f4de = re.compile(r'^(11000|110000|220000)$') + self.re_73467271 = re.compile(r'^(63000|230000)$') + self.re_73a2a316 = re.compile(r'^(15000|20000|22000|66000|150000|400000|500000)$') + self.re_74005c1f = re.compile(r'line|minor_line|cable') + self.re_74a6316e = re.compile(r'^(22000|34500|69000|115000)$') + self.re_753efcad = re.compile(r'^(110000)$') + self.re_754b6662 = re.compile(r'^(linear|branched)$') + self.re_7581d073 = re.compile(r'^(66000|225000)$') + self.re_7889b2ce = re.compile(r'^(13200|25000|32000|33000|35000|66000|132000|220000|330000|345000|500000)$') + self.re_789fa698 = re.compile(r'^(15000|35000|110000|150000|154000|220000|330000|400000|500000|750000|800000)$') + self.re_78f8f400 = re.compile(r'^(15000|20000|35000|100000|110000|220000|400000)$') + self.re_79cf4090 = re.compile(r'^(23000|66000|154000|161000|220000|230000|380000|400000)$') + self.re_7a0db6a9 = re.compile(r'^(20000|25000|31500|34000|34500|35000|36000|66000|150000|154000|170000|220000|345005|380000|400000|1000000)$') + self.re_7a215554 = re.compile(r'^(69000|138000|230000|345000)$') + self.re_7b35047a = re.compile(r'^(110000|132000|220000|500000)$') + self.re_7bbd0e42 = re.compile(r'^(110000|150000|225000)$') + self.re_7c0499f4 = re.compile(r'^(115000|220000|500000)$') + self.re_7d50c8e9 = re.compile(r'^(33000|66000|88000|132000)$') + self.re_7edd7211 = re.compile(r'^(35000|75000|110000|220000|350000|380000|500000)$') + self.re_7f949189 = re.compile(r'^(220000)$') + self.re_7f98a74d = re.compile(r'^(11000|33000|66000|132000|220000|222000|400000)$') + + + def node(self, data, tags): + capture_tags = {} + keys = tags.keys() + err = [] + + + # *[power][power!~/^(cable|catenary_mast|circuit|compensator|connection|converter|generator|heliostat|insulator|inverter|line|line_section|minor_line|plant|pole|portal|substation|switch|switchgear|terminal|tower|transformer)$/] + if ('power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 1, self.re_6b88cc68, '^(cable|catenary_mast|circuit|compensator|connection|converter|generator|heliostat|insulator|inverter|line|line_section|minor_line|plant|pole|portal|substation|switch|switchgear|terminal|tower|transformer)$'), mapcss._tag_capture(capture_tags, 1, tags, 'power')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values on the wiki and correct the tag for this object.") + # -osmoseDetail:tr("The power=* tag can only have certain well-defined values. This is probably a typo or an deprecated way of tagging.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:power" + # throwError:tr("Unsuitable value for power=* tag") + err.append({'class': 1, 'subclass': 36378028, 'text': mapcss.tr('Unsuitable value for power=* tag')}) + + # node[power=transformer][transformer][transformer!~/^(main|auxiliary|generator|converter|phase_angle_regulator|converter|distribution|yes|traction|minor_distribution|auto)$/] + if ('power' in keys and 'transformer' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'transformer')) and (mapcss._tag_capture(capture_tags, 1, tags, 'transformer')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_296b474d, '^(main|auxiliary|generator|converter|phase_angle_regulator|converter|distribution|yes|traction|minor_distribution|auto)$'), mapcss._tag_capture(capture_tags, 2, tags, 'transformer')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values on the wiki and correct the tag for this object.") + # -osmoseDetail:tr("The transformer=* tag can only have certain well-defined values. This is probably a typo or an deprecated way of tagging.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:transformer" + # throwError:tr("Unsuitable value for transformer=* tag") + # assertNoMatch:"node power=transformer transformer=main" + # assertMatch:"node power=transformer transformer=railway" + # assertNoMatch:"node power=transformer" + err.append({'class': 2, 'subclass': 1524257444, 'text': mapcss.tr('Unsuitable value for transformer=* tag')}) + + # *[power=generator][generator:source][generator:source!~/^(nuclear|wind|hydro|tidal|wave|geothermal|solar|coal|gas|biomass|biofuel|biogas|oil|diesel|gasoline|waste|battery)(;(nuclear|wind|hydro|tidal|wave|geothermal|solar|coal|gas|biomass|biofuel|biogas|oil|diesel|gasoline|waste|battery))*$/] + if ('generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss._tag_capture(capture_tags, 1, tags, 'generator:source')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_0cf641e0, '^(nuclear|wind|hydro|tidal|wave|geothermal|solar|coal|gas|biomass|biofuel|biogas|oil|diesel|gasoline|waste|battery)(;(nuclear|wind|hydro|tidal|wave|geothermal|solar|coal|gas|biomass|biofuel|biogas|oil|diesel|gasoline|waste|battery))*$'), mapcss._tag_capture(capture_tags, 2, tags, 'generator:source')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values on the wiki and correct the tag for this object.") + # -osmoseDetail:tr("The generator:source=* tag can only have certain well-defined values. This is probably a typo or an deprecated way of tagging.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:source" + # throwError:tr("Unsuitable value for generator:source=* tag") + # assertMatch:"node power=generator generator:source=geothermals" + # assertNoMatch:"node power=generator generator:source=oil;gas" + # assertMatch:"node power=generator generator:source=photovoltaic" + # assertNoMatch:"node power=generator generator:source=solar" + # assertNoMatch:"node power=generator" + err.append({'class': 3, 'subclass': 600492584, 'text': mapcss.tr('Unsuitable value for generator:source=* tag')}) + + # *[power=generator][generator:source=nuclear][generator:method][generator:method!~/^(fission|fusion)$/] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss._tag_capture(capture_tags, 1, tags, 'generator:source') == mapcss._value_capture(capture_tags, 1, 'nuclear')) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:method')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_642c98f5, '^(fission|fusion)$'), mapcss._tag_capture(capture_tags, 3, tags, 'generator:method')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","generator:method") + # -osmoseDetail:tr("Nuclear generator can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Unsuitable method for nuclear generator") + # suggestAlternative:"fission or fusion" + # fixRemove:"generator:method" + # assertNoMatch:"node power=generator generator:source=nuclear generator:method=fission" + # assertMatch:"node power=generator generator:source=nuclear generator:method=nuclear" + err.append({'class': 4, 'subclass': 1513616022, 'text': mapcss.tr('Unsuitable method for nuclear generator'), 'allow_fix_override': True, 'fix': { + '-': ([ + 'generator:method']) + }}) + + # *[power=generator][generator:method=~/fission|fusion/][generator:source][generator:source!=nuclear] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss.regexp_test(mapcss._value_capture(capture_tags, 1, self.re_21537747), mapcss._tag_capture(capture_tags, 1, tags, 'generator:method'))) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:source')) and (mapcss._tag_capture(capture_tags, 3, tags, 'generator:source') != mapcss._value_const_capture(capture_tags, 3, 'nuclear', 'nuclear'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the wiki page and change the `{0}` tag or the `{1}` tag accordingly.","generator:method","generator:source") + # -osmoseDetail:tr("It is not possible to use the specified method to generate energy from this source.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Incompatibility between method and source on a power generator") + # assertNoMatch:"node power=generator generator:source=nuclear generator:method=fission" + # assertMatch:"node power=generator generator:source=solar generator:method=fusion" + err.append({'class': 5, 'subclass': 1445012384, 'text': mapcss.tr('Incompatibility between method and source on a power generator')}) + + # *[power=generator][generator:source=wind][generator:method][generator:method!=wind_turbine] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss._tag_capture(capture_tags, 1, tags, 'generator:source') == mapcss._value_capture(capture_tags, 1, 'wind')) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:method')) and (mapcss._tag_capture(capture_tags, 3, tags, 'generator:method') != mapcss._value_const_capture(capture_tags, 3, 'wind_turbine', 'wind_turbine'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Remove the `{0}` tag or change it to `{1}`.","generator:method","wind_turbine") + # -osmoseDetail:tr("Wind generators can only use turbines to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Unsuitable method for wind generator") + # fixRemove:"generator:method" + # assertMatch:"node power=generator generator:source=wind generator:method=wind" + # assertNoMatch:"node power=generator generator:source=wind generator:method=wind_turbine" + # assertNoMatch:"node power=generator generator:source=wind" + err.append({'class': 6, 'subclass': 1104182574, 'text': mapcss.tr('Unsuitable method for wind generator'), 'allow_fix_override': True, 'fix': { + '-': ([ + 'generator:method']) + }}) + + # *[power=generator][generator:method=wind_turbine][generator:source][generator:source!=wind] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss._tag_capture(capture_tags, 1, tags, 'generator:method') == mapcss._value_capture(capture_tags, 1, 'wind_turbine')) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:source')) and (mapcss._tag_capture(capture_tags, 3, tags, 'generator:source') != mapcss._value_const_capture(capture_tags, 3, 'wind', 'wind'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the wiki page and change the `{0}` tag or the `{1}` tag accordingly.","generator:method","generator:source") + # -osmoseDetail:tr("It is not possible to use the specified method to generate energy from this source.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Incompatibility between method and source on a power generator") + # assertMatch:"node power=generator generator:source=turbine generator:method=wind_turbine" + # assertNoMatch:"node power=generator generator:source=wind generator:method=wind_turbine" + err.append({'class': 5, 'subclass': 1021686777, 'text': mapcss.tr('Incompatibility between method and source on a power generator')}) + + # *[power=generator][generator:source=hydro][generator:method][generator:method!~/^(water-storage|water-pumped-storage|run-of-the-river)$/] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss._tag_capture(capture_tags, 1, tags, 'generator:source') == mapcss._value_capture(capture_tags, 1, 'hydro')) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:method')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_2c04ecfb, '^(water-storage|water-pumped-storage|run-of-the-river)$'), mapcss._tag_capture(capture_tags, 3, tags, 'generator:method')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","generator:method") + # -osmoseDetail:tr("Hydro generator can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Unsuitable method for hydro generator") + # suggestAlternative:"water-storage, run-of-the-river or water-pumped-storage" + # fixRemove:"generator:method" + # assertMatch:"node power=generator generator:source=hydro generator:method=pump" + # assertNoMatch:"node power=generator generator:source=hydro generator:method=water-storage" + err.append({'class': 7, 'subclass': 1379042787, 'text': mapcss.tr('Unsuitable method for hydro generator'), 'allow_fix_override': True, 'fix': { + '-': ([ + 'generator:method']) + }}) + + # *[power=generator][generator:method=~/^(water-storage|water-pumped-storage|run-of-the-river)$/][generator:source][generator:source!=hydro] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss.regexp_test(mapcss._value_capture(capture_tags, 1, self.re_2c04ecfb), mapcss._tag_capture(capture_tags, 1, tags, 'generator:method'))) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:source')) and (mapcss._tag_capture(capture_tags, 3, tags, 'generator:source') != mapcss._value_const_capture(capture_tags, 3, 'hydro', 'hydro'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the wiki page and change the `{0}` tag or the `{1}` tag accordingly.","generator:method","generator:source") + # -osmoseDetail:tr("It is not possible to use the specified method to generate energy from this source.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Incompatibility between method and source on a power generator") + # assertNoMatch:"node power=generator generator:source=hydro generator:method=water-storage" + # assertMatch:"node power=generator generator:source=water generator:method=water-pumped-storage" + err.append({'class': 5, 'subclass': 1830475878, 'text': mapcss.tr('Incompatibility between method and source on a power generator')}) + + # *[power=generator][generator:source=tidal][generator:method][generator:method!~/^(barrage|stream)$/] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss._tag_capture(capture_tags, 1, tags, 'generator:source') == mapcss._value_capture(capture_tags, 1, 'tidal')) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:method')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_583b6258, '^(barrage|stream)$'), mapcss._tag_capture(capture_tags, 3, tags, 'generator:method')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","generator:method") + # -osmoseDetail:tr("Tidal generator can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Unsuitable method for tidal generator") + # suggestAlternative:"barrage or stream" + # fixRemove:"generator:method" + # assertNoMatch:"node power=generator generator:source=tidal generator:method=barrage" + # assertMatch:"node power=generator generator:source=tidal generator:method=dam" + err.append({'class': 8, 'subclass': 503240008, 'text': mapcss.tr('Unsuitable method for tidal generator'), 'allow_fix_override': True, 'fix': { + '-': ([ + 'generator:method']) + }}) + + # *[power=generator][generator:method=~/^(barrage|stream)$/][generator:source][generator:source!=tidal] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss.regexp_test(mapcss._value_capture(capture_tags, 1, self.re_583b6258), mapcss._tag_capture(capture_tags, 1, tags, 'generator:method'))) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:source')) and (mapcss._tag_capture(capture_tags, 3, tags, 'generator:source') != mapcss._value_const_capture(capture_tags, 3, 'tidal', 'tidal'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the wiki page and change the `{0}` tag or the `{1}` tag accordingly.","generator:method","generator:source") + # -osmoseDetail:tr("It is not possible to use the specified method to generate energy from this source.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Incompatibility between method and source on a power generator") + # assertMatch:"node power=generator generator:source=solar generator:method=stream" + # assertNoMatch:"node power=generator generator:source=tidal generator:method=barrage" + err.append({'class': 5, 'subclass': 976314568, 'text': mapcss.tr('Incompatibility between method and source on a power generator')}) + + # *[power=generator][generator:source=solar][generator:method][generator:method!~/^(thermal|photovoltaic)$/] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss._tag_capture(capture_tags, 1, tags, 'generator:source') == mapcss._value_capture(capture_tags, 1, 'solar')) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:method')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_26c08bf9, '^(thermal|photovoltaic)$'), mapcss._tag_capture(capture_tags, 3, tags, 'generator:method')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","generator:method") + # -osmoseDetail:tr("Solar generator can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Unsuitable method for solar generator") + # suggestAlternative:"thermal or photovoltaic" + # fixRemove:"generator:method" + # assertMatch:"node power=generator generator:source=solar generator:method=solar" + # assertNoMatch:"node power=generator generator:source=solar generator:method=thermal" + err.append({'class': 9, 'subclass': 1095645684, 'text': mapcss.tr('Unsuitable method for solar generator'), 'allow_fix_override': True, 'fix': { + '-': ([ + 'generator:method']) + }}) + + # *[power=generator][generator:method=~/^(thermal|photovoltaic)$/][generator:source][generator:source!=solar] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss.regexp_test(mapcss._value_capture(capture_tags, 1, self.re_26c08bf9), mapcss._tag_capture(capture_tags, 1, tags, 'generator:method'))) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:source')) and (mapcss._tag_capture(capture_tags, 3, tags, 'generator:source') != mapcss._value_const_capture(capture_tags, 3, 'solar', 'solar'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the wiki page and change the `{0}` tag or the `{1}` tag accordingly.","generator:method","generator:source") + # -osmoseDetail:tr("It is not possible to use the specified method to generate energy from this source.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Incompatibility between method and source on a power generator") + # assertMatch:"node power=generator generator:source=photovoltaic generator:method=photovoltaic" + # assertNoMatch:"node power=generator generator:source=solar generator:method=thermal" + err.append({'class': 5, 'subclass': 1457983121, 'text': mapcss.tr('Incompatibility between method and source on a power generator')}) + + # *[power=generator][generator:source=coal][generator:method][generator:method!=combustion] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss._tag_capture(capture_tags, 1, tags, 'generator:source') == mapcss._value_capture(capture_tags, 1, 'coal')) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:method')) and (mapcss._tag_capture(capture_tags, 3, tags, 'generator:method') != mapcss._value_const_capture(capture_tags, 3, 'combustion', 'combustion'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","generator:method") + # -osmoseDetail:tr("Coal generator can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Unsuitable method for coal generator") + # assertMatch:"node power=generator generator:source=coal generator:method=burning" + # assertNoMatch:"node power=generator generator:source=coal generator:method=combustion" + # assertNoMatch:"node power=generator generator:source=coal" + err.append({'class': 10, 'subclass': 727067352, 'text': mapcss.tr('Unsuitable method for coal generator')}) + + # *[power=generator][generator:source=gas][generator:method][generator:method!=combustion] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss._tag_capture(capture_tags, 1, tags, 'generator:source') == mapcss._value_capture(capture_tags, 1, 'gas')) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:method')) and (mapcss._tag_capture(capture_tags, 3, tags, 'generator:method') != mapcss._value_const_capture(capture_tags, 3, 'combustion', 'combustion'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","generator:method") + # -osmoseDetail:tr("Gas generator can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Unsuitable method for gas generator") + # assertNoMatch:"node power=generator generator:source=gas generator:method=combustion" + # assertMatch:"node power=generator generator:source=gas generator:method=gasification" + # assertNoMatch:"node power=generator generator:source=gas" + err.append({'class': 11, 'subclass': 1587058630, 'text': mapcss.tr('Unsuitable method for gas generator')}) + + # *[power=generator][generator:source=biomass][generator:method][generator:method!~/^(combustion|gasification|anaerobic_digestion)$/] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss._tag_capture(capture_tags, 1, tags, 'generator:source') == mapcss._value_capture(capture_tags, 1, 'biomass')) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:method')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_009ee9c4, '^(combustion|gasification|anaerobic_digestion)$'), mapcss._tag_capture(capture_tags, 3, tags, 'generator:method')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseDetail:tr("Biomass generator can only use certain well-defined methods to generate energy.") + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","generator:method") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Unsuitable method for biomass generator") + # suggestAlternative:"combustion, anaerobic_digestion or gasification" + # fixRemove:"generator:method" + # assertNoMatch:"node power=generator generator:source=biomass generator:method=anaerobic_digestion" + # assertMatch:"node power=generator generator:source=biomass generator:method=burn" + err.append({'class': 12, 'subclass': 1563205211, 'text': mapcss.tr('Unsuitable method for biomass generator'), 'allow_fix_override': True, 'fix': { + '-': ([ + 'generator:method']) + }}) + + # *[power=generator][generator:source=biofuel][generator:method][generator:method!=combustion] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss._tag_capture(capture_tags, 1, tags, 'generator:source') == mapcss._value_capture(capture_tags, 1, 'biofuel')) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:method')) and (mapcss._tag_capture(capture_tags, 3, tags, 'generator:method') != mapcss._value_const_capture(capture_tags, 3, 'combustion', 'combustion'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseDetail:tr("Biofuel generator can only use certain well-defined methods to generate energy.") + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","generator:method") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Unsuitable method for biofuel generator") + # assertNoMatch:"node power=generator generator:source=biofuel generator:method=combustion" + # assertMatch:"node power=generator generator:source=biofuel generator:method=gasification" + # assertNoMatch:"node power=generator generator:source=biofuel" + err.append({'class': 13, 'subclass': 2056310355, 'text': mapcss.tr('Unsuitable method for biofuel generator')}) + + # *[power=generator][generator:source=biogas][generator:method][generator:method!=combustion] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss._tag_capture(capture_tags, 1, tags, 'generator:source') == mapcss._value_capture(capture_tags, 1, 'biogas')) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:method')) and (mapcss._tag_capture(capture_tags, 3, tags, 'generator:method') != mapcss._value_const_capture(capture_tags, 3, 'combustion', 'combustion'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseDetail:tr("Biogas generator can only use certain well-defined methods to generate energy.") + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","generator:method") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Unsuitable method for biogas generator") + # assertNoMatch:"node power=generator generator:source=biogas generator:method=combustion" + # assertMatch:"node power=generator generator:source=biogas generator:method=gasification" + # assertNoMatch:"node power=generator generator:source=biogas" + err.append({'class': 14, 'subclass': 1353854094, 'text': mapcss.tr('Unsuitable method for biogas generator')}) + + # *[power=generator][generator:source=oil][generator:method][generator:method!=combustion] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss._tag_capture(capture_tags, 1, tags, 'generator:source') == mapcss._value_capture(capture_tags, 1, 'oil')) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:method')) and (mapcss._tag_capture(capture_tags, 3, tags, 'generator:method') != mapcss._value_const_capture(capture_tags, 3, 'combustion', 'combustion'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","generator:method") + # -osmoseDetail:tr("Oil generator can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Unsuitable method for oil generator") + # assertNoMatch:"node power=generator generator:source=oil generator:method=combustion" + # assertMatch:"node power=generator generator:source=oil generator:method=gasification" + # assertNoMatch:"node power=generator generator:source=oil" + err.append({'class': 15, 'subclass': 2059171544, 'text': mapcss.tr('Unsuitable method for oil generator')}) + + # *[power=generator][generator:source=diesel][generator:method][generator:method!=combustion] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss._tag_capture(capture_tags, 1, tags, 'generator:source') == mapcss._value_capture(capture_tags, 1, 'diesel')) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:method')) and (mapcss._tag_capture(capture_tags, 3, tags, 'generator:method') != mapcss._value_const_capture(capture_tags, 3, 'combustion', 'combustion'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","generator:method") + # -osmoseDetail:tr("Diesel generator can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Unsuitable method for diesel generator") + # assertNoMatch:"node power=generator generator:source=diesel generator:method=combustion" + # assertMatch:"node power=generator generator:source=diesel generator:method=gasification" + # assertNoMatch:"node power=generator generator:source=diesel" + err.append({'class': 16, 'subclass': 87750196, 'text': mapcss.tr('Unsuitable method for diesel generator')}) + + # *[power=generator][generator:source=gasoline][generator:method][generator:method!=combustion] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss._tag_capture(capture_tags, 1, tags, 'generator:source') == mapcss._value_capture(capture_tags, 1, 'gasoline')) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:method')) and (mapcss._tag_capture(capture_tags, 3, tags, 'generator:method') != mapcss._value_const_capture(capture_tags, 3, 'combustion', 'combustion'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","generator:method") + # -osmoseDetail:tr("Gasoline generator can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Unsuitable method for gasoline generator") + # assertNoMatch:"node power=generator generator:source=gasoline generator:method=combustion" + # assertMatch:"node power=generator generator:source=gasoline generator:method=gasification" + # assertNoMatch:"node power=generator generator:source=gasoline" + err.append({'class': 17, 'subclass': 1418218249, 'text': mapcss.tr('Unsuitable method for gasoline generator')}) + + # *[power=generator][generator:source=waste][generator:method][generator:method!~/^(combustion|gasification)$/] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss._tag_capture(capture_tags, 1, tags, 'generator:source') == mapcss._value_capture(capture_tags, 1, 'waste')) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:method')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_05a6cbca, '^(combustion|gasification)$'), mapcss._tag_capture(capture_tags, 3, tags, 'generator:method')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","generator:method") + # -osmoseDetail:tr("Waste generator can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Unsuitable method for waste generator") + # suggestAlternative:"combustion or gasification" + # fixRemove:"generator:method" + # assertMatch:"node power=generator generator:source=waste generator:method=burning" + # assertNoMatch:"node power=generator generator:source=waste generator:method=combustion" + err.append({'class': 18, 'subclass': 600470569, 'text': mapcss.tr('Unsuitable method for waste generator'), 'allow_fix_override': True, 'fix': { + '-': ([ + 'generator:method']) + }}) + + # *[power=generator][generator:method=combustion][generator:source][generator:source!~/^(waste|gasoline|diesel|oil|biogas|biofuel|biomass|gas|coal)(;(waste|gasoline|diesel|oil|biogas|biofuel|biomass|gas|coal))*$/] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss._tag_capture(capture_tags, 1, tags, 'generator:method') == mapcss._value_capture(capture_tags, 1, 'combustion')) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:source')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_5b4d6241, '^(waste|gasoline|diesel|oil|biogas|biofuel|biomass|gas|coal)(;(waste|gasoline|diesel|oil|biogas|biofuel|biomass|gas|coal))*$'), mapcss._tag_capture(capture_tags, 3, tags, 'generator:source')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the wiki page and change the `{0}` tag or the `{1}` tag accordingly.","generator:method","generator:source") + # -osmoseDetail:tr("It is not possible to use the specified method to generate energy from this source.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Incompatibility between method and source on a power generator") + # assertNoMatch:"node power=generator generator:source=biomass generator:method=combustion" + # assertNoMatch:"node power=generator generator:source=gas;oil generator:method=combustion" + # assertNoMatch:"node power=generator generator:source=gas;oil;waste generator:method=combustion" + # assertMatch:"node power=generator generator:source=waste;solar generator:method=combustion" + # assertMatch:"node power=generator generator:source=wave generator:method=combustion" + err.append({'class': 5, 'subclass': 1335984003, 'text': mapcss.tr('Incompatibility between method and source on a power generator')}) + + # *[power=generator][generator:method=gasification][generator:source][generator:source!~/^(waste|biomass)(;(waste|biomass))*$/] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss._tag_capture(capture_tags, 1, tags, 'generator:method') == mapcss._value_capture(capture_tags, 1, 'gasification')) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:source')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_5d252d75, '^(waste|biomass)(;(waste|biomass))*$'), mapcss._tag_capture(capture_tags, 3, tags, 'generator:source')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the wiki page and change the `{0}` tag or the `{1}` tag accordingly.","generator:method","generator:source") + # -osmoseDetail:tr("It is not possible to use the specified method to generate energy from this source.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Incompatibility between method and source on a power generator") + # assertNoMatch:"node power=generator generator:source=biomass generator:method=gasification" + # assertNoMatch:"node power=generator generator:source=biomass;waste generator:method=gasification" + # assertMatch:"node power=generator generator:source=coal generator:method=gasification" + err.append({'class': 5, 'subclass': 313390332, 'text': mapcss.tr('Incompatibility between method and source on a power generator')}) + + # *[power=plant][plant:source][plant:source!~/^(nuclear|wind|hydro|tidal|wave|geothermal|solar|coal|gas|biomass|biofuel|biogas|oil|diesel|gasoline|waste|battery)(;(nuclear|wind|hydro|tidal|wave|geothermal|solar|coal|gas|biomass|biofuel|biogas|oil|diesel|gasoline|waste|battery))*$/] + if ('plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss._tag_capture(capture_tags, 1, tags, 'plant:source')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_0cf641e0, '^(nuclear|wind|hydro|tidal|wave|geothermal|solar|coal|gas|biomass|biofuel|biogas|oil|diesel|gasoline|waste|battery)(;(nuclear|wind|hydro|tidal|wave|geothermal|solar|coal|gas|biomass|biofuel|biogas|oil|diesel|gasoline|waste|battery))*$'), mapcss._tag_capture(capture_tags, 2, tags, 'plant:source')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values on the wiki and correct the tag for this object.") + # -osmoseDetail:tr("The plant:source=* tag can only have certain well-defined values. This is probably a typo or an deprecated way of tagging.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:source" + # throwError:tr("Unsuitable value for plant:source=* tag") + # assertNoMatch:"node power=plant plant:source=gas;oil" + # assertMatch:"node power=plant plant:source=photovoltaic" + # assertNoMatch:"node power=plant plant:source=solar" + # assertNoMatch:"node power=plant" + err.append({'class': 19, 'subclass': 966751128, 'text': mapcss.tr('Unsuitable value for plant:source=* tag')}) + + # *[power=plant][plant:source=nuclear][plant:method][plant:method!~/^(fission|fusion)$/] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss._tag_capture(capture_tags, 1, tags, 'plant:source') == mapcss._value_capture(capture_tags, 1, 'nuclear')) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:method')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_642c98f5, '^(fission|fusion)$'), mapcss._tag_capture(capture_tags, 3, tags, 'plant:method')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","plant:method") + # -osmoseDetail:tr("Nuclear power plants can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Unsuitable method for nuclear power plant") + # suggestAlternative:"fission or fusion" + # fixRemove:"plant:method" + # assertNoMatch:"node power=plant plant:source=nuclear plant:method=fission" + # assertMatch:"node power=plant plant:source=nuclear plant:method=nuclear" + err.append({'class': 20, 'subclass': 56152287, 'text': mapcss.tr('Unsuitable method for nuclear power plant'), 'allow_fix_override': True, 'fix': { + '-': ([ + 'plant:method']) + }}) + + # *[power=plant][plant:method=~/^(fission|fusion)$/][plant:source][plant:source!=nuclear] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss.regexp_test(mapcss._value_capture(capture_tags, 1, self.re_642c98f5), mapcss._tag_capture(capture_tags, 1, tags, 'plant:method'))) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:source')) and (mapcss._tag_capture(capture_tags, 3, tags, 'plant:source') != mapcss._value_const_capture(capture_tags, 3, 'nuclear', 'nuclear'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the wiki page and change the `{0}` tag or the `{1}` tag accordingly.","plant:method","plant:source") + # -osmoseDetail:tr("It is not possible to use the specified method to generate energy from this source.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Incompatibility between method and source on a power plant") + # assertNoMatch:"node power=plant plant:source=nuclear plant:method=fission" + # assertMatch:"node power=plant plant:source=solar plant:method=fusion" + err.append({'class': 21, 'subclass': 120690153, 'text': mapcss.tr('Incompatibility between method and source on a power plant')}) + + # *[power=plant][plant:source=wind][plant:method][plant:method!=wind_turbine] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss._tag_capture(capture_tags, 1, tags, 'plant:source') == mapcss._value_capture(capture_tags, 1, 'wind')) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:method')) and (mapcss._tag_capture(capture_tags, 3, tags, 'plant:method') != mapcss._value_const_capture(capture_tags, 3, 'wind_turbine', 'wind_turbine'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","plant:method") + # -osmoseDetail:tr("Wind power plants can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Unsuitable method for wind power plant") + # fixRemove:"plant:method" + # assertMatch:"node power=plant plant:source=wind plant:method=wind" + # assertNoMatch:"node power=plant plant:source=wind plant:method=wind_turbine" + # assertNoMatch:"node power=plant plant:source=wind" + err.append({'class': 22, 'subclass': 515061741, 'text': mapcss.tr('Unsuitable method for wind power plant'), 'allow_fix_override': True, 'fix': { + '-': ([ + 'plant:method']) + }}) + + # *[power=plant][plant:method=wind_turbine][plant:source][plant:source!=wind] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss._tag_capture(capture_tags, 1, tags, 'plant:method') == mapcss._value_capture(capture_tags, 1, 'wind_turbine')) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:source')) and (mapcss._tag_capture(capture_tags, 3, tags, 'plant:source') != mapcss._value_const_capture(capture_tags, 3, 'wind', 'wind'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the wiki page and change the `{0}` tag or the `{1}` tag accordingly.","plant:method","plant:source") + # -osmoseDetail:tr("It is not possible to use the specified method to generate energy from this source.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Incompatibility between method and source on a power plant") + # assertMatch:"node power=plant plant:source=eolien plant:method=wind_turbine" + # assertNoMatch:"node power=plant plant:source=wind plant:method=wind_turbine" + err.append({'class': 21, 'subclass': 443176990, 'text': mapcss.tr('Incompatibility between method and source on a power plant')}) + + # *[power=plant][plant:source=hydro][plant:method][plant:method!~/^(water-storage|water-pumped-storage|run-of-the-river)$/] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss._tag_capture(capture_tags, 1, tags, 'plant:source') == mapcss._value_capture(capture_tags, 1, 'hydro')) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:method')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_2c04ecfb, '^(water-storage|water-pumped-storage|run-of-the-river)$'), mapcss._tag_capture(capture_tags, 3, tags, 'plant:method')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","plant:method") + # -osmoseDetail:tr("Hydro power plants can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Unsuitable method for hydro power plant") + # suggestAlternative:"water-storage, run-of-the-river or water-pumped-storage" + # fixRemove:"plant:method" + # assertMatch:"node power=plant plant:source=hydro plant:method=pump" + # assertNoMatch:"node power=plant plant:source=hydro plant:method=water-storage" + err.append({'class': 23, 'subclass': 1020856194, 'text': mapcss.tr('Unsuitable method for hydro power plant'), 'allow_fix_override': True, 'fix': { + '-': ([ + 'plant:method']) + }}) + + # *[power=plant][plant:method=~/^(water-storage|water-pumped-storage|run-of-the-river)$/][plant:source][plant:source!=hydro] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss.regexp_test(mapcss._value_capture(capture_tags, 1, self.re_2c04ecfb), mapcss._tag_capture(capture_tags, 1, tags, 'plant:method'))) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:source')) and (mapcss._tag_capture(capture_tags, 3, tags, 'plant:source') != mapcss._value_const_capture(capture_tags, 3, 'hydro', 'hydro'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the wiki page and change the `{0}` tag or the `{1}` tag accordingly.","plant:method","plant:source") + # -osmoseDetail:tr("It is not possible to use the specified method to generate energy from this source.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Incompatibility between method and source on a power plant") + # assertNoMatch:"node power=plant plant:source=hydro plant:method=water-storage" + # assertMatch:"node power=plant plant:source=water plant:method=water-pumped-storage" + err.append({'class': 21, 'subclass': 1372509170, 'text': mapcss.tr('Incompatibility between method and source on a power plant')}) + + # *[power=plant][plant:source=tidal][plant:method][plant:method!~/^(barrage|stream)$/] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss._tag_capture(capture_tags, 1, tags, 'plant:source') == mapcss._value_capture(capture_tags, 1, 'tidal')) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:method')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_583b6258, '^(barrage|stream)$'), mapcss._tag_capture(capture_tags, 3, tags, 'plant:method')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","plant:method") + # -osmoseDetail:tr("Tidal power plants can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Unsuitable method for tidal power plant") + # suggestAlternative:"barrage or stream" + # fixRemove:"plant:method" + # assertNoMatch:"node power=plant plant:source=tidal plant:method=barrage" + # assertMatch:"node power=plant plant:source=tidal plant:method=dam" + err.append({'class': 24, 'subclass': 75438578, 'text': mapcss.tr('Unsuitable method for tidal power plant'), 'allow_fix_override': True, 'fix': { + '-': ([ + 'plant:method']) + }}) + + # *[power=plant][plant:method=~/^(barrage|stream)$/][plant:source][plant:source!=tidal] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss.regexp_test(mapcss._value_capture(capture_tags, 1, self.re_583b6258), mapcss._tag_capture(capture_tags, 1, tags, 'plant:method'))) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:source')) and (mapcss._tag_capture(capture_tags, 3, tags, 'plant:source') != mapcss._value_const_capture(capture_tags, 3, 'tidal', 'tidal'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the wiki page and change the `{0}` tag or the `{1}` tag accordingly.","plant:method","plant:source") + # -osmoseDetail:tr("It is not possible to use the specified method to generate energy from this source.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Incompatibility between method and source on a power plant") + # assertMatch:"node power=plant plant:source=solar plant:method=stream" + # assertNoMatch:"node power=plant plant:source=tidal plant:method=barrage" + err.append({'class': 21, 'subclass': 934978595, 'text': mapcss.tr('Incompatibility between method and source on a power plant')}) + + # *[power=plant][plant:source=solar][plant:method][plant:method!~/^(thermal|photovoltaic)$/] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss._tag_capture(capture_tags, 1, tags, 'plant:source') == mapcss._value_capture(capture_tags, 1, 'solar')) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:method')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_26c08bf9, '^(thermal|photovoltaic)$'), mapcss._tag_capture(capture_tags, 3, tags, 'plant:method')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","plant:method") + # -osmoseDetail:tr("Solar power plants can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Unsuitable method for solar power plant") + # suggestAlternative:"thermal or photovoltaic" + # fixRemove:"plant:method" + # assertMatch:"node power=plant plant:source=solar plant:method=solar" + # assertNoMatch:"node power=plant plant:source=solar plant:method=thermal" + err.append({'class': 25, 'subclass': 1799335667, 'text': mapcss.tr('Unsuitable method for solar power plant'), 'allow_fix_override': True, 'fix': { + '-': ([ + 'plant:method']) + }}) + + # *[power=plant][plant:method=~/^(thermal|photovoltaic)$/][plant:source][plant:source!=solar] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss.regexp_test(mapcss._value_capture(capture_tags, 1, self.re_26c08bf9), mapcss._tag_capture(capture_tags, 1, tags, 'plant:method'))) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:source')) and (mapcss._tag_capture(capture_tags, 3, tags, 'plant:source') != mapcss._value_const_capture(capture_tags, 3, 'solar', 'solar'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the wiki page and change the `{0}` tag or the `{1}` tag accordingly.","plant:method","plant:source") + # -osmoseDetail:tr("It is not possible to use the specified method to generate energy from this source.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Incompatibility between method and source on a power plant") + # assertMatch:"node power=plant plant:source=photovoltaic plant:method=photovoltaic" + # assertNoMatch:"node power=plant plant:source=solar plant:method=thermal" + err.append({'class': 21, 'subclass': 1085835351, 'text': mapcss.tr('Incompatibility between method and source on a power plant')}) + + # *[power=plant][plant:source=coal][plant:method][plant:method!=combustion] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss._tag_capture(capture_tags, 1, tags, 'plant:source') == mapcss._value_capture(capture_tags, 1, 'coal')) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:method')) and (mapcss._tag_capture(capture_tags, 3, tags, 'plant:method') != mapcss._value_const_capture(capture_tags, 3, 'combustion', 'combustion'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","plant:method") + # -osmoseDetail:tr("Coal power plants can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Unsuitable method for coal power plant") + # assertMatch:"node power=plant plant:source=coal plant:method=burning" + # assertNoMatch:"node power=plant plant:source=coal plant:method=combustion" + # assertNoMatch:"node power=plant plant:source=coal" + err.append({'class': 26, 'subclass': 746471181, 'text': mapcss.tr('Unsuitable method for coal power plant')}) + + # *[power=plant][plant:source=gas][plant:method][plant:method!=combustion] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss._tag_capture(capture_tags, 1, tags, 'plant:source') == mapcss._value_capture(capture_tags, 1, 'gas')) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:method')) and (mapcss._tag_capture(capture_tags, 3, tags, 'plant:method') != mapcss._value_const_capture(capture_tags, 3, 'combustion', 'combustion'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","plant:method") + # -osmoseDetail:tr("Gas power plants can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Unsuitable method for gas power plant") + # assertNoMatch:"node power=plant plant:source=gas plant:method=combustion" + # assertMatch:"node power=plant plant:source=gas plant:method=gasification" + # assertNoMatch:"node power=plant plant:source=gas" + err.append({'class': 27, 'subclass': 827336490, 'text': mapcss.tr('Unsuitable method for gas power plant')}) + + # *[power=plant][plant:source=biomass][plant:method][plant:method!~/^(combustion|gasification|anaerobic_digestion)$/] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss._tag_capture(capture_tags, 1, tags, 'plant:source') == mapcss._value_capture(capture_tags, 1, 'biomass')) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:method')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_009ee9c4, '^(combustion|gasification|anaerobic_digestion)$'), mapcss._tag_capture(capture_tags, 3, tags, 'plant:method')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseDetail:tr("Biomass power plants can only use certain well-defined methods to generate energy.") + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","plant:method") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Unsuitable method for biomass power plant") + # suggestAlternative:"combustion, anaerobic_digestion or gasification" + # fixRemove:"plant:method" + # assertNoMatch:"node power=plant plant:source=biomass plant:method=anaerobic_digestion" + # assertMatch:"node power=plant plant:source=biomass plant:method=burn" + err.append({'class': 28, 'subclass': 2076402923, 'text': mapcss.tr('Unsuitable method for biomass power plant'), 'allow_fix_override': True, 'fix': { + '-': ([ + 'plant:method']) + }}) + + # *[power=plant][plant:source=biofuel][plant:method][plant:method!=combustion] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss._tag_capture(capture_tags, 1, tags, 'plant:source') == mapcss._value_capture(capture_tags, 1, 'biofuel')) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:method')) and (mapcss._tag_capture(capture_tags, 3, tags, 'plant:method') != mapcss._value_const_capture(capture_tags, 3, 'combustion', 'combustion'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseDetail:tr("Biofuel power plants can only use certain well-defined methods to generate energy.") + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","plant:method") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Unsuitable method for biofuel power plant") + # assertNoMatch:"node power=plant plant:source=biofuel plant:method=combustion" + # assertMatch:"node power=plant plant:source=biofuel plant:method=gasification" + # assertNoMatch:"node power=plant plant:source=biofuel" + err.append({'class': 29, 'subclass': 1882895060, 'text': mapcss.tr('Unsuitable method for biofuel power plant')}) + + # *[power=plant][plant:source=biogas][plant:method][plant:method!=combustion] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss._tag_capture(capture_tags, 1, tags, 'plant:source') == mapcss._value_capture(capture_tags, 1, 'biogas')) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:method')) and (mapcss._tag_capture(capture_tags, 3, tags, 'plant:method') != mapcss._value_const_capture(capture_tags, 3, 'combustion', 'combustion'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseDetail:tr("Biogas power plants can only use certain well-defined methods to generate energy.") + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","plant:method") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Unsuitable method for biogas power plant") + # assertNoMatch:"node power=plant plant:source=biogas plant:method=combustion" + # assertMatch:"node power=plant plant:source=biogas plant:method=gasification" + # assertNoMatch:"node power=plant plant:source=biogas" + err.append({'class': 30, 'subclass': 887792794, 'text': mapcss.tr('Unsuitable method for biogas power plant')}) + + # *[power=plant][plant:source=oil][plant:method][plant:method!=combustion] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss._tag_capture(capture_tags, 1, tags, 'plant:source') == mapcss._value_capture(capture_tags, 1, 'oil')) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:method')) and (mapcss._tag_capture(capture_tags, 3, tags, 'plant:method') != mapcss._value_const_capture(capture_tags, 3, 'combustion', 'combustion'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","plant:method") + # -osmoseDetail:tr("Oil power plants can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Unsuitable method for oil power plant") + # assertNoMatch:"node power=plant plant:source=oil plant:method=combustion" + # assertMatch:"node power=plant plant:source=oil plant:method=gasification" + # assertNoMatch:"node power=plant plant:source=oil" + err.append({'class': 31, 'subclass': 1678290892, 'text': mapcss.tr('Unsuitable method for oil power plant')}) + + # *[power=plant][plant:source=diesel][plant:method][plant:method!=combustion] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss._tag_capture(capture_tags, 1, tags, 'plant:source') == mapcss._value_capture(capture_tags, 1, 'diesel')) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:method')) and (mapcss._tag_capture(capture_tags, 3, tags, 'plant:method') != mapcss._value_const_capture(capture_tags, 3, 'combustion', 'combustion'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","plant:method") + # -osmoseDetail:tr("Diesel power plants can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Unsuitable method for diesel power plant") + # assertNoMatch:"node power=plant plant:source=diesel plant:method=combustion" + # assertMatch:"node power=plant plant:source=diesel plant:method=gasification" + # assertNoMatch:"node power=plant plant:source=diesel" + err.append({'class': 32, 'subclass': 75543302, 'text': mapcss.tr('Unsuitable method for diesel power plant')}) + + # *[power=plant][plant:source=gasoline][plant:method][plant:method!=combustion] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss._tag_capture(capture_tags, 1, tags, 'plant:source') == mapcss._value_capture(capture_tags, 1, 'gasoline')) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:method')) and (mapcss._tag_capture(capture_tags, 3, tags, 'plant:method') != mapcss._value_const_capture(capture_tags, 3, 'combustion', 'combustion'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","plant:method") + # -osmoseDetail:tr("Gasoline power plants can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Unsuitable method for gasoline power plant") + # assertNoMatch:"node power=plant plant:source=gasoline plant:method=combustion" + # assertMatch:"node power=plant plant:source=gasoline plant:method=gasification" + # assertNoMatch:"node power=plant plant:source=gasoline" + err.append({'class': 33, 'subclass': 599334301, 'text': mapcss.tr('Unsuitable method for gasoline power plant')}) + + # *[power=plant][plant:source=waste][plant:method][plant:method!~/^(combustion|gasification)$/] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss._tag_capture(capture_tags, 1, tags, 'plant:source') == mapcss._value_capture(capture_tags, 1, 'waste')) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:method')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_05a6cbca, '^(combustion|gasification)$'), mapcss._tag_capture(capture_tags, 3, tags, 'plant:method')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","plant:method") + # -osmoseDetail:tr("Waste power plants can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Unsuitable method for waste power plant") + # suggestAlternative:"combustion or gasification" + # fixRemove:"plant:method" + # assertMatch:"node power=plant plant:source=waste plant:method=burning" + # assertNoMatch:"node power=plant plant:source=waste plant:method=combustion" + err.append({'class': 34, 'subclass': 489417432, 'text': mapcss.tr('Unsuitable method for waste power plant'), 'allow_fix_override': True, 'fix': { + '-': ([ + 'plant:method']) + }}) + + # *[power=plant][plant:method=combustion][plant:source][plant:source!~/^(waste|gasoline|diesel|oil|biogas|biofuel|biomass|gas|coal)(;(waste|gasoline|diesel|oil|biogas|biofuel|biomass|gas|coal))*$/] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss._tag_capture(capture_tags, 1, tags, 'plant:method') == mapcss._value_capture(capture_tags, 1, 'combustion')) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:source')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_5b4d6241, '^(waste|gasoline|diesel|oil|biogas|biofuel|biomass|gas|coal)(;(waste|gasoline|diesel|oil|biogas|biofuel|biomass|gas|coal))*$'), mapcss._tag_capture(capture_tags, 3, tags, 'plant:source')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the wiki page and change the `{0}` tag or the `{1}` tag accordingly.","plant:method","plant:source") + # -osmoseDetail:tr("It is not possible to use the specified method to generate energy from this source.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Incompatibility between method and source on a power plant") + # assertNoMatch:"node power=plant plant:source=biomass plant:method=combustion" + # assertNoMatch:"node power=plant plant:source=biomass;waste plant:method=combustion" + # assertMatch:"node power=plant plant:source=wave plant:method=combustion" + err.append({'class': 21, 'subclass': 46745407, 'text': mapcss.tr('Incompatibility between method and source on a power plant')}) + + # *[power=plant][plant:method=gasification][plant:source][plant:source!~/^(waste|biomass)(;(waste|biomass))*$/] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss._tag_capture(capture_tags, 1, tags, 'plant:method') == mapcss._value_capture(capture_tags, 1, 'gasification')) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:source')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_5d252d75, '^(waste|biomass)(;(waste|biomass))*$'), mapcss._tag_capture(capture_tags, 3, tags, 'plant:source')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the wiki page and change the `{0}` tag or the `{1}` tag accordingly.","plant:method","plant:source") + # -osmoseDetail:tr("It is not possible to use the specified method to generate energy from this source.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Incompatibility between method and source on a power plant") + # assertNoMatch:"node power=plant plant:source=biomass plant:method=gasification" + # assertNoMatch:"node power=plant plant:source=biomass;waste plant:method=gasification" + # assertMatch:"node power=plant plant:source=coal plant:method=gasification" + err.append({'class': 21, 'subclass': 1329720574, 'text': mapcss.tr('Incompatibility between method and source on a power plant')}) + + return err + + def way(self, data, tags, nds): + capture_tags = {} + keys = tags.keys() + err = [] + + + # *[power][power!~/^(cable|catenary_mast|circuit|compensator|connection|converter|generator|heliostat|insulator|inverter|line|line_section|minor_line|plant|pole|portal|substation|switch|switchgear|terminal|tower|transformer)$/] + if ('power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 1, self.re_6b88cc68, '^(cable|catenary_mast|circuit|compensator|connection|converter|generator|heliostat|insulator|inverter|line|line_section|minor_line|plant|pole|portal|substation|switch|switchgear|terminal|tower|transformer)$'), mapcss._tag_capture(capture_tags, 1, tags, 'power')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values on the wiki and correct the tag for this object.") + # -osmoseDetail:tr("The power=* tag can only have certain well-defined values. This is probably a typo or an deprecated way of tagging.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:power" + # throwError:tr("Unsuitable value for power=* tag") + # assertNoMatch:"way power=cable" + err.append({'class': 1, 'subclass': 36378028, 'text': mapcss.tr('Unsuitable value for power=* tag')}) + + # *[power=generator][generator:source][generator:source!~/^(nuclear|wind|hydro|tidal|wave|geothermal|solar|coal|gas|biomass|biofuel|biogas|oil|diesel|gasoline|waste|battery)(;(nuclear|wind|hydro|tidal|wave|geothermal|solar|coal|gas|biomass|biofuel|biogas|oil|diesel|gasoline|waste|battery))*$/] + if ('generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss._tag_capture(capture_tags, 1, tags, 'generator:source')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_0cf641e0, '^(nuclear|wind|hydro|tidal|wave|geothermal|solar|coal|gas|biomass|biofuel|biogas|oil|diesel|gasoline|waste|battery)(;(nuclear|wind|hydro|tidal|wave|geothermal|solar|coal|gas|biomass|biofuel|biogas|oil|diesel|gasoline|waste|battery))*$'), mapcss._tag_capture(capture_tags, 2, tags, 'generator:source')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values on the wiki and correct the tag for this object.") + # -osmoseDetail:tr("The generator:source=* tag can only have certain well-defined values. This is probably a typo or an deprecated way of tagging.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:source" + # throwError:tr("Unsuitable value for generator:source=* tag") + err.append({'class': 3, 'subclass': 600492584, 'text': mapcss.tr('Unsuitable value for generator:source=* tag')}) + + # *[power=generator][generator:source=nuclear][generator:method][generator:method!~/^(fission|fusion)$/] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss._tag_capture(capture_tags, 1, tags, 'generator:source') == mapcss._value_capture(capture_tags, 1, 'nuclear')) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:method')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_642c98f5, '^(fission|fusion)$'), mapcss._tag_capture(capture_tags, 3, tags, 'generator:method')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","generator:method") + # -osmoseDetail:tr("Nuclear generator can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Unsuitable method for nuclear generator") + # suggestAlternative:"fission or fusion" + # fixRemove:"generator:method" + err.append({'class': 4, 'subclass': 1513616022, 'text': mapcss.tr('Unsuitable method for nuclear generator'), 'allow_fix_override': True, 'fix': { + '-': ([ + 'generator:method']) + }}) + + # *[power=generator][generator:method=~/fission|fusion/][generator:source][generator:source!=nuclear] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss.regexp_test(mapcss._value_capture(capture_tags, 1, self.re_21537747), mapcss._tag_capture(capture_tags, 1, tags, 'generator:method'))) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:source')) and (mapcss._tag_capture(capture_tags, 3, tags, 'generator:source') != mapcss._value_const_capture(capture_tags, 3, 'nuclear', 'nuclear'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the wiki page and change the `{0}` tag or the `{1}` tag accordingly.","generator:method","generator:source") + # -osmoseDetail:tr("It is not possible to use the specified method to generate energy from this source.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Incompatibility between method and source on a power generator") + err.append({'class': 5, 'subclass': 1445012384, 'text': mapcss.tr('Incompatibility between method and source on a power generator')}) + + # *[power=generator][generator:source=wind][generator:method][generator:method!=wind_turbine] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss._tag_capture(capture_tags, 1, tags, 'generator:source') == mapcss._value_capture(capture_tags, 1, 'wind')) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:method')) and (mapcss._tag_capture(capture_tags, 3, tags, 'generator:method') != mapcss._value_const_capture(capture_tags, 3, 'wind_turbine', 'wind_turbine'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Remove the `{0}` tag or change it to `{1}`.","generator:method","wind_turbine") + # -osmoseDetail:tr("Wind generators can only use turbines to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Unsuitable method for wind generator") + # fixRemove:"generator:method" + err.append({'class': 6, 'subclass': 1104182574, 'text': mapcss.tr('Unsuitable method for wind generator'), 'allow_fix_override': True, 'fix': { + '-': ([ + 'generator:method']) + }}) + + # *[power=generator][generator:method=wind_turbine][generator:source][generator:source!=wind] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss._tag_capture(capture_tags, 1, tags, 'generator:method') == mapcss._value_capture(capture_tags, 1, 'wind_turbine')) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:source')) and (mapcss._tag_capture(capture_tags, 3, tags, 'generator:source') != mapcss._value_const_capture(capture_tags, 3, 'wind', 'wind'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the wiki page and change the `{0}` tag or the `{1}` tag accordingly.","generator:method","generator:source") + # -osmoseDetail:tr("It is not possible to use the specified method to generate energy from this source.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Incompatibility between method and source on a power generator") + err.append({'class': 5, 'subclass': 1021686777, 'text': mapcss.tr('Incompatibility between method and source on a power generator')}) + + # *[power=generator][generator:source=hydro][generator:method][generator:method!~/^(water-storage|water-pumped-storage|run-of-the-river)$/] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss._tag_capture(capture_tags, 1, tags, 'generator:source') == mapcss._value_capture(capture_tags, 1, 'hydro')) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:method')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_2c04ecfb, '^(water-storage|water-pumped-storage|run-of-the-river)$'), mapcss._tag_capture(capture_tags, 3, tags, 'generator:method')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","generator:method") + # -osmoseDetail:tr("Hydro generator can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Unsuitable method for hydro generator") + # suggestAlternative:"water-storage, run-of-the-river or water-pumped-storage" + # fixRemove:"generator:method" + err.append({'class': 7, 'subclass': 1379042787, 'text': mapcss.tr('Unsuitable method for hydro generator'), 'allow_fix_override': True, 'fix': { + '-': ([ + 'generator:method']) + }}) + + # *[power=generator][generator:method=~/^(water-storage|water-pumped-storage|run-of-the-river)$/][generator:source][generator:source!=hydro] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss.regexp_test(mapcss._value_capture(capture_tags, 1, self.re_2c04ecfb), mapcss._tag_capture(capture_tags, 1, tags, 'generator:method'))) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:source')) and (mapcss._tag_capture(capture_tags, 3, tags, 'generator:source') != mapcss._value_const_capture(capture_tags, 3, 'hydro', 'hydro'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the wiki page and change the `{0}` tag or the `{1}` tag accordingly.","generator:method","generator:source") + # -osmoseDetail:tr("It is not possible to use the specified method to generate energy from this source.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Incompatibility between method and source on a power generator") + err.append({'class': 5, 'subclass': 1830475878, 'text': mapcss.tr('Incompatibility between method and source on a power generator')}) + + # *[power=generator][generator:source=tidal][generator:method][generator:method!~/^(barrage|stream)$/] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss._tag_capture(capture_tags, 1, tags, 'generator:source') == mapcss._value_capture(capture_tags, 1, 'tidal')) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:method')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_583b6258, '^(barrage|stream)$'), mapcss._tag_capture(capture_tags, 3, tags, 'generator:method')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","generator:method") + # -osmoseDetail:tr("Tidal generator can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Unsuitable method for tidal generator") + # suggestAlternative:"barrage or stream" + # fixRemove:"generator:method" + err.append({'class': 8, 'subclass': 503240008, 'text': mapcss.tr('Unsuitable method for tidal generator'), 'allow_fix_override': True, 'fix': { + '-': ([ + 'generator:method']) + }}) + + # *[power=generator][generator:method=~/^(barrage|stream)$/][generator:source][generator:source!=tidal] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss.regexp_test(mapcss._value_capture(capture_tags, 1, self.re_583b6258), mapcss._tag_capture(capture_tags, 1, tags, 'generator:method'))) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:source')) and (mapcss._tag_capture(capture_tags, 3, tags, 'generator:source') != mapcss._value_const_capture(capture_tags, 3, 'tidal', 'tidal'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the wiki page and change the `{0}` tag or the `{1}` tag accordingly.","generator:method","generator:source") + # -osmoseDetail:tr("It is not possible to use the specified method to generate energy from this source.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Incompatibility between method and source on a power generator") + err.append({'class': 5, 'subclass': 976314568, 'text': mapcss.tr('Incompatibility between method and source on a power generator')}) + + # *[power=generator][generator:source=solar][generator:method][generator:method!~/^(thermal|photovoltaic)$/] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss._tag_capture(capture_tags, 1, tags, 'generator:source') == mapcss._value_capture(capture_tags, 1, 'solar')) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:method')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_26c08bf9, '^(thermal|photovoltaic)$'), mapcss._tag_capture(capture_tags, 3, tags, 'generator:method')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","generator:method") + # -osmoseDetail:tr("Solar generator can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Unsuitable method for solar generator") + # suggestAlternative:"thermal or photovoltaic" + # fixRemove:"generator:method" + err.append({'class': 9, 'subclass': 1095645684, 'text': mapcss.tr('Unsuitable method for solar generator'), 'allow_fix_override': True, 'fix': { + '-': ([ + 'generator:method']) + }}) + + # *[power=generator][generator:method=~/^(thermal|photovoltaic)$/][generator:source][generator:source!=solar] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss.regexp_test(mapcss._value_capture(capture_tags, 1, self.re_26c08bf9), mapcss._tag_capture(capture_tags, 1, tags, 'generator:method'))) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:source')) and (mapcss._tag_capture(capture_tags, 3, tags, 'generator:source') != mapcss._value_const_capture(capture_tags, 3, 'solar', 'solar'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the wiki page and change the `{0}` tag or the `{1}` tag accordingly.","generator:method","generator:source") + # -osmoseDetail:tr("It is not possible to use the specified method to generate energy from this source.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Incompatibility between method and source on a power generator") + err.append({'class': 5, 'subclass': 1457983121, 'text': mapcss.tr('Incompatibility between method and source on a power generator')}) + + # *[power=generator][generator:source=coal][generator:method][generator:method!=combustion] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss._tag_capture(capture_tags, 1, tags, 'generator:source') == mapcss._value_capture(capture_tags, 1, 'coal')) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:method')) and (mapcss._tag_capture(capture_tags, 3, tags, 'generator:method') != mapcss._value_const_capture(capture_tags, 3, 'combustion', 'combustion'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","generator:method") + # -osmoseDetail:tr("Coal generator can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Unsuitable method for coal generator") + err.append({'class': 10, 'subclass': 727067352, 'text': mapcss.tr('Unsuitable method for coal generator')}) + + # *[power=generator][generator:source=gas][generator:method][generator:method!=combustion] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss._tag_capture(capture_tags, 1, tags, 'generator:source') == mapcss._value_capture(capture_tags, 1, 'gas')) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:method')) and (mapcss._tag_capture(capture_tags, 3, tags, 'generator:method') != mapcss._value_const_capture(capture_tags, 3, 'combustion', 'combustion'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","generator:method") + # -osmoseDetail:tr("Gas generator can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Unsuitable method for gas generator") + err.append({'class': 11, 'subclass': 1587058630, 'text': mapcss.tr('Unsuitable method for gas generator')}) + + # *[power=generator][generator:source=biomass][generator:method][generator:method!~/^(combustion|gasification|anaerobic_digestion)$/] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss._tag_capture(capture_tags, 1, tags, 'generator:source') == mapcss._value_capture(capture_tags, 1, 'biomass')) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:method')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_009ee9c4, '^(combustion|gasification|anaerobic_digestion)$'), mapcss._tag_capture(capture_tags, 3, tags, 'generator:method')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseDetail:tr("Biomass generator can only use certain well-defined methods to generate energy.") + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","generator:method") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Unsuitable method for biomass generator") + # suggestAlternative:"combustion, anaerobic_digestion or gasification" + # fixRemove:"generator:method" + err.append({'class': 12, 'subclass': 1563205211, 'text': mapcss.tr('Unsuitable method for biomass generator'), 'allow_fix_override': True, 'fix': { + '-': ([ + 'generator:method']) + }}) + + # *[power=generator][generator:source=biofuel][generator:method][generator:method!=combustion] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss._tag_capture(capture_tags, 1, tags, 'generator:source') == mapcss._value_capture(capture_tags, 1, 'biofuel')) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:method')) and (mapcss._tag_capture(capture_tags, 3, tags, 'generator:method') != mapcss._value_const_capture(capture_tags, 3, 'combustion', 'combustion'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseDetail:tr("Biofuel generator can only use certain well-defined methods to generate energy.") + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","generator:method") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Unsuitable method for biofuel generator") + err.append({'class': 13, 'subclass': 2056310355, 'text': mapcss.tr('Unsuitable method for biofuel generator')}) + + # *[power=generator][generator:source=biogas][generator:method][generator:method!=combustion] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss._tag_capture(capture_tags, 1, tags, 'generator:source') == mapcss._value_capture(capture_tags, 1, 'biogas')) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:method')) and (mapcss._tag_capture(capture_tags, 3, tags, 'generator:method') != mapcss._value_const_capture(capture_tags, 3, 'combustion', 'combustion'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseDetail:tr("Biogas generator can only use certain well-defined methods to generate energy.") + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","generator:method") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Unsuitable method for biogas generator") + err.append({'class': 14, 'subclass': 1353854094, 'text': mapcss.tr('Unsuitable method for biogas generator')}) + + # *[power=generator][generator:source=oil][generator:method][generator:method!=combustion] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss._tag_capture(capture_tags, 1, tags, 'generator:source') == mapcss._value_capture(capture_tags, 1, 'oil')) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:method')) and (mapcss._tag_capture(capture_tags, 3, tags, 'generator:method') != mapcss._value_const_capture(capture_tags, 3, 'combustion', 'combustion'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","generator:method") + # -osmoseDetail:tr("Oil generator can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Unsuitable method for oil generator") + err.append({'class': 15, 'subclass': 2059171544, 'text': mapcss.tr('Unsuitable method for oil generator')}) + + # *[power=generator][generator:source=diesel][generator:method][generator:method!=combustion] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss._tag_capture(capture_tags, 1, tags, 'generator:source') == mapcss._value_capture(capture_tags, 1, 'diesel')) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:method')) and (mapcss._tag_capture(capture_tags, 3, tags, 'generator:method') != mapcss._value_const_capture(capture_tags, 3, 'combustion', 'combustion'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","generator:method") + # -osmoseDetail:tr("Diesel generator can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Unsuitable method for diesel generator") + err.append({'class': 16, 'subclass': 87750196, 'text': mapcss.tr('Unsuitable method for diesel generator')}) + + # *[power=generator][generator:source=gasoline][generator:method][generator:method!=combustion] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss._tag_capture(capture_tags, 1, tags, 'generator:source') == mapcss._value_capture(capture_tags, 1, 'gasoline')) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:method')) and (mapcss._tag_capture(capture_tags, 3, tags, 'generator:method') != mapcss._value_const_capture(capture_tags, 3, 'combustion', 'combustion'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","generator:method") + # -osmoseDetail:tr("Gasoline generator can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Unsuitable method for gasoline generator") + err.append({'class': 17, 'subclass': 1418218249, 'text': mapcss.tr('Unsuitable method for gasoline generator')}) + + # *[power=generator][generator:source=waste][generator:method][generator:method!~/^(combustion|gasification)$/] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss._tag_capture(capture_tags, 1, tags, 'generator:source') == mapcss._value_capture(capture_tags, 1, 'waste')) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:method')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_05a6cbca, '^(combustion|gasification)$'), mapcss._tag_capture(capture_tags, 3, tags, 'generator:method')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","generator:method") + # -osmoseDetail:tr("Waste generator can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Unsuitable method for waste generator") + # suggestAlternative:"combustion or gasification" + # fixRemove:"generator:method" + err.append({'class': 18, 'subclass': 600470569, 'text': mapcss.tr('Unsuitable method for waste generator'), 'allow_fix_override': True, 'fix': { + '-': ([ + 'generator:method']) + }}) + + # *[power=generator][generator:method=combustion][generator:source][generator:source!~/^(waste|gasoline|diesel|oil|biogas|biofuel|biomass|gas|coal)(;(waste|gasoline|diesel|oil|biogas|biofuel|biomass|gas|coal))*$/] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss._tag_capture(capture_tags, 1, tags, 'generator:method') == mapcss._value_capture(capture_tags, 1, 'combustion')) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:source')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_5b4d6241, '^(waste|gasoline|diesel|oil|biogas|biofuel|biomass|gas|coal)(;(waste|gasoline|diesel|oil|biogas|biofuel|biomass|gas|coal))*$'), mapcss._tag_capture(capture_tags, 3, tags, 'generator:source')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the wiki page and change the `{0}` tag or the `{1}` tag accordingly.","generator:method","generator:source") + # -osmoseDetail:tr("It is not possible to use the specified method to generate energy from this source.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Incompatibility between method and source on a power generator") + err.append({'class': 5, 'subclass': 1335984003, 'text': mapcss.tr('Incompatibility between method and source on a power generator')}) + + # *[power=generator][generator:method=gasification][generator:source][generator:source!~/^(waste|biomass)(;(waste|biomass))*$/] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss._tag_capture(capture_tags, 1, tags, 'generator:method') == mapcss._value_capture(capture_tags, 1, 'gasification')) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:source')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_5d252d75, '^(waste|biomass)(;(waste|biomass))*$'), mapcss._tag_capture(capture_tags, 3, tags, 'generator:source')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the wiki page and change the `{0}` tag or the `{1}` tag accordingly.","generator:method","generator:source") + # -osmoseDetail:tr("It is not possible to use the specified method to generate energy from this source.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Incompatibility between method and source on a power generator") + err.append({'class': 5, 'subclass': 313390332, 'text': mapcss.tr('Incompatibility between method and source on a power generator')}) + + # *[power=plant][plant:source][plant:source!~/^(nuclear|wind|hydro|tidal|wave|geothermal|solar|coal|gas|biomass|biofuel|biogas|oil|diesel|gasoline|waste|battery)(;(nuclear|wind|hydro|tidal|wave|geothermal|solar|coal|gas|biomass|biofuel|biogas|oil|diesel|gasoline|waste|battery))*$/] + if ('plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss._tag_capture(capture_tags, 1, tags, 'plant:source')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_0cf641e0, '^(nuclear|wind|hydro|tidal|wave|geothermal|solar|coal|gas|biomass|biofuel|biogas|oil|diesel|gasoline|waste|battery)(;(nuclear|wind|hydro|tidal|wave|geothermal|solar|coal|gas|biomass|biofuel|biogas|oil|diesel|gasoline|waste|battery))*$'), mapcss._tag_capture(capture_tags, 2, tags, 'plant:source')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values on the wiki and correct the tag for this object.") + # -osmoseDetail:tr("The plant:source=* tag can only have certain well-defined values. This is probably a typo or an deprecated way of tagging.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:source" + # throwError:tr("Unsuitable value for plant:source=* tag") + err.append({'class': 19, 'subclass': 966751128, 'text': mapcss.tr('Unsuitable value for plant:source=* tag')}) + + # *[power=plant][plant:source=nuclear][plant:method][plant:method!~/^(fission|fusion)$/] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss._tag_capture(capture_tags, 1, tags, 'plant:source') == mapcss._value_capture(capture_tags, 1, 'nuclear')) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:method')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_642c98f5, '^(fission|fusion)$'), mapcss._tag_capture(capture_tags, 3, tags, 'plant:method')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","plant:method") + # -osmoseDetail:tr("Nuclear power plants can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Unsuitable method for nuclear power plant") + # suggestAlternative:"fission or fusion" + # fixRemove:"plant:method" + err.append({'class': 20, 'subclass': 56152287, 'text': mapcss.tr('Unsuitable method for nuclear power plant'), 'allow_fix_override': True, 'fix': { + '-': ([ + 'plant:method']) + }}) + + # *[power=plant][plant:method=~/^(fission|fusion)$/][plant:source][plant:source!=nuclear] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss.regexp_test(mapcss._value_capture(capture_tags, 1, self.re_642c98f5), mapcss._tag_capture(capture_tags, 1, tags, 'plant:method'))) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:source')) and (mapcss._tag_capture(capture_tags, 3, tags, 'plant:source') != mapcss._value_const_capture(capture_tags, 3, 'nuclear', 'nuclear'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the wiki page and change the `{0}` tag or the `{1}` tag accordingly.","plant:method","plant:source") + # -osmoseDetail:tr("It is not possible to use the specified method to generate energy from this source.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Incompatibility between method and source on a power plant") + err.append({'class': 21, 'subclass': 120690153, 'text': mapcss.tr('Incompatibility between method and source on a power plant')}) + + # *[power=plant][plant:source=wind][plant:method][plant:method!=wind_turbine] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss._tag_capture(capture_tags, 1, tags, 'plant:source') == mapcss._value_capture(capture_tags, 1, 'wind')) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:method')) and (mapcss._tag_capture(capture_tags, 3, tags, 'plant:method') != mapcss._value_const_capture(capture_tags, 3, 'wind_turbine', 'wind_turbine'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","plant:method") + # -osmoseDetail:tr("Wind power plants can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Unsuitable method for wind power plant") + # fixRemove:"plant:method" + err.append({'class': 22, 'subclass': 515061741, 'text': mapcss.tr('Unsuitable method for wind power plant'), 'allow_fix_override': True, 'fix': { + '-': ([ + 'plant:method']) + }}) + + # *[power=plant][plant:method=wind_turbine][plant:source][plant:source!=wind] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss._tag_capture(capture_tags, 1, tags, 'plant:method') == mapcss._value_capture(capture_tags, 1, 'wind_turbine')) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:source')) and (mapcss._tag_capture(capture_tags, 3, tags, 'plant:source') != mapcss._value_const_capture(capture_tags, 3, 'wind', 'wind'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the wiki page and change the `{0}` tag or the `{1}` tag accordingly.","plant:method","plant:source") + # -osmoseDetail:tr("It is not possible to use the specified method to generate energy from this source.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Incompatibility between method and source on a power plant") + err.append({'class': 21, 'subclass': 443176990, 'text': mapcss.tr('Incompatibility between method and source on a power plant')}) + + # *[power=plant][plant:source=hydro][plant:method][plant:method!~/^(water-storage|water-pumped-storage|run-of-the-river)$/] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss._tag_capture(capture_tags, 1, tags, 'plant:source') == mapcss._value_capture(capture_tags, 1, 'hydro')) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:method')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_2c04ecfb, '^(water-storage|water-pumped-storage|run-of-the-river)$'), mapcss._tag_capture(capture_tags, 3, tags, 'plant:method')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","plant:method") + # -osmoseDetail:tr("Hydro power plants can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Unsuitable method for hydro power plant") + # suggestAlternative:"water-storage, run-of-the-river or water-pumped-storage" + # fixRemove:"plant:method" + err.append({'class': 23, 'subclass': 1020856194, 'text': mapcss.tr('Unsuitable method for hydro power plant'), 'allow_fix_override': True, 'fix': { + '-': ([ + 'plant:method']) + }}) + + # *[power=plant][plant:method=~/^(water-storage|water-pumped-storage|run-of-the-river)$/][plant:source][plant:source!=hydro] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss.regexp_test(mapcss._value_capture(capture_tags, 1, self.re_2c04ecfb), mapcss._tag_capture(capture_tags, 1, tags, 'plant:method'))) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:source')) and (mapcss._tag_capture(capture_tags, 3, tags, 'plant:source') != mapcss._value_const_capture(capture_tags, 3, 'hydro', 'hydro'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the wiki page and change the `{0}` tag or the `{1}` tag accordingly.","plant:method","plant:source") + # -osmoseDetail:tr("It is not possible to use the specified method to generate energy from this source.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Incompatibility between method and source on a power plant") + err.append({'class': 21, 'subclass': 1372509170, 'text': mapcss.tr('Incompatibility between method and source on a power plant')}) + + # *[power=plant][plant:source=tidal][plant:method][plant:method!~/^(barrage|stream)$/] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss._tag_capture(capture_tags, 1, tags, 'plant:source') == mapcss._value_capture(capture_tags, 1, 'tidal')) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:method')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_583b6258, '^(barrage|stream)$'), mapcss._tag_capture(capture_tags, 3, tags, 'plant:method')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","plant:method") + # -osmoseDetail:tr("Tidal power plants can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Unsuitable method for tidal power plant") + # suggestAlternative:"barrage or stream" + # fixRemove:"plant:method" + err.append({'class': 24, 'subclass': 75438578, 'text': mapcss.tr('Unsuitable method for tidal power plant'), 'allow_fix_override': True, 'fix': { + '-': ([ + 'plant:method']) + }}) + + # *[power=plant][plant:method=~/^(barrage|stream)$/][plant:source][plant:source!=tidal] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss.regexp_test(mapcss._value_capture(capture_tags, 1, self.re_583b6258), mapcss._tag_capture(capture_tags, 1, tags, 'plant:method'))) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:source')) and (mapcss._tag_capture(capture_tags, 3, tags, 'plant:source') != mapcss._value_const_capture(capture_tags, 3, 'tidal', 'tidal'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the wiki page and change the `{0}` tag or the `{1}` tag accordingly.","plant:method","plant:source") + # -osmoseDetail:tr("It is not possible to use the specified method to generate energy from this source.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Incompatibility between method and source on a power plant") + err.append({'class': 21, 'subclass': 934978595, 'text': mapcss.tr('Incompatibility between method and source on a power plant')}) + + # *[power=plant][plant:source=solar][plant:method][plant:method!~/^(thermal|photovoltaic)$/] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss._tag_capture(capture_tags, 1, tags, 'plant:source') == mapcss._value_capture(capture_tags, 1, 'solar')) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:method')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_26c08bf9, '^(thermal|photovoltaic)$'), mapcss._tag_capture(capture_tags, 3, tags, 'plant:method')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","plant:method") + # -osmoseDetail:tr("Solar power plants can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Unsuitable method for solar power plant") + # suggestAlternative:"thermal or photovoltaic" + # fixRemove:"plant:method" + err.append({'class': 25, 'subclass': 1799335667, 'text': mapcss.tr('Unsuitable method for solar power plant'), 'allow_fix_override': True, 'fix': { + '-': ([ + 'plant:method']) + }}) + + # *[power=plant][plant:method=~/^(thermal|photovoltaic)$/][plant:source][plant:source!=solar] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss.regexp_test(mapcss._value_capture(capture_tags, 1, self.re_26c08bf9), mapcss._tag_capture(capture_tags, 1, tags, 'plant:method'))) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:source')) and (mapcss._tag_capture(capture_tags, 3, tags, 'plant:source') != mapcss._value_const_capture(capture_tags, 3, 'solar', 'solar'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the wiki page and change the `{0}` tag or the `{1}` tag accordingly.","plant:method","plant:source") + # -osmoseDetail:tr("It is not possible to use the specified method to generate energy from this source.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Incompatibility between method and source on a power plant") + err.append({'class': 21, 'subclass': 1085835351, 'text': mapcss.tr('Incompatibility between method and source on a power plant')}) + + # *[power=plant][plant:source=coal][plant:method][plant:method!=combustion] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss._tag_capture(capture_tags, 1, tags, 'plant:source') == mapcss._value_capture(capture_tags, 1, 'coal')) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:method')) and (mapcss._tag_capture(capture_tags, 3, tags, 'plant:method') != mapcss._value_const_capture(capture_tags, 3, 'combustion', 'combustion'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","plant:method") + # -osmoseDetail:tr("Coal power plants can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Unsuitable method for coal power plant") + err.append({'class': 26, 'subclass': 746471181, 'text': mapcss.tr('Unsuitable method for coal power plant')}) + + # *[power=plant][plant:source=gas][plant:method][plant:method!=combustion] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss._tag_capture(capture_tags, 1, tags, 'plant:source') == mapcss._value_capture(capture_tags, 1, 'gas')) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:method')) and (mapcss._tag_capture(capture_tags, 3, tags, 'plant:method') != mapcss._value_const_capture(capture_tags, 3, 'combustion', 'combustion'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","plant:method") + # -osmoseDetail:tr("Gas power plants can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Unsuitable method for gas power plant") + err.append({'class': 27, 'subclass': 827336490, 'text': mapcss.tr('Unsuitable method for gas power plant')}) + + # *[power=plant][plant:source=biomass][plant:method][plant:method!~/^(combustion|gasification|anaerobic_digestion)$/] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss._tag_capture(capture_tags, 1, tags, 'plant:source') == mapcss._value_capture(capture_tags, 1, 'biomass')) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:method')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_009ee9c4, '^(combustion|gasification|anaerobic_digestion)$'), mapcss._tag_capture(capture_tags, 3, tags, 'plant:method')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseDetail:tr("Biomass power plants can only use certain well-defined methods to generate energy.") + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","plant:method") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Unsuitable method for biomass power plant") + # suggestAlternative:"combustion, anaerobic_digestion or gasification" + # fixRemove:"plant:method" + err.append({'class': 28, 'subclass': 2076402923, 'text': mapcss.tr('Unsuitable method for biomass power plant'), 'allow_fix_override': True, 'fix': { + '-': ([ + 'plant:method']) + }}) + + # *[power=plant][plant:source=biofuel][plant:method][plant:method!=combustion] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss._tag_capture(capture_tags, 1, tags, 'plant:source') == mapcss._value_capture(capture_tags, 1, 'biofuel')) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:method')) and (mapcss._tag_capture(capture_tags, 3, tags, 'plant:method') != mapcss._value_const_capture(capture_tags, 3, 'combustion', 'combustion'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseDetail:tr("Biofuel power plants can only use certain well-defined methods to generate energy.") + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","plant:method") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Unsuitable method for biofuel power plant") + err.append({'class': 29, 'subclass': 1882895060, 'text': mapcss.tr('Unsuitable method for biofuel power plant')}) + + # *[power=plant][plant:source=biogas][plant:method][plant:method!=combustion] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss._tag_capture(capture_tags, 1, tags, 'plant:source') == mapcss._value_capture(capture_tags, 1, 'biogas')) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:method')) and (mapcss._tag_capture(capture_tags, 3, tags, 'plant:method') != mapcss._value_const_capture(capture_tags, 3, 'combustion', 'combustion'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseDetail:tr("Biogas power plants can only use certain well-defined methods to generate energy.") + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","plant:method") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Unsuitable method for biogas power plant") + err.append({'class': 30, 'subclass': 887792794, 'text': mapcss.tr('Unsuitable method for biogas power plant')}) + + # *[power=plant][plant:source=oil][plant:method][plant:method!=combustion] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss._tag_capture(capture_tags, 1, tags, 'plant:source') == mapcss._value_capture(capture_tags, 1, 'oil')) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:method')) and (mapcss._tag_capture(capture_tags, 3, tags, 'plant:method') != mapcss._value_const_capture(capture_tags, 3, 'combustion', 'combustion'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","plant:method") + # -osmoseDetail:tr("Oil power plants can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Unsuitable method for oil power plant") + err.append({'class': 31, 'subclass': 1678290892, 'text': mapcss.tr('Unsuitable method for oil power plant')}) + + # *[power=plant][plant:source=diesel][plant:method][plant:method!=combustion] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss._tag_capture(capture_tags, 1, tags, 'plant:source') == mapcss._value_capture(capture_tags, 1, 'diesel')) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:method')) and (mapcss._tag_capture(capture_tags, 3, tags, 'plant:method') != mapcss._value_const_capture(capture_tags, 3, 'combustion', 'combustion'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","plant:method") + # -osmoseDetail:tr("Diesel power plants can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Unsuitable method for diesel power plant") + err.append({'class': 32, 'subclass': 75543302, 'text': mapcss.tr('Unsuitable method for diesel power plant')}) + + # *[power=plant][plant:source=gasoline][plant:method][plant:method!=combustion] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss._tag_capture(capture_tags, 1, tags, 'plant:source') == mapcss._value_capture(capture_tags, 1, 'gasoline')) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:method')) and (mapcss._tag_capture(capture_tags, 3, tags, 'plant:method') != mapcss._value_const_capture(capture_tags, 3, 'combustion', 'combustion'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","plant:method") + # -osmoseDetail:tr("Gasoline power plants can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Unsuitable method for gasoline power plant") + err.append({'class': 33, 'subclass': 599334301, 'text': mapcss.tr('Unsuitable method for gasoline power plant')}) + + # *[power=plant][plant:source=waste][plant:method][plant:method!~/^(combustion|gasification)$/] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss._tag_capture(capture_tags, 1, tags, 'plant:source') == mapcss._value_capture(capture_tags, 1, 'waste')) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:method')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_05a6cbca, '^(combustion|gasification)$'), mapcss._tag_capture(capture_tags, 3, tags, 'plant:method')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","plant:method") + # -osmoseDetail:tr("Waste power plants can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Unsuitable method for waste power plant") + # suggestAlternative:"combustion or gasification" + # fixRemove:"plant:method" + err.append({'class': 34, 'subclass': 489417432, 'text': mapcss.tr('Unsuitable method for waste power plant'), 'allow_fix_override': True, 'fix': { + '-': ([ + 'plant:method']) + }}) + + # *[power=plant][plant:method=combustion][plant:source][plant:source!~/^(waste|gasoline|diesel|oil|biogas|biofuel|biomass|gas|coal)(;(waste|gasoline|diesel|oil|biogas|biofuel|biomass|gas|coal))*$/] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss._tag_capture(capture_tags, 1, tags, 'plant:method') == mapcss._value_capture(capture_tags, 1, 'combustion')) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:source')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_5b4d6241, '^(waste|gasoline|diesel|oil|biogas|biofuel|biomass|gas|coal)(;(waste|gasoline|diesel|oil|biogas|biofuel|biomass|gas|coal))*$'), mapcss._tag_capture(capture_tags, 3, tags, 'plant:source')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the wiki page and change the `{0}` tag or the `{1}` tag accordingly.","plant:method","plant:source") + # -osmoseDetail:tr("It is not possible to use the specified method to generate energy from this source.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Incompatibility between method and source on a power plant") + err.append({'class': 21, 'subclass': 46745407, 'text': mapcss.tr('Incompatibility between method and source on a power plant')}) + + # *[power=plant][plant:method=gasification][plant:source][plant:source!~/^(waste|biomass)(;(waste|biomass))*$/] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss._tag_capture(capture_tags, 1, tags, 'plant:method') == mapcss._value_capture(capture_tags, 1, 'gasification')) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:source')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_5d252d75, '^(waste|biomass)(;(waste|biomass))*$'), mapcss._tag_capture(capture_tags, 3, tags, 'plant:source')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the wiki page and change the `{0}` tag or the `{1}` tag accordingly.","plant:method","plant:source") + # -osmoseDetail:tr("It is not possible to use the specified method to generate energy from this source.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Incompatibility between method and source on a power plant") + err.append({'class': 21, 'subclass': 1329720574, 'text': mapcss.tr('Incompatibility between method and source on a power plant')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(110000|132000|220000|500000)$/][inside("AF")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_7b35047a, '^(110000|132000|220000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'AF'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Afghanistan" + # throwError:tr("Invalid voltage value for this country (Afghanistan)") + # suggestAlternative:"110000/132000/220000/500000" + err.append({'class': 35, 'subclass': 1552285098, 'text': mapcss.tr('Invalid voltage value for this country (Afghanistan)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(30000|35000|110000|150000|220000|400000)$/][inside("AL")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_0a188683, '^(30000|35000|110000|150000|220000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'AL'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Albania" + # throwError:tr("Invalid voltage value for this country (Albania)") + # suggestAlternative:"30000/35000/110000/150000/220000/400000" + err.append({'class': 36, 'subclass': 38532214, 'text': mapcss.tr('Invalid voltage value for this country (Albania)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(30000|60000|66000|90000|150000|220000|225000|400000)$/][inside("DZ")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_580cbc71, '^(30000|60000|66000|90000|150000|220000|225000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'DZ'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Algeria" + # throwError:tr("Invalid voltage value for this country (Algeria)") + # suggestAlternative:"30000/60000/66000/90000/150000/220000/225000/400000" + err.append({'class': 37, 'subclass': 289804998, 'text': mapcss.tr('Invalid voltage value for this country (Algeria)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(110000|150000|225000)$/][inside("AD")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_7bbd0e42, '^(110000|150000|225000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'AD'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Andorra" + # throwError:tr("Invalid voltage value for this country (Andorra)") + # suggestAlternative:"110000/150000/225000" + err.append({'class': 38, 'subclass': 591971580, 'text': mapcss.tr('Invalid voltage value for this country (Andorra)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(60000|66000|110000|132000|150000|220000|400000)$/][inside("AO")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_20a11341, '^(60000|66000|110000|132000|150000|220000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'AO'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Angola" + # throwError:tr("Invalid voltage value for this country (Angola)") + # suggestAlternative:"60000/66000/110000/132000/150000/220000/400000" + err.append({'class': 39, 'subclass': 706473457, 'text': mapcss.tr('Invalid voltage value for this country (Angola)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(13200|25000|32000|33000|35000|66000|132000|220000|330000|345000|500000)$/][inside("AR")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_7889b2ce, '^(13200|25000|32000|33000|35000|66000|132000|220000|330000|345000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'AR'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Argentina" + # throwError:tr("Invalid voltage value for this country (Argentina)") + # suggestAlternative:"13200/25000/32000/33000/35000/66000/132000/220000/330000/345000/500000" + err.append({'class': 40, 'subclass': 713524149, 'text': mapcss.tr('Invalid voltage value for this country (Argentina)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(35000|36000|100000|110000|220000|230000|330000|400000|500000)$/][inside("AM")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_1f435557, '^(35000|36000|100000|110000|220000|230000|330000|400000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'AM'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Armenia" + # throwError:tr("Invalid voltage value for this country (Armenia)") + # suggestAlternative:"35000/36000/100000/110000/220000/230000/330000/400000/500000" + err.append({'class': 41, 'subclass': 1771203321, 'text': mapcss.tr('Invalid voltage value for this country (Armenia)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(10500|11000|12700|19000|19100|22000|33000|35000|44000|50000|66000|80000|110000|132000|150000|220000|275000|330000|400000|500000)$/][inside("AU")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_110dc891, '^(10500|11000|12700|19000|19100|22000|33000|35000|44000|50000|66000|80000|110000|132000|150000|220000|275000|330000|400000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'AU'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Australia" + # throwError:tr("Invalid voltage value for this country (Australia)") + # suggestAlternative:"10500/11000/12700/19000/19100/22000/33000/35000/44000/50000/66000/80000/110000/132000/150000/220000/275000/330000/400000/500000" + err.append({'class': 42, 'subclass': 1289320972, 'text': mapcss.tr('Invalid voltage value for this country (Australia)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(10500|13800|15000|16000|17500|20000|25000|30000|55000|60000|110000|132000|150000|220000|380000|400000)$/][inside("AT")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_4c208d10, '^(10500|13800|15000|16000|17500|20000|25000|30000|55000|60000|110000|132000|150000|220000|380000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'AT'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Austria" + # throwError:tr("Invalid voltage value for this country (Austria)") + # suggestAlternative:"10500/13800/15000/16000/17500/20000/25000/30000/55000/60000/110000/132000/150000/220000/380000/400000" + err.append({'class': 43, 'subclass': 1558042, 'text': mapcss.tr('Invalid voltage value for this country (Austria)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(35000|110000|132000|154000|220000|330000|500000)$/][inside("AZ")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_4366c21c, '^(35000|110000|132000|154000|220000|330000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'AZ'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Azerbaijan" + # throwError:tr("Invalid voltage value for this country (Azerbaijan)") + # suggestAlternative:"35000/110000/132000/154000/220000/330000/500000" + err.append({'class': 44, 'subclass': 90050778, 'text': mapcss.tr('Invalid voltage value for this country (Azerbaijan)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(220000|230000|400000)$/][inside("BH")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_247a7ae8, '^(220000|230000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'BH'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Bahrain" + # throwError:tr("Invalid voltage value for this country (Bahrain)") + # suggestAlternative:"220000/230000/400000" + err.append({'class': 45, 'subclass': 1635006364, 'text': mapcss.tr('Invalid voltage value for this country (Bahrain)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(23000|33000|132000|230000|400000)$/][inside("BD")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_0bb23efd, '^(23000|33000|132000|230000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'BD'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Bangladesh" + # throwError:tr("Invalid voltage value for this country (Bangladesh)") + # suggestAlternative:"23000/33000/132000/230000/400000" + err.append({'class': 46, 'subclass': 1358354754, 'text': mapcss.tr('Invalid voltage value for this country (Bangladesh)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(35000|40000|100000|110000|220000|330000|750000)$/][inside("BY")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_309280d5, '^(35000|40000|100000|110000|220000|330000|750000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'BY'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Belarus" + # throwError:tr("Invalid voltage value for this country (Belarus)") + # suggestAlternative:"35000/40000/100000/110000/220000/330000/750000" + err.append({'class': 47, 'subclass': 688600410, 'text': mapcss.tr('Invalid voltage value for this country (Belarus)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(11000|11500|15000|30000|33000|36000|50000|63000|70000|110000|150000|220000|225000|320000|380000|400000)$/][inside("BE")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_5ec02c4f, '^(11000|11500|15000|30000|33000|36000|50000|63000|70000|110000|150000|220000|225000|320000|380000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'BE'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Belgium" + # throwError:tr("Invalid voltage value for this country (Belgium)") + # suggestAlternative:"11000/11500/15000/30000/33000/36000/50000/63000/70000/110000/150000/220000/225000/320000/380000/400000" + err.append({'class': 48, 'subclass': 728450811, 'text': mapcss.tr('Invalid voltage value for this country (Belgium)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(22000|34500|69000|115000)$/][inside("BZ")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_74a6316e, '^(22000|34500|69000|115000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'BZ'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Belize" + # throwError:tr("Invalid voltage value for this country (Belize)") + # suggestAlternative:"22000/34500/69000/115000" + err.append({'class': 49, 'subclass': 34853900, 'text': mapcss.tr('Invalid voltage value for this country (Belize)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(161000|330000)$/][inside("BJ")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_6a0cb1be, '^(161000|330000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'BJ'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Benin" + # throwError:tr("Invalid voltage value for this country (Benin)") + # suggestAlternative:"161000/330000" + err.append({'class': 50, 'subclass': 1786789464, 'text': mapcss.tr('Invalid voltage value for this country (Benin)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(66000|132000|220000|400000)$/][inside("BT")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_2e660e01, '^(66000|132000|220000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'BT'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Bhutan" + # throwError:tr("Invalid voltage value for this country (Bhutan)") + # suggestAlternative:"66000/132000/220000/400000" + err.append({'class': 51, 'subclass': 1415185876, 'text': mapcss.tr('Invalid voltage value for this country (Bhutan)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(115000|220000|500000)$/][inside("BO")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_7c0499f4, '^(115000|220000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'BO'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Bolivia" + # throwError:tr("Invalid voltage value for this country (Bolivia)") + # suggestAlternative:"115000/220000/500000" + err.append({'class': 52, 'subclass': 439163524, 'text': mapcss.tr('Invalid voltage value for this country (Bolivia)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(35000|110000|220000|400000)$/][inside("BA")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_38c1c717, '^(35000|110000|220000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'BA'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Bosnia_and_Herzegovina" + # throwError:tr("Invalid voltage value for this country (Bosnia and Herzegovina)") + # suggestAlternative:"35000/110000/220000/400000" + err.append({'class': 53, 'subclass': 1358489649, 'text': mapcss.tr('Invalid voltage value for this country (Bosnia and Herzegovina)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(66000|132000|220000|400000)$/][inside("BW")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_2e660e01, '^(66000|132000|220000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'BW'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Botswana" + # throwError:tr("Invalid voltage value for this country (Botswana)") + # suggestAlternative:"66000/132000/220000/400000" + err.append({'class': 54, 'subclass': 373988043, 'text': mapcss.tr('Invalid voltage value for this country (Botswana)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(13800|23100|34500|66000|69000|88000|110000|132000|138000|230000|345000|440000|500000|525000|600000|765000|800000)$/][inside("BR")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_2450a903, '^(13800|23100|34500|66000|69000|88000|110000|132000|138000|230000|345000|440000|500000|525000|600000|765000|800000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'BR'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Brazil" + # throwError:tr("Invalid voltage value for this country (Brazil)") + # suggestAlternative:"13800/23100/34500/66000/69000/88000/110000/132000/138000/230000/345000/440000/500000/525000/600000/765000/800000" + err.append({'class': 55, 'subclass': 793048330, 'text': mapcss.tr('Invalid voltage value for this country (Brazil)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(66000|132000|275000)$/][inside("BN")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_3b2d49c4, '^(66000|132000|275000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'BN'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Brunei" + # throwError:tr("Invalid voltage value for this country (Brunei)") + # suggestAlternative:"66000/132000/275000" + err.append({'class': 56, 'subclass': 748342552, 'text': mapcss.tr('Invalid voltage value for this country (Brunei)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(20000|22000|25000|35000|110000|220000|400000)$/][inside("BG")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_6d4931b2, '^(20000|22000|25000|35000|110000|220000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'BG'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Bulgaria" + # throwError:tr("Invalid voltage value for this country (Bulgaria)") + # suggestAlternative:"20000/22000/25000/35000/110000/220000/400000" + err.append({'class': 57, 'subclass': 1807351196, 'text': mapcss.tr('Invalid voltage value for this country (Bulgaria)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(90000|132000|225000)$/][inside("BF")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_34230a2b, '^(90000|132000|225000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'BF'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Burkina_Faso" + # throwError:tr("Invalid voltage value for this country (Burkina Faso)") + # suggestAlternative:"90000/132000/225000" + err.append({'class': 58, 'subclass': 882792303, 'text': mapcss.tr('Invalid voltage value for this country (Burkina Faso)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(70000|110000|220000)$/][inside("BI")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_2e7e4902, '^(70000|110000|220000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'BI'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Burundi" + # throwError:tr("Invalid voltage value for this country (Burundi)") + # suggestAlternative:"70000/110000/220000" + err.append({'class': 59, 'subclass': 2076180458, 'text': mapcss.tr('Invalid voltage value for this country (Burundi)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(115000|230000)$/][inside("KH")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_59057c52, '^(115000|230000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'KH'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Cambodia" + # throwError:tr("Invalid voltage value for this country (Cambodia)") + # suggestAlternative:"115000/230000" + err.append({'class': 60, 'subclass': 360277596, 'text': mapcss.tr('Invalid voltage value for this country (Cambodia)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(30000|90000|110000|220000|225000)$/][inside("CM")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_6ae4d0fa, '^(30000|90000|110000|220000|225000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'CM'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Cameroon" + # throwError:tr("Invalid voltage value for this country (Cameroon)") + # suggestAlternative:"30000/90000/110000/220000/225000" + err.append({'class': 61, 'subclass': 1182462852, 'text': mapcss.tr('Invalid voltage value for this country (Cameroon)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(11500|12000|12470|12500|13000|13200|13800|14000|14400|16000|17500|23000|24940|25000|26400|27600|28000|34000|34500|35000|42000|44000|46000|49000|60000|63000|66000|69000|72000|110000|115000|120000|132000|138000|144000|150000|161000|200000|220000|230000|240000|260000|280000|287000|315000|345000|350000|360000|450000|500000|735000|765000)$/][inside("CA")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_39f6e14a, '^(11500|12000|12470|12500|13000|13200|13800|14000|14400|16000|17500|23000|24940|25000|26400|27600|28000|34000|34500|35000|42000|44000|46000|49000|60000|63000|66000|69000|72000|110000|115000|120000|132000|138000|144000|150000|161000|200000|220000|230000|240000|260000|280000|287000|315000|345000|350000|360000|450000|500000|735000|765000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'CA'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Canada" + # throwError:tr("Invalid voltage value for this country (Canada)") + # suggestAlternative:"11500/12000/12470/12500/13000/13200/13800/14000/14400/16000/17500/23000/24940/25000/26400/27600/28000/34000/34500/35000/42000/44000/46000/49000/60000/63000/66000/69000/72000/110000/115000/120000/132000/138000/144000/150000/161000/200000/220000/230000/240000/260000/280000/287000/315000/345000/350000/360000/450000/500000/735000/765000" + err.append({'class': 62, 'subclass': 1016205690, 'text': mapcss.tr('Invalid voltage value for this country (Canada)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(20000|60000)$/][inside("CV")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_1e0c1227, '^(20000|60000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'CV'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Cape_Verde" + # throwError:tr("Invalid voltage value for this country (Cape Verde)") + # suggestAlternative:"20000/60000" + err.append({'class': 63, 'subclass': 2098707103, 'text': mapcss.tr('Invalid voltage value for this country (Cape Verde)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(110000)$/][inside("CF")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_753efcad, '^(110000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'CF'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Central_African_Republic" + # throwError:tr("Invalid voltage value for this country (Central African Republic)") + # suggestAlternative:"110000" + err.append({'class': 64, 'subclass': 1193693713, 'text': mapcss.tr('Invalid voltage value for this country (Central African Republic)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(20000|66000|90000)$/][inside("TD")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_713f7fd5, '^(20000|66000|90000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'TD'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Chad" + # throwError:tr("Invalid voltage value for this country (Chad)") + # suggestAlternative:"20000/66000/90000" + err.append({'class': 65, 'subclass': 377923176, 'text': mapcss.tr('Invalid voltage value for this country (Chad)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(13800|15000|23000|33000|34500|66000|69000|100000|110000|154000|220000|345000|500000)$/][inside("CL")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_66509c6a, '^(13800|15000|23000|33000|34500|66000|69000|100000|110000|154000|220000|345000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'CL'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Chile" + # throwError:tr("Invalid voltage value for this country (Chile)") + # suggestAlternative:"13800/15000/23000/33000/34500/66000/69000/100000/110000/154000/220000/345000/500000" + err.append({'class': 66, 'subclass': 1427279511, 'text': mapcss.tr('Invalid voltage value for this country (Chile)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(15000|25000|34500|66000|110000|115000|138000|220000|230000|500000)$/][inside("CO")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_0999cd78, '^(15000|25000|34500|66000|110000|115000|138000|220000|230000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'CO'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Colombia" + # throwError:tr("Invalid voltage value for this country (Colombia)") + # suggestAlternative:"15000/25000/34500/66000/110000/115000/138000/220000/230000/500000" + err.append({'class': 67, 'subclass': 604205667, 'text': mapcss.tr('Invalid voltage value for this country (Colombia)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(138000|230000)$/][inside("CR")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_5f0cae6b, '^(138000|230000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'CR'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Costa_Rica" + # throwError:tr("Invalid voltage value for this country (Costa Rica)") + # suggestAlternative:"138000/230000" + err.append({'class': 68, 'subclass': 741091595, 'text': mapcss.tr('Invalid voltage value for this country (Costa Rica)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(20000|25000|35000|110000|220000|400000|500000)$/][inside("HR")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_33f4b70a, '^(20000|25000|35000|110000|220000|400000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'HR'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Croatia" + # throwError:tr("Invalid voltage value for this country (Croatia)") + # suggestAlternative:"20000/25000/35000/110000/220000/400000/500000" + err.append({'class': 69, 'subclass': 1228022869, 'text': mapcss.tr('Invalid voltage value for this country (Croatia)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(11000|110000|220000)$/][inside("CU")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_71a6f4de, '^(11000|110000|220000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'CU'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Cuba" + # throwError:tr("Invalid voltage value for this country (Cuba)") + # suggestAlternative:"11000/110000/220000" + err.append({'class': 70, 'subclass': 2137273757, 'text': mapcss.tr('Invalid voltage value for this country (Cuba)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(66000|132000)$/][inside("CY")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_69390aec, '^(66000|132000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'CY'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Cyprus" + # throwError:tr("Invalid voltage value for this country (Cyprus)") + # suggestAlternative:"66000/132000" + err.append({'class': 71, 'subclass': 1988262636, 'text': mapcss.tr('Invalid voltage value for this country (Cyprus)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(22000|33000|35000|110000|220000|380000|400000)$/][inside("CZ")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_59f73886, '^(22000|33000|35000|110000|220000|380000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'CZ'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Czech_Republic" + # throwError:tr("Invalid voltage value for this country (Czech Republic)") + # suggestAlternative:"22000/33000/35000/110000/220000/380000/400000" + err.append({'class': 72, 'subclass': 2042971905, 'text': mapcss.tr('Invalid voltage value for this country (Czech Republic)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(11000|30000|33000|50000|70000|110000|120000|132000|220000|400000|500000)$/][inside("CD")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_39f1f164, '^(11000|30000|33000|50000|70000|110000|120000|132000|220000|400000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'CD'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Democratic_Republic_of_the_Congo" + # throwError:tr("Invalid voltage value for this country (Democratic Republic of the Congo)") + # suggestAlternative:"11000/30000/33000/50000/70000/110000/120000/132000/220000/400000/500000" + err.append({'class': 73, 'subclass': 1146982314, 'text': mapcss.tr('Invalid voltage value for this country (Democratic Republic of the Congo)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(63000|230000)$/][inside("DJ")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_73467271, '^(63000|230000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'DJ'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Djibouti" + # throwError:tr("Invalid voltage value for this country (Djibouti)") + # suggestAlternative:"63000/230000" + err.append({'class': 74, 'subclass': 269317192, 'text': mapcss.tr('Invalid voltage value for this country (Djibouti)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(69000|138000|230000|345000)$/][inside("DO")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_7a215554, '^(69000|138000|230000|345000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'DO'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Dominican_Republic" + # throwError:tr("Invalid voltage value for this country (Dominican Republic)") + # suggestAlternative:"69000/138000/230000/345000" + err.append({'class': 75, 'subclass': 914872841, 'text': mapcss.tr('Invalid voltage value for this country (Dominican Republic)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(11000|22000|23000|34500|46000|48000|69000|138000|230000|500000)$/][inside("EC")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_4a39b920, '^(11000|22000|23000|34500|46000|48000|69000|138000|230000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'EC'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Ecuador" + # throwError:tr("Invalid voltage value for this country (Ecuador)") + # suggestAlternative:"11000/22000/23000/34500/46000/48000/69000/138000/230000/500000" + err.append({'class': 76, 'subclass': 294415593, 'text': mapcss.tr('Invalid voltage value for this country (Ecuador)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(66000|132000|220000|400000|500000)$/][inside("EG")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_1c0df27c, '^(66000|132000|220000|400000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'EG'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Egypt" + # throwError:tr("Invalid voltage value for this country (Egypt)") + # suggestAlternative:"66000/132000/220000/400000/500000" + err.append({'class': 77, 'subclass': 1923633903, 'text': mapcss.tr('Invalid voltage value for this country (Egypt)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(115000|230000)$/][inside("SV")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_59057c52, '^(115000|230000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'SV'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/El_Salvador" + # throwError:tr("Invalid voltage value for this country (El Salvador)") + # suggestAlternative:"115000/230000" + err.append({'class': 78, 'subclass': 509973451, 'text': mapcss.tr('Invalid voltage value for this country (El Salvador)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(110000|220000)$/][inside("GQ")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_5079f988, '^(110000|220000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'GQ'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Equatorial_Guinea" + # throwError:tr("Invalid voltage value for this country (Equatorial Guinea)") + # suggestAlternative:"110000/220000" + err.append({'class': 79, 'subclass': 764565418, 'text': mapcss.tr('Invalid voltage value for this country (Equatorial Guinea)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(66000|132000)$/][inside("ER")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_69390aec, '^(66000|132000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'ER'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Eritrea" + # throwError:tr("Invalid voltage value for this country (Eritrea)") + # suggestAlternative:"66000/132000" + err.append({'class': 80, 'subclass': 1488967838, 'text': mapcss.tr('Invalid voltage value for this country (Eritrea)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(15000|20000|24000|35000|110000|150000|330000|450000)$/][inside("EE")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_375460ae, '^(15000|20000|24000|35000|110000|150000|330000|450000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'EE'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Estonia" + # throwError:tr("Invalid voltage value for this country (Estonia)") + # suggestAlternative:"15000/20000/24000/35000/110000/150000/330000/450000" + err.append({'class': 81, 'subclass': 590591429, 'text': mapcss.tr('Invalid voltage value for this country (Estonia)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(66000|132000|400000)$/][inside("SZ")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_4c6c0f8c, '^(66000|132000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'SZ'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Eswatini" + # throwError:tr("Invalid voltage value for this country (Eswatini)") + # suggestAlternative:"66000/132000/400000" + err.append({'class': 82, 'subclass': 343109982, 'text': mapcss.tr('Invalid voltage value for this country (Eswatini)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(25000|45000|66000|132000|220000|230000|400000|500000)$/][inside("ET")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_6ccf0b67, '^(25000|45000|66000|132000|220000|230000|400000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'ET'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Ethiopia" + # throwError:tr("Invalid voltage value for this country (Ethiopia)") + # suggestAlternative:"25000/45000/66000/132000/220000/230000/400000/500000" + err.append({'class': 83, 'subclass': 493318111, 'text': mapcss.tr('Invalid voltage value for this country (Ethiopia)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(13800)$/][inside("FM")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_2f7e025c, '^(13800)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'FM'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Federated_States_of_Micronesia" + # throwError:tr("Invalid voltage value for this country (Federated States of Micronesia)") + # suggestAlternative:"13800" + err.append({'class': 84, 'subclass': 80106540, 'text': mapcss.tr('Invalid voltage value for this country (Federated States of Micronesia)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(11000|33000|110000|132000)$/][inside("FJ")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_69eb6042, '^(11000|33000|110000|132000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'FJ'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Fiji" + # throwError:tr("Invalid voltage value for this country (Fiji)") + # suggestAlternative:"11000/33000/110000/132000" + err.append({'class': 85, 'subclass': 1274549737, 'text': mapcss.tr('Invalid voltage value for this country (Fiji)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(20000|22000|25000|45000|80000|100000|110000|150000|220000|400000|450000|500000)$/][inside("FI")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_68c12a97, '^(20000|22000|25000|45000|80000|100000|110000|150000|220000|400000|450000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'FI'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Finland" + # throwError:tr("Invalid voltage value for this country (Finland)") + # suggestAlternative:"20000/22000/25000/45000/80000/100000/110000/150000/220000/400000/450000/500000" + err.append({'class': 86, 'subclass': 1894994661, 'text': mapcss.tr('Invalid voltage value for this country (Finland)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(10300|10500|13000|15000|15500|16000|17000|17200|17500|20000|25000|30000|33000|42000|45000|50000|52000|63000|66000|90000|110000|150000|200000|220000|225000|270000|320000|380000|400000|500000)$/][inside("FR")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_48a46ecb, '^(10300|10500|13000|15000|15500|16000|17000|17200|17500|20000|25000|30000|33000|42000|45000|50000|52000|63000|66000|90000|110000|150000|200000|220000|225000|270000|320000|380000|400000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'FR'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/France" + # throwError:tr("Invalid voltage value for this country (France)") + # suggestAlternative:"10300/10500/13000/15000/15500/16000/17000/17200/17500/20000/25000/30000/33000/42000/45000/50000/52000/63000/66000/90000/110000/150000/200000/220000/225000/270000/320000/380000/400000/500000" + err.append({'class': 87, 'subclass': 676706687, 'text': mapcss.tr('Invalid voltage value for this country (France)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(63000|90000|115000|225000)$/][inside("GA")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_5e6454d8, '^(63000|90000|115000|225000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'GA'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Gabon" + # throwError:tr("Invalid voltage value for this country (Gabon)") + # suggestAlternative:"63000/90000/115000/225000" + err.append({'class': 88, 'subclass': 1903979636, 'text': mapcss.tr('Invalid voltage value for this country (Gabon)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(35000|110000|154000|220000|330000|350000|380000|400000|500000)$/][inside("GE")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_03e3112c, '^(35000|110000|154000|220000|330000|350000|380000|400000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'GE'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Georgia" + # throwError:tr("Invalid voltage value for this country (Georgia)") + # suggestAlternative:"35000/110000/154000/220000/330000/350000/380000/400000/500000" + err.append({'class': 89, 'subclass': 1994507379, 'text': mapcss.tr('Invalid voltage value for this country (Georgia)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(10500|11000|15000|16000|20000|21000|22000|25000|27000|30000|33000|35000|50000|55000|60000|63000|65000|110000|132000|150000|155000|200000|220000|225000|250000|300000|320000|362000|380000|400000|450000|525000|600000)$/][inside("DE")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_28f9c3db, '^(10500|11000|15000|16000|20000|21000|22000|25000|27000|30000|33000|35000|50000|55000|60000|63000|65000|110000|132000|150000|155000|200000|220000|225000|250000|300000|320000|362000|380000|400000|450000|525000|600000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'DE'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Germany" + # throwError:tr("Invalid voltage value for this country (Germany)") + # suggestAlternative:"10500/11000/15000/16000/20000/21000/22000/25000/27000/30000/33000/35000/50000/55000/60000/63000/65000/110000/132000/150000/155000/200000/220000/225000/250000/300000/320000/362000/380000/400000/450000/525000/600000" + err.append({'class': 90, 'subclass': 2289120, 'text': mapcss.tr('Invalid voltage value for this country (Germany)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(11000|161000|225000|330000)$/][inside("GH")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_351dc689, '^(11000|161000|225000|330000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'GH'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Ghana" + # throwError:tr("Invalid voltage value for this country (Ghana)") + # suggestAlternative:"11000/161000/225000/330000" + err.append({'class': 91, 'subclass': 252263059, 'text': mapcss.tr('Invalid voltage value for this country (Ghana)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(15000|20000|22000|66000|150000|400000|500000)$/][inside("GR")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_73a2a316, '^(15000|20000|22000|66000|150000|400000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'GR'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Greece" + # throwError:tr("Invalid voltage value for this country (Greece)") + # suggestAlternative:"15000/20000/22000/66000/150000/400000/500000" + err.append({'class': 92, 'subclass': 1470393034, 'text': mapcss.tr('Invalid voltage value for this country (Greece)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(69000|115000|132000|138000|230000|400000)$/][inside("GT")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_53561357, '^(69000|115000|132000|138000|230000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'GT'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Guatemala" + # throwError:tr("Invalid voltage value for this country (Guatemala)") + # suggestAlternative:"69000/115000/132000/138000/230000/400000" + err.append({'class': 93, 'subclass': 1930593471, 'text': mapcss.tr('Invalid voltage value for this country (Guatemala)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(30000|110000|225000)$/][inside("GN")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_445dce10, '^(30000|110000|225000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'GN'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Guinea" + # throwError:tr("Invalid voltage value for this country (Guinea)") + # suggestAlternative:"30000/110000/225000" + err.append({'class': 94, 'subclass': 649021070, 'text': mapcss.tr('Invalid voltage value for this country (Guinea)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(225000)$/][inside("GW")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_0e11dbdf, '^(225000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'GW'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Guinea-Bissau" + # throwError:tr("Invalid voltage value for this country (Guinea-Bissau)") + # suggestAlternative:"225000" + err.append({'class': 95, 'subclass': 406025264, 'text': mapcss.tr('Invalid voltage value for this country (Guinea-Bissau)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(69000|115000)$/][inside("HT")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_528c9009, '^(69000|115000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'HT'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Haiti" + # throwError:tr("Invalid voltage value for this country (Haiti)") + # suggestAlternative:"69000/115000" + err.append({'class': 96, 'subclass': 940531468, 'text': mapcss.tr('Invalid voltage value for this country (Haiti)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(69000|138000|230000)$/][inside("HN")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_074fdc09, '^(69000|138000|230000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'HN'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Honduras" + # throwError:tr("Invalid voltage value for this country (Honduras)") + # suggestAlternative:"69000/138000/230000" + err.append({'class': 97, 'subclass': 224557478, 'text': mapcss.tr('Invalid voltage value for this country (Honduras)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(11000|18000|20000|22000|25000|35000|110000|132000|220000|400000|750000)$/][inside("HU")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_643751fc, '^(11000|18000|20000|22000|25000|35000|110000|132000|220000|400000|750000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'HU'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Hungary" + # throwError:tr("Invalid voltage value for this country (Hungary)") + # suggestAlternative:"11000/18000/20000/22000/25000/35000/110000/132000/220000/400000/750000" + err.append({'class': 98, 'subclass': 758387592, 'text': mapcss.tr('Invalid voltage value for this country (Hungary)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(66000|132000|220000)$/][inside("IS")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_0a039a95, '^(66000|132000|220000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'IS'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Iceland" + # throwError:tr("Invalid voltage value for this country (Iceland)") + # suggestAlternative:"66000/132000/220000" + err.append({'class': 99, 'subclass': 889008455, 'text': mapcss.tr('Invalid voltage value for this country (Iceland)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(11000|13200|22000|25000|31000|33000|66000|100000|110000|132000|200000|220000|220001|230000|320000|400000|500000|660000|765000|800000|1200000)$/][inside("IN")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_1810335f, '^(11000|13200|22000|25000|31000|33000|66000|100000|110000|132000|200000|220000|220001|230000|320000|400000|500000|660000|765000|800000|1200000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'IN'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/India" + # throwError:tr("Invalid voltage value for this country (India)") + # suggestAlternative:"11000/13200/22000/25000/31000/33000/66000/100000/110000/132000/200000/220000/220001/230000/320000/400000/500000/660000/765000/800000/1200000" + err.append({'class': 100, 'subclass': 1511025633, 'text': mapcss.tr('Invalid voltage value for this country (India)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(20000|70000|150000|230000|275000|500000)$/][inside("ID")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_44f7c665, '^(20000|70000|150000|230000|275000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'ID'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Indonesia" + # throwError:tr("Invalid voltage value for this country (Indonesia)") + # suggestAlternative:"20000/70000/150000/230000/275000/500000" + err.append({'class': 101, 'subclass': 1071991927, 'text': mapcss.tr('Invalid voltage value for this country (Indonesia)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(15000|20000|25000|63000|110000|132000|154000|220000|230000|330000|380000|400000|2300000)$/][inside("IR")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_15aa6eb6, '^(15000|20000|25000|63000|110000|132000|154000|220000|230000|330000|380000|400000|2300000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'IR'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Iran" + # throwError:tr("Invalid voltage value for this country (Iran)") + # suggestAlternative:"15000/20000/25000/63000/110000/132000/154000/220000/230000/330000/380000/400000/2300000" + err.append({'class': 102, 'subclass': 318411733, 'text': mapcss.tr('Invalid voltage value for this country (Iran)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(11000|23000|25000|33000|66000|132000|154000|400000)$/][inside("IQ")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_3007231b, '^(11000|23000|25000|33000|66000|132000|154000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'IQ'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Iraq" + # throwError:tr("Invalid voltage value for this country (Iraq)") + # suggestAlternative:"11000/23000/25000/33000/66000/132000/154000/400000" + err.append({'class': 103, 'subclass': 1289982016, 'text': mapcss.tr('Invalid voltage value for this country (Iraq)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(10500|19000|20000|22000|33000|38000|110000|200000|220000|275000|320000|380000|400000)$/][inside("IE")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_1031dc3f, '^(10500|19000|20000|22000|33000|38000|110000|200000|220000|275000|320000|380000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'IE'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Ireland" + # throwError:tr("Invalid voltage value for this country (Ireland)") + # suggestAlternative:"10500/19000/20000/22000/33000/38000/110000/200000/220000/275000/320000/380000/400000" + err.append({'class': 104, 'subclass': 1300937428, 'text': mapcss.tr('Invalid voltage value for this country (Ireland)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(115000|161000|400000)$/][inside("IL")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_15d3b209, '^(115000|161000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'IL'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Israel" + # throwError:tr("Invalid voltage value for this country (Israel)") + # suggestAlternative:"115000/161000/400000" + err.append({'class': 105, 'subclass': 94628268, 'text': mapcss.tr('Invalid voltage value for this country (Israel)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(15000|20000|25000|30000|45000|50000|55000|60000|63000|66000|68000|70000|110000|120000|130000|132000|135000|137000|138000|150000|200000|220000|225000|320000|380000|400000|500000)$/][inside("IT")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_3aa87d11, '^(15000|20000|25000|30000|45000|50000|55000|60000|63000|66000|68000|70000|110000|120000|130000|132000|135000|137000|138000|150000|200000|220000|225000|320000|380000|400000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'IT'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Italy" + # throwError:tr("Invalid voltage value for this country (Italy)") + # suggestAlternative:"15000/20000/25000/30000/45000/50000/55000/60000/63000/66000/68000/70000/110000/120000/130000/132000/135000/137000/138000/150000/200000/220000/225000/320000/380000/400000/500000" + err.append({'class': 106, 'subclass': 1119840807, 'text': mapcss.tr('Invalid voltage value for this country (Italy)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(15000|90000|225000|400000)$/][inside("CI")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_455fa519, '^(15000|90000|225000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'CI'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Ivory_Coast" + # throwError:tr("Invalid voltage value for this country (Ivory Coast)") + # suggestAlternative:"15000/90000/225000/400000" + err.append({'class': 107, 'subclass': 1925494952, 'text': mapcss.tr('Invalid voltage value for this country (Ivory Coast)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(69000|138000)$/][inside("JM")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_44d511b4, '^(69000|138000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'JM'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Jamaica" + # throwError:tr("Invalid voltage value for this country (Jamaica)") + # suggestAlternative:"69000/138000" + err.append({'class': 108, 'subclass': 728482658, 'text': mapcss.tr('Invalid voltage value for this country (Jamaica)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(11000|15400|20000|22000|25000|30000|33000|44000|60000|66000|77000|100000|110000|132000|154000|187000|200000|220000|250000|275000|500000|660000)$/][inside("JP")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_3907ef06, '^(11000|15400|20000|22000|25000|30000|33000|44000|60000|66000|77000|100000|110000|132000|154000|187000|200000|220000|250000|275000|500000|660000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'JP'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Japan" + # throwError:tr("Invalid voltage value for this country (Japan)") + # suggestAlternative:"11000/15400/20000/22000/25000/30000/33000/44000/60000/66000/77000/100000/110000/132000/154000/187000/200000/220000/250000/275000/500000/660000" + err.append({'class': 109, 'subclass': 1321144591, 'text': mapcss.tr('Invalid voltage value for this country (Japan)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(132000|400000)$/][inside("JO")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_4698125a, '^(132000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'JO'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Jordan" + # throwError:tr("Invalid voltage value for this country (Jordan)") + # suggestAlternative:"132000/400000" + err.append({'class': 110, 'subclass': 1733344407, 'text': mapcss.tr('Invalid voltage value for this country (Jordan)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(22000|35000|110000|220000|500000)$/][inside("KZ")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_0c11f7a6, '^(22000|35000|110000|220000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'KZ'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Kazakhstan" + # throwError:tr("Invalid voltage value for this country (Kazakhstan)") + # suggestAlternative:"22000/35000/110000/220000/500000" + err.append({'class': 111, 'subclass': 1561355399, 'text': mapcss.tr('Invalid voltage value for this country (Kazakhstan)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(11000|15000|132000|220000|400000|500000)$/][inside("KE")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_13fd4c40, '^(11000|15000|132000|220000|400000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'KE'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Kenya" + # throwError:tr("Invalid voltage value for this country (Kenya)") + # suggestAlternative:"11000/15000/132000/220000/400000/500000" + err.append({'class': 112, 'subclass': 1982031309, 'text': mapcss.tr('Invalid voltage value for this country (Kenya)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(50000|60000|132000|150000|220000|400000)$/][inside("DK")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_40d39fce, '^(50000|60000|132000|150000|220000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'DK'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Denmark" + # throwError:tr("Invalid voltage value for this country (Kingdom of Denmark)") + # suggestAlternative:"50000/60000/132000/150000/220000/400000" + err.append({'class': 113, 'subclass': 1765737607, 'text': mapcss.tr('Invalid voltage value for this country (Kingdom of Denmark)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(13000|20000|22000|23000|24000|25000|30000|33000|34000|50000|66000|110000|150000|220000|320000|380000|450000|600000)$/][inside("NL")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_1b67d214, '^(13000|20000|22000|23000|24000|25000|30000|33000|34000|50000|66000|110000|150000|220000|320000|380000|450000|600000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'NL'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Netherlands" + # throwError:tr("Invalid voltage value for this country (Kingdom of the Netherlands)") + # suggestAlternative:"13000/20000/22000/23000/24000/25000/30000/33000/34000/50000/66000/110000/150000/220000/320000/380000/450000/600000" + err.append({'class': 114, 'subclass': 1253036756, 'text': mapcss.tr('Invalid voltage value for this country (Kingdom of the Netherlands)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(33000|66000|132000|275000|400000)$/][inside("KW")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_601cbfba, '^(33000|66000|132000|275000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'KW'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Kuwait" + # throwError:tr("Invalid voltage value for this country (Kuwait)") + # suggestAlternative:"33000/66000/132000/275000/400000" + err.append({'class': 115, 'subclass': 918107724, 'text': mapcss.tr('Invalid voltage value for this country (Kuwait)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(10000|110000|220000|500000)$/][inside("KG")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_6aae528c, '^(10000|110000|220000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'KG'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Kyrgyzstan" + # throwError:tr("Invalid voltage value for this country (Kyrgyzstan)") + # suggestAlternative:"10000/110000/220000/500000" + err.append({'class': 116, 'subclass': 1243036615, 'text': mapcss.tr('Invalid voltage value for this country (Kyrgyzstan)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(110000|115000|220000|230000|500000)$/][inside("LA")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_65ecf8ac, '^(110000|115000|220000|230000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'LA'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Laos" + # throwError:tr("Invalid voltage value for this country (Laos)") + # suggestAlternative:"110000/115000/220000/230000/500000" + err.append({'class': 117, 'subclass': 336235194, 'text': mapcss.tr('Invalid voltage value for this country (Laos)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(20000|110000|330000)$/][inside("LV")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_2bb1cd2e, '^(20000|110000|330000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'LV'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Latvia" + # throwError:tr("Invalid voltage value for this country (Latvia)") + # suggestAlternative:"20000/110000/330000" + err.append({'class': 118, 'subclass': 2038674056, 'text': mapcss.tr('Invalid voltage value for this country (Latvia)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(33000|66000|150000|220000|400000)$/][inside("LB")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_043624d0, '^(33000|66000|150000|220000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'LB'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Lebanon" + # throwError:tr("Invalid voltage value for this country (Lebanon)") + # suggestAlternative:"33000/66000/150000/220000/400000" + err.append({'class': 119, 'subclass': 1740905877, 'text': mapcss.tr('Invalid voltage value for this country (Lebanon)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(33000|66000|88000|132000)$/][inside("LS")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_7d50c8e9, '^(33000|66000|88000|132000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'LS'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Lesotho" + # throwError:tr("Invalid voltage value for this country (Lesotho)") + # suggestAlternative:"33000/66000/88000/132000" + err.append({'class': 120, 'subclass': 1754904671, 'text': mapcss.tr('Invalid voltage value for this country (Lesotho)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(66000|225000)$/][inside("LR")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_7581d073, '^(66000|225000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'LR'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Liberia" + # throwError:tr("Invalid voltage value for this country (Liberia)") + # suggestAlternative:"66000/225000" + err.append({'class': 121, 'subclass': 984215265, 'text': mapcss.tr('Invalid voltage value for this country (Liberia)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(22500|25000|30000|66000|69000|132000|220000|400000|500000)$/][inside("LY")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_0f195ae1, '^(22500|25000|30000|66000|69000|132000|220000|400000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'LY'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Libya" + # throwError:tr("Invalid voltage value for this country (Libya)") + # suggestAlternative:"22500/25000/30000/66000/69000/132000/220000/400000/500000" + err.append({'class': 122, 'subclass': 112386290, 'text': mapcss.tr('Invalid voltage value for this country (Libya)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(220000)$/][inside("LI")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_7f949189, '^(220000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'LI'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Liechtenstein" + # throwError:tr("Invalid voltage value for this country (Liechtenstein)") + # suggestAlternative:"220000" + err.append({'class': 123, 'subclass': 825005646, 'text': mapcss.tr('Invalid voltage value for this country (Liechtenstein)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(15000|35000|110000|300000|330000|400000)$/][inside("LT")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_122154ab, '^(15000|35000|110000|300000|330000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'LT'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Lithuania" + # throwError:tr("Invalid voltage value for this country (Lithuania)") + # suggestAlternative:"15000/35000/110000/300000/330000/400000" + err.append({'class': 124, 'subclass': 1003755718, 'text': mapcss.tr('Invalid voltage value for this country (Lithuania)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(63000|65000|150000|220000|225000)$/][inside("LU")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_24462be0, '^(63000|65000|150000|220000|225000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'LU'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Luxembourg" + # throwError:tr("Invalid voltage value for this country (Luxembourg)") + # suggestAlternative:"63000/65000/150000/220000/225000" + err.append({'class': 125, 'subclass': 199195132, 'text': mapcss.tr('Invalid voltage value for this country (Luxembourg)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(63000|138000)$/][inside("MG")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_17045a03, '^(63000|138000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'MG'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Madagascar" + # throwError:tr("Invalid voltage value for this country (Madagascar)") + # suggestAlternative:"63000/138000" + err.append({'class': 126, 'subclass': 1292654770, 'text': mapcss.tr('Invalid voltage value for this country (Madagascar)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(11000|33000|66000|110000|132000|400000)$/][inside("MW")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_2bd2d0e5, '^(11000|33000|66000|110000|132000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'MW'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Malawi" + # throwError:tr("Invalid voltage value for this country (Malawi)") + # suggestAlternative:"11000/33000/66000/110000/132000/400000" + err.append({'class': 127, 'subclass': 43576753, 'text': mapcss.tr('Invalid voltage value for this country (Malawi)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(11000|33000|66000|132000|275000|300000|500000)$/][inside("MY")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_20a91a01, '^(11000|33000|66000|132000|275000|300000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'MY'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Malaysia" + # throwError:tr("Invalid voltage value for this country (Malaysia)") + # suggestAlternative:"11000/33000/66000/132000/275000/300000/500000" + err.append({'class': 128, 'subclass': 1227420120, 'text': mapcss.tr('Invalid voltage value for this country (Malaysia)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(132000)$/][inside("MV")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_187ae8d5, '^(132000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'MV'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Maldives" + # throwError:tr("Invalid voltage value for this country (Maldives)") + # suggestAlternative:"132000" + err.append({'class': 129, 'subclass': 1925496808, 'text': mapcss.tr('Invalid voltage value for this country (Maldives)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(63000|150000|225000)$/][inside("ML")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_2fe82f3c, '^(63000|150000|225000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'ML'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Mali" + # throwError:tr("Invalid voltage value for this country (Mali)") + # suggestAlternative:"63000/150000/225000" + err.append({'class': 130, 'subclass': 2004976190, 'text': mapcss.tr('Invalid voltage value for this country (Mali)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(11000|33000|132000|220000)$/][inside("MT")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_64f34b83, '^(11000|33000|132000|220000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'MT'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Malta" + # throwError:tr("Invalid voltage value for this country (Malta)") + # suggestAlternative:"11000/33000/132000/220000" + err.append({'class': 131, 'subclass': 378111081, 'text': mapcss.tr('Invalid voltage value for this country (Malta)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(90000|225000)$/][inside("MR")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_25cd10b5, '^(90000|225000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'MR'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Mauritania" + # throwError:tr("Invalid voltage value for this country (Mauritania)") + # suggestAlternative:"90000/225000" + err.append({'class': 132, 'subclass': 871529973, 'text': mapcss.tr('Invalid voltage value for this country (Mauritania)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(66000)$/][inside("MU")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_1639cf1a, '^(66000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'MU'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Mauritius" + # throwError:tr("Invalid voltage value for this country (Mauritius)") + # suggestAlternative:"66000" + err.append({'class': 133, 'subclass': 1783133379, 'text': mapcss.tr('Invalid voltage value for this country (Mauritius)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(13800|15000|25000|34500|65000|69000|85000|113000|115000|138000|161000|230000|400000)$/][inside("MX")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_3f88f86c, '^(13800|15000|25000|34500|65000|69000|85000|113000|115000|138000|161000|230000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'MX'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Mexico" + # throwError:tr("Invalid voltage value for this country (Mexico)") + # suggestAlternative:"13800/15000/25000/34500/65000/69000/85000/113000/115000/138000/161000/230000/400000" + err.append({'class': 134, 'subclass': 712857965, 'text': mapcss.tr('Invalid voltage value for this country (Mexico)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(33000|35000|110000|330000|400000)$/][inside("MD")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_3b02dceb, '^(33000|35000|110000|330000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'MD'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Moldova" + # throwError:tr("Invalid voltage value for this country (Moldova)") + # suggestAlternative:"33000/35000/110000/330000/400000" + err.append({'class': 135, 'subclass': 2052195698, 'text': mapcss.tr('Invalid voltage value for this country (Moldova)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(15000|22000|35000|110000|220000)$/][inside("MN")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_6dafd830, '^(15000|22000|35000|110000|220000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'MN'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Mongolia" + # throwError:tr("Invalid voltage value for this country (Mongolia)") + # suggestAlternative:"15000/22000/35000/110000/220000" + err.append({'class': 136, 'subclass': 799461216, 'text': mapcss.tr('Invalid voltage value for this country (Mongolia)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(35000|110000|220000|400000|500000)$/][inside("ME")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_4343e75a, '^(35000|110000|220000|400000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'ME'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Montenegro" + # throwError:tr("Invalid voltage value for this country (Montenegro)") + # suggestAlternative:"35000/110000/220000/400000/500000" + err.append({'class': 137, 'subclass': 415933654, 'text': mapcss.tr('Invalid voltage value for this country (Montenegro)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(20000|22000|22500|30000|33000|60000|110000|132000|150000|220000|225000|400000)$/][inside("MA")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_2f6339dc, '^(20000|22000|22500|30000|33000|60000|110000|132000|150000|220000|225000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'MA'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Morocco" + # throwError:tr("Invalid voltage value for this country (Morocco)") + # suggestAlternative:"20000/22000/22500/30000/33000/60000/110000/132000/150000/220000/225000/400000" + err.append({'class': 138, 'subclass': 1479033148, 'text': mapcss.tr('Invalid voltage value for this country (Morocco)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(66000|110000|132000|220000|275000|330000|400000|533000)$/][inside("MZ")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_263b6b3e, '^(66000|110000|132000|220000|275000|330000|400000|533000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'MZ'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Mozambique" + # throwError:tr("Invalid voltage value for this country (Mozambique)") + # suggestAlternative:"66000/110000/132000/220000/275000/330000/400000/533000" + err.append({'class': 139, 'subclass': 1584301558, 'text': mapcss.tr('Invalid voltage value for this country (Mozambique)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(11000|20000|33000|66000|110000|132000|230000|500000)$/][inside("MM")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_40006e82, '^(11000|20000|33000|66000|110000|132000|230000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'MM'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Myanmar" + # throwError:tr("Invalid voltage value for this country (Myanmar)") + # suggestAlternative:"11000/20000/33000/66000/110000/132000/230000/500000" + err.append({'class': 140, 'subclass': 978547690, 'text': mapcss.tr('Invalid voltage value for this country (Myanmar)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(11000|19000|22000|33000|66000|132000|220000|330000|350000|400000)$/][inside("NA")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_364ced34, '^(11000|19000|22000|33000|66000|132000|220000|330000|350000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'NA'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Namibia" + # throwError:tr("Invalid voltage value for this country (Namibia)") + # suggestAlternative:"11000/19000/22000/33000/66000/132000/220000/330000/350000/400000" + err.append({'class': 141, 'subclass': 2048036463, 'text': mapcss.tr('Invalid voltage value for this country (Namibia)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(33000|66000|132000|220000|400000)$/][inside("NP")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_4690e9a7, '^(33000|66000|132000|220000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'NP'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Nepal" + # throwError:tr("Invalid voltage value for this country (Nepal)") + # suggestAlternative:"33000/66000/132000/220000/400000" + err.append({'class': 142, 'subclass': 1696037054, 'text': mapcss.tr('Invalid voltage value for this country (Nepal)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(50000|66000|110000|220000)$/][inside("NZ")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_50389fcc, '^(50000|66000|110000|220000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'NZ'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/New_Zealand" + # throwError:tr("Invalid voltage value for this country (New Zealand)") + # suggestAlternative:"50000/66000/110000/220000" + err.append({'class': 143, 'subclass': 74856485, 'text': mapcss.tr('Invalid voltage value for this country (New Zealand)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(69000|138000|230000)$/][inside("NI")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_074fdc09, '^(69000|138000|230000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'NI'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Nicaragua" + # throwError:tr("Invalid voltage value for this country (Nicaragua)") + # suggestAlternative:"69000/138000/230000" + err.append({'class': 144, 'subclass': 1985119282, 'text': mapcss.tr('Invalid voltage value for this country (Nicaragua)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(66000|132000)$/][inside("NE")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_69390aec, '^(66000|132000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'NE'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Niger" + # throwError:tr("Invalid voltage value for this country (Niger)") + # suggestAlternative:"66000/132000" + err.append({'class': 145, 'subclass': 1717358769, 'text': mapcss.tr('Invalid voltage value for this country (Niger)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(11000|33000|132000|330000)$/][inside("NG")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_2687a5ba, '^(11000|33000|132000|330000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'NG'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Nigeria" + # throwError:tr("Invalid voltage value for this country (Nigeria)") + # suggestAlternative:"11000/33000/132000/330000" + err.append({'class': 146, 'subclass': 302977627, 'text': mapcss.tr('Invalid voltage value for this country (Nigeria)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(11000|66000|110000|154000|220000)$/][inside("KP")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_526934a1, '^(11000|66000|110000|154000|220000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'KP'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/North_Korea" + # throwError:tr("Invalid voltage value for this country (North Korea)") + # suggestAlternative:"11000/66000/110000/154000/220000" + err.append({'class': 147, 'subclass': 1612951322, 'text': mapcss.tr('Invalid voltage value for this country (North Korea)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(110000|220000|400000)$/][inside("MK")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_24f5f1cd, '^(110000|220000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'MK'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/North_Macedonia" + # throwError:tr("Invalid voltage value for this country (North Macedonia)") + # suggestAlternative:"110000/220000/400000" + err.append({'class': 148, 'subclass': 1520290497, 'text': mapcss.tr('Invalid voltage value for this country (North Macedonia)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(11000|12000|13000|15000|16000|17000|20000|22000|24000|25000|33000|45000|47000|50000|55000|60000|66000|80000|90000|100000|110000|132000|150000|220000|250000|300000|350000|400000|420000|450000|500000|515000|525000|825000)$/][inside("NO")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_2dccca10, '^(11000|12000|13000|15000|16000|17000|20000|22000|24000|25000|33000|45000|47000|50000|55000|60000|66000|80000|90000|100000|110000|132000|150000|220000|250000|300000|350000|400000|420000|450000|500000|515000|525000|825000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'NO'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Norway" + # throwError:tr("Invalid voltage value for this country (Norway)") + # suggestAlternative:"11000/12000/13000/15000/16000/17000/20000/22000/24000/25000/33000/45000/47000/50000/55000/60000/66000/80000/90000/100000/110000/132000/150000/220000/250000/300000/350000/400000/420000/450000/500000/515000/525000/825000" + err.append({'class': 149, 'subclass': 1676788151, 'text': mapcss.tr('Invalid voltage value for this country (Norway)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(132000|220000|400000)$/][inside("OM")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_4e6ba896, '^(132000|220000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'OM'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Oman" + # throwError:tr("Invalid voltage value for this country (Oman)") + # suggestAlternative:"132000/220000/400000" + err.append({'class': 150, 'subclass': 319049542, 'text': mapcss.tr('Invalid voltage value for this country (Oman)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(11000|33000|66000|110000|132000|220000|230000|500000|660000)$/][inside("PK")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_6e8113e9, '^(11000|33000|66000|110000|132000|220000|230000|500000|660000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'PK'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Pakistan" + # throwError:tr("Invalid voltage value for this country (Pakistan)") + # suggestAlternative:"11000/33000/66000/110000/132000/220000/230000/500000/660000" + err.append({'class': 151, 'subclass': 313197, 'text': mapcss.tr('Invalid voltage value for this country (Pakistan)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(115000|230000)$/][inside("PA")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_59057c52, '^(115000|230000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'PA'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Panama" + # throwError:tr("Invalid voltage value for this country (Panama)") + # suggestAlternative:"115000/230000" + err.append({'class': 152, 'subclass': 753259249, 'text': mapcss.tr('Invalid voltage value for this country (Panama)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(11000|66000|132000)$/][inside("PG")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_35859f0b, '^(11000|66000|132000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'PG'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Papua_New_Guinea" + # throwError:tr("Invalid voltage value for this country (Papua New Guinea)") + # suggestAlternative:"11000/66000/132000" + err.append({'class': 153, 'subclass': 495868062, 'text': mapcss.tr('Invalid voltage value for this country (Papua New Guinea)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(12000|34500|66000|69000|132000|138000|220000|500000)$/][inside("PY")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_34dfedad, '^(12000|34500|66000|69000|132000|138000|220000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'PY'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Paraguay" + # throwError:tr("Invalid voltage value for this country (Paraguay)") + # suggestAlternative:"12000/34500/66000/69000/132000/138000/220000/500000" + err.append({'class': 154, 'subclass': 959406003, 'text': mapcss.tr('Invalid voltage value for this country (Paraguay)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(10500|11000|22000|23000|25000|27000|27500|33000|35000|50000|63000|66000|100000|110000|132000|160000|220000|230000|275000|320000|330000|400000|500000|544000|660000|750000|800000|1000000|1100000|1150000|2200001|2200002|22000011)$/][inside("CN")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_65ed1a9a, '^(10500|11000|22000|23000|25000|27000|27500|33000|35000|50000|63000|66000|100000|110000|132000|160000|220000|230000|275000|320000|330000|400000|500000|544000|660000|750000|800000|1000000|1100000|1150000|2200001|2200002|22000011)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'CN'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/China" + # throwError:tr("Invalid voltage value for this country (People's Republic of China)") + # suggestAlternative:"10500/11000/22000/23000/25000/27000/27500/33000/35000/50000/63000/66000/100000/110000/132000/160000/220000/230000/275000/320000/330000/400000/500000/544000/660000/750000/800000/1000000/1100000/1150000/2200001/2200002/22000011" + err.append({'class': 155, 'subclass': 1317285370, 'text': mapcss.tr('Invalid voltage value for this country (People\'s Republic of China)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(30000|33000|60000|66000|138000|220000|230000|500000)$/][inside("PE")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_333c4ef6, '^(30000|33000|60000|66000|138000|220000|230000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'PE'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Peru" + # throwError:tr("Invalid voltage value for this country (Peru)") + # suggestAlternative:"30000/33000/60000/66000/138000/220000/230000/500000" + err.append({'class': 156, 'subclass': 801456980, 'text': mapcss.tr('Invalid voltage value for this country (Peru)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(13200|13800|20000|23000|30000|34500|60000|69000|70000|115000|138000|220000|230000|345000|350000|500000)$/][inside("PH")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_447ac42a, '^(13200|13800|20000|23000|30000|34500|60000|69000|70000|115000|138000|220000|230000|345000|350000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'PH'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Philippines" + # throwError:tr("Invalid voltage value for this country (Philippines)") + # suggestAlternative:"13200/13800/20000/23000/30000/34500/60000/69000/70000/115000/138000/220000/230000/345000/350000/500000" + err.append({'class': 157, 'subclass': 1547520871, 'text': mapcss.tr('Invalid voltage value for this country (Philippines)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(11000|15000|20000|21000|22000|25000|27000|30000|100000|110000|200000|220000|400000|450000)$/][inside("PL")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_4148662f, '^(11000|15000|20000|21000|22000|25000|27000|30000|100000|110000|200000|220000|400000|450000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'PL'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Poland" + # throwError:tr("Invalid voltage value for this country (Poland)") + # suggestAlternative:"11000/15000/20000/21000/22000/25000/27000/30000/100000/110000/200000/220000/400000/450000" + err.append({'class': 158, 'subclass': 1963740538, 'text': mapcss.tr('Invalid voltage value for this country (Poland)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(11000|15000|18000|20000|25000|30000|50000|60000|130000|150000|220000|400000)$/][inside("PT")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_08bfac39, '^(11000|15000|18000|20000|25000|30000|50000|60000|130000|150000|220000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'PT'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Portugal" + # throwError:tr("Invalid voltage value for this country (Portugal)") + # suggestAlternative:"11000/15000/18000/20000/25000/30000/50000/60000/130000/150000/220000/400000" + err.append({'class': 159, 'subclass': 1719445751, 'text': mapcss.tr('Invalid voltage value for this country (Portugal)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(21000|66000|110000|132000|220000|400000)$/][inside("QA")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_356889db, '^(21000|66000|110000|132000|220000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'QA'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Qatar" + # throwError:tr("Invalid voltage value for this country (Qatar)") + # suggestAlternative:"21000/66000/110000/132000/220000/400000" + err.append({'class': 160, 'subclass': 1141829343, 'text': mapcss.tr('Invalid voltage value for this country (Qatar)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(110000|220000)$/][inside("CG")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_5079f988, '^(110000|220000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'CG'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Republic_of_the_Congo" + # throwError:tr("Invalid voltage value for this country (Republic of the Congo)") + # suggestAlternative:"110000/220000" + err.append({'class': 161, 'subclass': 1416045335, 'text': mapcss.tr('Invalid voltage value for this country (Republic of the Congo)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(20000|25000|38000|55000|110000|220000|380000|400000)$/][inside("RO")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_6be5b2f4, '^(20000|25000|38000|55000|110000|220000|380000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'RO'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Romania" + # throwError:tr("Invalid voltage value for this country (Romania)") + # suggestAlternative:"20000/25000/38000/55000/110000/220000/380000/400000" + err.append({'class': 162, 'subclass': 1465662116, 'text': mapcss.tr('Invalid voltage value for this country (Romania)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(10500|15000|16000|20000|30000|35000|60000|66000|100000|110000|138000|150000|154000|220000|330000|350000|400000|500000|750000|800000|1100000)$/][inside("RU")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_2ff1797a, '^(10500|15000|16000|20000|30000|35000|60000|66000|100000|110000|138000|150000|154000|220000|330000|350000|400000|500000|750000|800000|1100000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'RU'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Russia" + # throwError:tr("Invalid voltage value for this country (Russia)") + # suggestAlternative:"10500/15000/16000/20000/30000/35000/60000/66000/100000/110000/138000/150000/154000/220000/330000/350000/400000/500000/750000/800000/1100000" + err.append({'class': 163, 'subclass': 1922524961, 'text': mapcss.tr('Invalid voltage value for this country (Russia)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(70000|110000|220000)$/][inside("RW")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_2e7e4902, '^(70000|110000|220000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'RW'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Rwanda" + # throwError:tr("Invalid voltage value for this country (Rwanda)") + # suggestAlternative:"70000/110000/220000" + err.append({'class': 164, 'subclass': 1243417875, 'text': mapcss.tr('Invalid voltage value for this country (Rwanda)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(132000)$/][inside("SM")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_187ae8d5, '^(132000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'SM'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/San_Marino" + # throwError:tr("Invalid voltage value for this country (San Marino)") + # suggestAlternative:"132000" + err.append({'class': 165, 'subclass': 500998395, 'text': mapcss.tr('Invalid voltage value for this country (San Marino)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(25000|33000|110000|115000|132000|230000|380000|400000)$/][inside("SA")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_313e83ad, '^(25000|33000|110000|115000|132000|230000|380000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'SA'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Saudi_Arabia" + # throwError:tr("Invalid voltage value for this country (Saudi Arabia)") + # suggestAlternative:"25000/33000/110000/115000/132000/230000/380000/400000" + err.append({'class': 166, 'subclass': 564617362, 'text': mapcss.tr('Invalid voltage value for this country (Saudi Arabia)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(90000|225000)$/][inside("SN")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_25cd10b5, '^(90000|225000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'SN'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Senegal" + # throwError:tr("Invalid voltage value for this country (Senegal)") + # suggestAlternative:"90000/225000" + err.append({'class': 167, 'subclass': 1513771068, 'text': mapcss.tr('Invalid voltage value for this country (Senegal)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(20000|25000|30000|35000|110000|220000|380000|400000)$/][inside("RS")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_494f7be8, '^(20000|25000|30000|35000|110000|220000|380000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'RS'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Serbia" + # throwError:tr("Invalid voltage value for this country (Serbia)") + # suggestAlternative:"20000/25000/30000/35000/110000/220000/380000/400000" + err.append({'class': 168, 'subclass': 1133983581, 'text': mapcss.tr('Invalid voltage value for this country (Serbia)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(161000|225000)$/][inside("SL")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_5ec31fe0, '^(161000|225000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'SL'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Sierra_Leone" + # throwError:tr("Invalid voltage value for this country (Sierra Leone)") + # suggestAlternative:"161000/225000" + err.append({'class': 169, 'subclass': 261515947, 'text': mapcss.tr('Invalid voltage value for this country (Sierra Leone)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(230000)$/][inside("SG")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_19e5679c, '^(230000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'SG'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Singapore" + # throwError:tr("Invalid voltage value for this country (Singapore)") + # suggestAlternative:"230000" + err.append({'class': 170, 'subclass': 1899755929, 'text': mapcss.tr('Invalid voltage value for this country (Singapore)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(22000|110000|220000|400000)$/][inside("SK")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_5a39ab8e, '^(22000|110000|220000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'SK'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Slovakia" + # throwError:tr("Invalid voltage value for this country (Slovakia)") + # suggestAlternative:"22000/110000/220000/400000" + err.append({'class': 171, 'subclass': 230831172, 'text': mapcss.tr('Invalid voltage value for this country (Slovakia)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(15000|20000|35000|100000|110000|220000|400000)$/][inside("SI")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_78f8f400, '^(15000|20000|35000|100000|110000|220000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'SI'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Slovenia" + # throwError:tr("Invalid voltage value for this country (Slovenia)") + # suggestAlternative:"15000/20000/35000/100000/110000/220000/400000" + err.append({'class': 172, 'subclass': 1446021610, 'text': mapcss.tr('Invalid voltage value for this country (Slovenia)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(11000|20000|22000|33000|44000|66000|88000|110000|132000|220000|275000|380000|400000|533000|765000)$/][inside("ZA")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_35ea191f, '^(11000|20000|22000|33000|44000|66000|88000|110000|132000|220000|275000|380000|400000|533000|765000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'ZA'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/South_Africa" + # throwError:tr("Invalid voltage value for this country (South Africa)") + # suggestAlternative:"11000/20000/22000/33000/44000/66000/88000/110000/132000/220000/275000/380000/400000/533000/765000" + err.append({'class': 173, 'subclass': 1260641569, 'text': mapcss.tr('Invalid voltage value for this country (South Africa)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(15000|22900|145000|150000|154000|180000|250000|345000|354000|380000|765000)$/][inside("KR")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_43d80261, '^(15000|22900|145000|150000|154000|180000|250000|345000|354000|380000|765000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'KR'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/South_Korea" + # throwError:tr("Invalid voltage value for this country (South Korea)") + # suggestAlternative:"15000/22900/145000/150000/154000/180000/250000/345000/354000/380000/765000" + err.append({'class': 174, 'subclass': 212896121, 'text': mapcss.tr('Invalid voltage value for this country (South Korea)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(220000)$/][inside("SS")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_7f949189, '^(220000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'SS'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/South_Sudan" + # throwError:tr("Invalid voltage value for this country (South Sudan)") + # suggestAlternative:"220000" + err.append({'class': 175, 'subclass': 1686564097, 'text': mapcss.tr('Invalid voltage value for this country (South Sudan)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(12000|13000|13200|15000|17000|20000|22000|24000|25000|30000|33000|35000|45000|50000|55000|60000|65000|66000|66600|100000|110000|120000|130000|132000|138000|150000|200000|220000|225000|240000|250000|320000|400000)$/][inside("ES")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_0d635fe6, '^(12000|13000|13200|15000|17000|20000|22000|24000|25000|30000|33000|35000|45000|50000|55000|60000|65000|66000|66600|100000|110000|120000|130000|132000|138000|150000|200000|220000|225000|240000|250000|320000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'ES'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Spain" + # throwError:tr("Invalid voltage value for this country (Spain)") + # suggestAlternative:"12000/13000/13200/15000/17000/20000/22000/24000/25000/30000/33000/35000/45000/50000/55000/60000/65000/66000/66600/100000/110000/120000/130000/132000/138000/150000/200000/220000/225000/240000/250000/320000/400000" + err.append({'class': 176, 'subclass': 365162145, 'text': mapcss.tr('Invalid voltage value for this country (Spain)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(11000|33000|132000|220000)$/][inside("LK")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_64f34b83, '^(11000|33000|132000|220000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'LK'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Sri_Lanka" + # throwError:tr("Invalid voltage value for this country (Sri Lanka)") + # suggestAlternative:"11000/33000/132000/220000" + err.append({'class': 177, 'subclass': 512228358, 'text': mapcss.tr('Invalid voltage value for this country (Sri Lanka)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(161000)$/][inside("PS")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_2150c255, '^(161000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'PS'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/State_of_Palestine" + # throwError:tr("Invalid voltage value for this country (State of Palestine)") + # suggestAlternative:"161000" + err.append({'class': 178, 'subclass': 393817725, 'text': mapcss.tr('Invalid voltage value for this country (State of Palestine)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(66000|110000|220000|500000)$/][inside("SD")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_2ea677e3, '^(66000|110000|220000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'SD'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Sudan" + # throwError:tr("Invalid voltage value for this country (Sudan)") + # suggestAlternative:"66000/110000/220000/500000" + err.append({'class': 179, 'subclass': 473783759, 'text': mapcss.tr('Invalid voltage value for this country (Sudan)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(161000)$/][inside("SR")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_2150c255, '^(161000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'SR'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Suriname" + # throwError:tr("Invalid voltage value for this country (Suriname)") + # suggestAlternative:"161000" + err.append({'class': 180, 'subclass': 260428512, 'text': mapcss.tr('Invalid voltage value for this country (Suriname)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(11000|12000|15000|20000|22000|24000|30000|36000|40000|45000|50000|52000|55000|60000|66000|70000|72500|77000|80000|110000|130000|132000|138000|145000|150000|160000|170000|220000|230000|236000|285000|300000|400000|412000|420000|450000|500000)$/][inside("SE")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_168afd57, '^(11000|12000|15000|20000|22000|24000|30000|36000|40000|45000|50000|52000|55000|60000|66000|70000|72500|77000|80000|110000|130000|132000|138000|145000|150000|160000|170000|220000|230000|236000|285000|300000|400000|412000|420000|450000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'SE'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Sweden" + # throwError:tr("Invalid voltage value for this country (Sweden)") + # suggestAlternative:"11000/12000/15000/20000/22000/24000/30000/36000/40000/45000/50000/52000/55000/60000/66000/70000/72500/77000/80000/110000/130000/132000/138000/145000/150000/160000/170000/220000/230000/236000/285000/300000/400000/412000/420000/450000/500000" + err.append({'class': 181, 'subclass': 920863457, 'text': mapcss.tr('Invalid voltage value for this country (Sweden)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(11000|13000|15000|15500|16000|17000|18000|20000|21000|22000|23000|25000|50000|60000|63000|65000|66000|110000|125000|130000|132000|138000|145000|150000|220000|222000|225000|380000|400000)$/][inside("CH")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_3c9d3cca, '^(11000|13000|15000|15500|16000|17000|18000|20000|21000|22000|23000|25000|50000|60000|63000|65000|66000|110000|125000|130000|132000|138000|145000|150000|220000|222000|225000|380000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'CH'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Switzerland" + # throwError:tr("Invalid voltage value for this country (Switzerland)") + # suggestAlternative:"11000/13000/15000/15500/16000/17000/18000/20000/21000/22000/23000/25000/50000/60000/63000/65000/66000/110000/125000/130000/132000/138000/145000/150000/220000/222000/225000/380000/400000" + err.append({'class': 182, 'subclass': 965602771, 'text': mapcss.tr('Invalid voltage value for this country (Switzerland)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(23000|66000|154000|161000|220000|230000|380000|400000)$/][inside("SY")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_79cf4090, '^(23000|66000|154000|161000|220000|230000|380000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'SY'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Syria" + # throwError:tr("Invalid voltage value for this country (Syria)") + # suggestAlternative:"23000/66000/154000/161000/220000/230000/380000/400000" + err.append({'class': 183, 'subclass': 148505698, 'text': mapcss.tr('Invalid voltage value for this country (Syria)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(69000|161000|345000|690000)$/][inside("TW")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_17aa7472, '^(69000|161000|345000|690000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'TW'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Taiwan" + # throwError:tr("Invalid voltage value for this country (Taiwan)") + # suggestAlternative:"69000/161000/345000/690000" + err.append({'class': 184, 'subclass': 566503490, 'text': mapcss.tr('Invalid voltage value for this country (Taiwan)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(35000|110000|138000|220000|500000)$/][inside("TJ")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_3de199b9, '^(35000|110000|138000|220000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'TJ'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Tajikistan" + # throwError:tr("Invalid voltage value for this country (Tajikistan)") + # suggestAlternative:"35000/110000/138000/220000/500000" + err.append({'class': 185, 'subclass': 198804624, 'text': mapcss.tr('Invalid voltage value for this country (Tajikistan)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(11000|33000|66000|132000|220000|222000|400000)$/][inside("TZ")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_7f98a74d, '^(11000|33000|66000|132000|220000|222000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'TZ'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Tanzania" + # throwError:tr("Invalid voltage value for this country (Tanzania)") + # suggestAlternative:"11000/33000/66000/132000/220000/222000/400000" + err.append({'class': 186, 'subclass': 1217983091, 'text': mapcss.tr('Invalid voltage value for this country (Tanzania)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(22000|50000|69000|115000|132000|230000|300000|500000)$/][inside("TH")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_6ae50e2c, '^(22000|50000|69000|115000|132000|230000|300000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'TH'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Thailand" + # throwError:tr("Invalid voltage value for this country (Thailand)") + # suggestAlternative:"22000/50000/69000/115000/132000/230000/300000/500000" + err.append({'class': 187, 'subclass': 1831131957, 'text': mapcss.tr('Invalid voltage value for this country (Thailand)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(132000)$/][inside("BS")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_187ae8d5, '^(132000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'BS'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/The_Bahamas" + # throwError:tr("Invalid voltage value for this country (The Bahamas)") + # suggestAlternative:"132000" + err.append({'class': 188, 'subclass': 566679576, 'text': mapcss.tr('Invalid voltage value for this country (The Bahamas)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(225000)$/][inside("GM")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_0e11dbdf, '^(225000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'GM'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/The_Gambia" + # throwError:tr("Invalid voltage value for this country (The Gambia)") + # suggestAlternative:"225000" + err.append({'class': 189, 'subclass': 577628701, 'text': mapcss.tr('Invalid voltage value for this country (The Gambia)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(150000)$/][inside("TL")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_25ec0862, '^(150000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'TL'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Timor-Leste" + # throwError:tr("Invalid voltage value for this country (Timor-Leste)") + # suggestAlternative:"150000" + err.append({'class': 190, 'subclass': 1279511349, 'text': mapcss.tr('Invalid voltage value for this country (Timor-Leste)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(161000|330000)$/][inside("TG")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_6a0cb1be, '^(161000|330000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'TG'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Togo" + # throwError:tr("Invalid voltage value for this country (Togo)") + # suggestAlternative:"161000/330000" + err.append({'class': 191, 'subclass': 702551067, 'text': mapcss.tr('Invalid voltage value for this country (Togo)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(66000|132000|220000)$/][inside("TT")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_0a039a95, '^(66000|132000|220000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'TT'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Trinidad_and_Tobago" + # throwError:tr("Invalid voltage value for this country (Trinidad and Tobago)") + # suggestAlternative:"66000/132000/220000" + err.append({'class': 192, 'subclass': 757133144, 'text': mapcss.tr('Invalid voltage value for this country (Trinidad and Tobago)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(15000|22500|30000|33000|90000|150000|220000|225000|400000)$/][inside("TN")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_2cc8f87e, '^(15000|22500|30000|33000|90000|150000|220000|225000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'TN'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Tunisia" + # throwError:tr("Invalid voltage value for this country (Tunisia)") + # suggestAlternative:"15000/22500/30000/33000/90000/150000/220000/225000/400000" + err.append({'class': 193, 'subclass': 54842716, 'text': mapcss.tr('Invalid voltage value for this country (Tunisia)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(20000|25000|31500|34000|34500|35000|36000|66000|150000|154000|170000|220000|345005|380000|400000|1000000)$/][inside("TR")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_7a0db6a9, '^(20000|25000|31500|34000|34500|35000|36000|66000|150000|154000|170000|220000|345005|380000|400000|1000000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'TR'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Turkey" + # throwError:tr("Invalid voltage value for this country (Turkey)") + # suggestAlternative:"20000/25000/31500/34000/34500/35000/36000/66000/150000/154000/170000/220000/345005/380000/400000/1000000" + err.append({'class': 194, 'subclass': 735496085, 'text': mapcss.tr('Invalid voltage value for this country (Turkey)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(110000|220000|230000|500000)$/][inside("TM")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_0425562b, '^(110000|220000|230000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'TM'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Turkmenistan" + # throwError:tr("Invalid voltage value for this country (Turkmenistan)") + # suggestAlternative:"110000/220000/230000/500000" + err.append({'class': 195, 'subclass': 1112676896, 'text': mapcss.tr('Invalid voltage value for this country (Turkmenistan)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(11000|15000|33000|66000|132000|220000|400000)$/][inside("UG")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_56b8f45f, '^(11000|15000|33000|66000|132000|220000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'UG'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Uganda" + # throwError:tr("Invalid voltage value for this country (Uganda)") + # suggestAlternative:"11000/15000/33000/66000/132000/220000/400000" + err.append({'class': 196, 'subclass': 1462291561, 'text': mapcss.tr('Invalid voltage value for this country (Uganda)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(15000|35000|110000|150000|154000|220000|330000|400000|500000|750000|800000)$/][inside("UA")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_789fa698, '^(15000|35000|110000|150000|154000|220000|330000|400000|500000|750000|800000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'UA'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Ukraine" + # throwError:tr("Invalid voltage value for this country (Ukraine)") + # suggestAlternative:"15000/35000/110000/150000/154000/220000/330000/400000/500000/750000/800000" + err.append({'class': 197, 'subclass': 313235741, 'text': mapcss.tr('Invalid voltage value for this country (Ukraine)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(33000|132000|220000|400000)$/][inside("AE")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_403ae00b, '^(33000|132000|220000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'AE'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/United_Arab_Emirates" + # throwError:tr("Invalid voltage value for this country (United Arab Emirates)") + # suggestAlternative:"33000/132000/220000/400000" + err.append({'class': 198, 'subclass': 518839119, 'text': mapcss.tr('Invalid voltage value for this country (United Arab Emirates)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(11000|12300|13800|15000|16000|20000|22000|24000|25000|27000|32000|33000|33300|35000|36000|66000|90000|110000|132000|145000|150000|170000|200000|220000|250000|254000|270000|275000|320000|400000|450000|515000|525000|600000)$/][inside("GB")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_0757e9d5, '^(11000|12300|13800|15000|16000|20000|22000|24000|25000|27000|32000|33000|33300|35000|36000|66000|90000|110000|132000|145000|150000|170000|200000|220000|250000|254000|270000|275000|320000|400000|450000|515000|525000|600000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'GB'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Great_Britain" + # throwError:tr("Invalid voltage value for this country (United Kingdom)") + # suggestAlternative:"11000/12300/13800/15000/16000/20000/22000/24000/25000/27000/32000/33000/33300/35000/36000/66000/90000/110000/132000/145000/150000/170000/200000/220000/250000/254000/270000/275000/320000/400000/450000/515000/525000/600000" + err.append({'class': 199, 'subclass': 171189479, 'text': mapcss.tr('Invalid voltage value for this country (United Kingdom)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(11000|11500|12000|12370|12400|12470|12500|13000|13200|13800|13860|14000|14400|14750|15000|16000|17500|18000|19920|19935|20000|20800|21000|21800|22000|23000|23900|24000|24900|24940|25000|26000|26400|27000|27600|32000|33000|34000|34500|34599|35000|35400|37500|38000|40000|41600|43000|43800|44000|46000|49000|50000|55000|57000|57100|60000|66000|69000|70000|71000|87000|88000|92000|100000|110000|111500|115000|120000|125000|130000|132000|138000|150000|160000|161000|200000|220000|230000|235000|250000|260000|276000|287000|320000|345000|400000|450000|460000|500000|690002|765000|1100000|1150003|1333000|1380000)$/][inside("US")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_32e2ea6c, '^(11000|11500|12000|12370|12400|12470|12500|13000|13200|13800|13860|14000|14400|14750|15000|16000|17500|18000|19920|19935|20000|20800|21000|21800|22000|23000|23900|24000|24900|24940|25000|26000|26400|27000|27600|32000|33000|34000|34500|34599|35000|35400|37500|38000|40000|41600|43000|43800|44000|46000|49000|50000|55000|57000|57100|60000|66000|69000|70000|71000|87000|88000|92000|100000|110000|111500|115000|120000|125000|130000|132000|138000|150000|160000|161000|200000|220000|230000|235000|250000|260000|276000|287000|320000|345000|400000|450000|460000|500000|690002|765000|1100000|1150003|1333000|1380000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'US'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/United_States" + # throwError:tr("Invalid voltage value for this country (United States)") + # suggestAlternative:"11000/11500/12000/12370/12400/12470/12500/13000/13200/13800/13860/14000/14400/14750/15000/16000/17500/18000/19920/19935/20000/20800/21000/21800/22000/23000/23900/24000/24900/24940/25000/26000/26400/27000/27600/32000/33000/34000/34500/34599/35000/35400/37500/38000/40000/41600/43000/43800/44000/46000/49000/50000/55000/57000/57100/60000/66000/69000/70000/71000/87000/88000/92000/100000/110000/111500/115000/120000/125000/130000/132000/138000/150000/160000/161000/200000/220000/230000/235000/250000/260000/276000/287000/320000/345000/400000/450000/460000/500000/690002/765000/1100000/1150003/1333000/1380000" + err.append({'class': 200, 'subclass': 976402890, 'text': mapcss.tr('Invalid voltage value for this country (United States)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(30000|31500|60000|63000|132000|150000|230000|500000)$/][inside("UY")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_5e41b29d, '^(30000|31500|60000|63000|132000|150000|230000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'UY'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Uruguay" + # throwError:tr("Invalid voltage value for this country (Uruguay)") + # suggestAlternative:"30000/31500/60000/63000/132000/150000/230000/500000" + err.append({'class': 201, 'subclass': 2015473126, 'text': mapcss.tr('Invalid voltage value for this country (Uruguay)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(35000|75000|110000|220000|350000|380000|500000)$/][inside("UZ")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_7edd7211, '^(35000|75000|110000|220000|350000|380000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'UZ'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Uzbekistan" + # throwError:tr("Invalid voltage value for this country (Uzbekistan)") + # suggestAlternative:"35000/75000/110000/220000/350000/380000/500000" + err.append({'class': 202, 'subclass': 1177563198, 'text': mapcss.tr('Invalid voltage value for this country (Uzbekistan)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(13800|24000|30000|69000|115000|138000|230000|400000|765000)$/][inside("VE")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_1cb10787, '^(13800|24000|30000|69000|115000|138000|230000|400000|765000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'VE'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Venezuela" + # throwError:tr("Invalid voltage value for this country (Venezuela)") + # suggestAlternative:"13800/24000/30000/69000/115000/138000/230000/400000/765000" + err.append({'class': 203, 'subclass': 1624283677, 'text': mapcss.tr('Invalid voltage value for this country (Venezuela)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(22000|50000|110000|115000|220000|230000|500000)$/][inside("VN")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_21b86ee6, '^(22000|50000|110000|115000|220000|230000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'VN'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Vietnam" + # throwError:tr("Invalid voltage value for this country (Vietnam)") + # suggestAlternative:"22000/50000/110000/115000/220000/230000/500000" + err.append({'class': 204, 'subclass': 1096393420, 'text': mapcss.tr('Invalid voltage value for this country (Vietnam)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(132000|400000)$/][inside("YE")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_4698125a, '^(132000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'YE'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Yemen" + # throwError:tr("Invalid voltage value for this country (Yemen)") + # suggestAlternative:"132000/400000" + err.append({'class': 205, 'subclass': 456618040, 'text': mapcss.tr('Invalid voltage value for this country (Yemen)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(11000|33000|66000|88000|132000|220000|330000)$/][inside("ZM")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_703e20a3, '^(11000|33000|66000|88000|132000|220000|330000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'ZM'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Zambia" + # throwError:tr("Invalid voltage value for this country (Zambia)") + # suggestAlternative:"11000/33000/66000/88000/132000/220000/330000" + err.append({'class': 206, 'subclass': 1080642671, 'text': mapcss.tr('Invalid voltage value for this country (Zambia)')}) + + # way[power=~/line|minor_line|cable/][voltage][voltage!~/;/][voltage!~/^(33000|66000|88000|110000|132000|220000|330000|400000)$/][inside("ZW")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_74005c1f), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_65c9364b, '^(33000|66000|88000|110000|132000|220000|330000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'ZW'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Zimbabwe" + # throwError:tr("Invalid voltage value for this country (Zimbabwe)") + # suggestAlternative:"33000/66000/88000/110000/132000/220000/330000/400000" + err.append({'class': 207, 'subclass': 418824403, 'text': mapcss.tr('Invalid voltage value for this country (Zimbabwe)')}) + + return err + + def relation(self, data, tags, members): + capture_tags = {} + keys = tags.keys() + err = [] + + + # *[power][power!~/^(cable|catenary_mast|circuit|compensator|connection|converter|generator|heliostat|insulator|inverter|line|line_section|minor_line|plant|pole|portal|substation|switch|switchgear|terminal|tower|transformer)$/] + if ('power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 1, self.re_6b88cc68, '^(cable|catenary_mast|circuit|compensator|connection|converter|generator|heliostat|insulator|inverter|line|line_section|minor_line|plant|pole|portal|substation|switch|switchgear|terminal|tower|transformer)$'), mapcss._tag_capture(capture_tags, 1, tags, 'power')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values on the wiki and correct the tag for this object.") + # -osmoseDetail:tr("The power=* tag can only have certain well-defined values. This is probably a typo or an deprecated way of tagging.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:power" + # throwError:tr("Unsuitable value for power=* tag") + # assertMatch:"relation power=cable_distribution_cabinet" + # assertMatch:"relation power=circuits" + # assertMatch:"relation power=route" + err.append({'class': 1, 'subclass': 36378028, 'text': mapcss.tr('Unsuitable value for power=* tag')}) + + # relation[type=power][!power] + if ('type' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'type') == mapcss._value_capture(capture_tags, 0, 'power')) and (not mapcss._tag_capture(capture_tags, 1, tags, 'power'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check whether it is a line section or a complete circuit, and add the power tag accordingly.") + # -osmoseDetail:tr("There are only two possible types of power relation. The power tag must be added to specify which type is involved here.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Relation:power" + # throwError:tr("Is it a power circuit or a power line section? Add the power=* tag accordingly.") + # assertNoMatch:"relation type=power power=circuit" + # assertMatch:"relation type=power" + err.append({'class': 208, 'subclass': 213213626, 'text': mapcss.tr('Is it a power circuit or a power line section? Add the power=* tag accordingly.')}) + + # relation[power=circuit][topology][topology!~/^(linear|branched)$/] + if ('power' in keys and 'topology' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'circuit')) and (mapcss._tag_capture(capture_tags, 1, tags, 'topology')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_754b6662, '^(linear|branched)$'), mapcss._tag_capture(capture_tags, 2, tags, 'topology')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the circuit topology and specify a value between `{0}` and `{1}`.","linear","branched") + # -osmoseDetail:tr("The topology tag can only take two values on the power circuit context. This is probably a typo or an error.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:topology" + # throwError:tr("power=circuit relations should have a topology tag with value linear or branched") + # assertMatch:"relation type=power power=circuit topology=branch" + # assertNoMatch:"relation type=power power=circuit topology=branched" + # assertNoMatch:"relation type=power power=circuit" + err.append({'class': 209, 'subclass': 1474691630, 'text': mapcss.tr('power=circuit relations should have a topology tag with value linear or branched')}) + + # relation[power=circuit][wires] + if ('power' in keys and 'wires' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'circuit')) and (mapcss._tag_capture(capture_tags, 1, tags, 'wires'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseDetail:tr("Bundles arrangement only regard power segments. A given circuit can go through several line segments with different bundles. Use wires only on power segments.") + # -osmoseFix:tr("Remove the tag from the circuit relation and add it to its members instead") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:wires#A_physical_property" + # throwWarning:tr("wires tag should be on the power line and not on the circuit relation") + # fixRemove:"wires" + # assertMatch:"relation type=power power=circuit wires=4" + # assertNoMatch:"relation type=power power=circuit" + err.append({'class': 210, 'subclass': 698560024, 'text': mapcss.tr('wires tag should be on the power line and not on the circuit relation'), 'allow_fix_override': True, 'fix': { + '-': ([ + 'wires']) + }}) + + # *[power=generator][generator:source][generator:source!~/^(nuclear|wind|hydro|tidal|wave|geothermal|solar|coal|gas|biomass|biofuel|biogas|oil|diesel|gasoline|waste|battery)(;(nuclear|wind|hydro|tidal|wave|geothermal|solar|coal|gas|biomass|biofuel|biogas|oil|diesel|gasoline|waste|battery))*$/] + if ('generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss._tag_capture(capture_tags, 1, tags, 'generator:source')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_0cf641e0, '^(nuclear|wind|hydro|tidal|wave|geothermal|solar|coal|gas|biomass|biofuel|biogas|oil|diesel|gasoline|waste|battery)(;(nuclear|wind|hydro|tidal|wave|geothermal|solar|coal|gas|biomass|biofuel|biogas|oil|diesel|gasoline|waste|battery))*$'), mapcss._tag_capture(capture_tags, 2, tags, 'generator:source')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values on the wiki and correct the tag for this object.") + # -osmoseDetail:tr("The generator:source=* tag can only have certain well-defined values. This is probably a typo or an deprecated way of tagging.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:source" + # throwError:tr("Unsuitable value for generator:source=* tag") + err.append({'class': 3, 'subclass': 600492584, 'text': mapcss.tr('Unsuitable value for generator:source=* tag')}) + + # *[power=generator][generator:source=nuclear][generator:method][generator:method!~/^(fission|fusion)$/] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss._tag_capture(capture_tags, 1, tags, 'generator:source') == mapcss._value_capture(capture_tags, 1, 'nuclear')) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:method')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_642c98f5, '^(fission|fusion)$'), mapcss._tag_capture(capture_tags, 3, tags, 'generator:method')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","generator:method") + # -osmoseDetail:tr("Nuclear generator can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Unsuitable method for nuclear generator") + # suggestAlternative:"fission or fusion" + # fixRemove:"generator:method" + err.append({'class': 4, 'subclass': 1513616022, 'text': mapcss.tr('Unsuitable method for nuclear generator'), 'allow_fix_override': True, 'fix': { + '-': ([ + 'generator:method']) + }}) + + # *[power=generator][generator:method=~/fission|fusion/][generator:source][generator:source!=nuclear] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss.regexp_test(mapcss._value_capture(capture_tags, 1, self.re_21537747), mapcss._tag_capture(capture_tags, 1, tags, 'generator:method'))) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:source')) and (mapcss._tag_capture(capture_tags, 3, tags, 'generator:source') != mapcss._value_const_capture(capture_tags, 3, 'nuclear', 'nuclear'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the wiki page and change the `{0}` tag or the `{1}` tag accordingly.","generator:method","generator:source") + # -osmoseDetail:tr("It is not possible to use the specified method to generate energy from this source.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Incompatibility between method and source on a power generator") + err.append({'class': 5, 'subclass': 1445012384, 'text': mapcss.tr('Incompatibility between method and source on a power generator')}) + + # *[power=generator][generator:source=wind][generator:method][generator:method!=wind_turbine] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss._tag_capture(capture_tags, 1, tags, 'generator:source') == mapcss._value_capture(capture_tags, 1, 'wind')) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:method')) and (mapcss._tag_capture(capture_tags, 3, tags, 'generator:method') != mapcss._value_const_capture(capture_tags, 3, 'wind_turbine', 'wind_turbine'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Remove the `{0}` tag or change it to `{1}`.","generator:method","wind_turbine") + # -osmoseDetail:tr("Wind generators can only use turbines to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Unsuitable method for wind generator") + # fixRemove:"generator:method" + err.append({'class': 6, 'subclass': 1104182574, 'text': mapcss.tr('Unsuitable method for wind generator'), 'allow_fix_override': True, 'fix': { + '-': ([ + 'generator:method']) + }}) + + # *[power=generator][generator:method=wind_turbine][generator:source][generator:source!=wind] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss._tag_capture(capture_tags, 1, tags, 'generator:method') == mapcss._value_capture(capture_tags, 1, 'wind_turbine')) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:source')) and (mapcss._tag_capture(capture_tags, 3, tags, 'generator:source') != mapcss._value_const_capture(capture_tags, 3, 'wind', 'wind'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the wiki page and change the `{0}` tag or the `{1}` tag accordingly.","generator:method","generator:source") + # -osmoseDetail:tr("It is not possible to use the specified method to generate energy from this source.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Incompatibility between method and source on a power generator") + err.append({'class': 5, 'subclass': 1021686777, 'text': mapcss.tr('Incompatibility between method and source on a power generator')}) + + # *[power=generator][generator:source=hydro][generator:method][generator:method!~/^(water-storage|water-pumped-storage|run-of-the-river)$/] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss._tag_capture(capture_tags, 1, tags, 'generator:source') == mapcss._value_capture(capture_tags, 1, 'hydro')) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:method')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_2c04ecfb, '^(water-storage|water-pumped-storage|run-of-the-river)$'), mapcss._tag_capture(capture_tags, 3, tags, 'generator:method')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","generator:method") + # -osmoseDetail:tr("Hydro generator can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Unsuitable method for hydro generator") + # suggestAlternative:"water-storage, run-of-the-river or water-pumped-storage" + # fixRemove:"generator:method" + err.append({'class': 7, 'subclass': 1379042787, 'text': mapcss.tr('Unsuitable method for hydro generator'), 'allow_fix_override': True, 'fix': { + '-': ([ + 'generator:method']) + }}) + + # *[power=generator][generator:method=~/^(water-storage|water-pumped-storage|run-of-the-river)$/][generator:source][generator:source!=hydro] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss.regexp_test(mapcss._value_capture(capture_tags, 1, self.re_2c04ecfb), mapcss._tag_capture(capture_tags, 1, tags, 'generator:method'))) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:source')) and (mapcss._tag_capture(capture_tags, 3, tags, 'generator:source') != mapcss._value_const_capture(capture_tags, 3, 'hydro', 'hydro'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the wiki page and change the `{0}` tag or the `{1}` tag accordingly.","generator:method","generator:source") + # -osmoseDetail:tr("It is not possible to use the specified method to generate energy from this source.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Incompatibility between method and source on a power generator") + err.append({'class': 5, 'subclass': 1830475878, 'text': mapcss.tr('Incompatibility between method and source on a power generator')}) + + # *[power=generator][generator:source=tidal][generator:method][generator:method!~/^(barrage|stream)$/] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss._tag_capture(capture_tags, 1, tags, 'generator:source') == mapcss._value_capture(capture_tags, 1, 'tidal')) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:method')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_583b6258, '^(barrage|stream)$'), mapcss._tag_capture(capture_tags, 3, tags, 'generator:method')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","generator:method") + # -osmoseDetail:tr("Tidal generator can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Unsuitable method for tidal generator") + # suggestAlternative:"barrage or stream" + # fixRemove:"generator:method" + err.append({'class': 8, 'subclass': 503240008, 'text': mapcss.tr('Unsuitable method for tidal generator'), 'allow_fix_override': True, 'fix': { + '-': ([ + 'generator:method']) + }}) + + # *[power=generator][generator:method=~/^(barrage|stream)$/][generator:source][generator:source!=tidal] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss.regexp_test(mapcss._value_capture(capture_tags, 1, self.re_583b6258), mapcss._tag_capture(capture_tags, 1, tags, 'generator:method'))) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:source')) and (mapcss._tag_capture(capture_tags, 3, tags, 'generator:source') != mapcss._value_const_capture(capture_tags, 3, 'tidal', 'tidal'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the wiki page and change the `{0}` tag or the `{1}` tag accordingly.","generator:method","generator:source") + # -osmoseDetail:tr("It is not possible to use the specified method to generate energy from this source.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Incompatibility between method and source on a power generator") + err.append({'class': 5, 'subclass': 976314568, 'text': mapcss.tr('Incompatibility between method and source on a power generator')}) + + # *[power=generator][generator:source=solar][generator:method][generator:method!~/^(thermal|photovoltaic)$/] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss._tag_capture(capture_tags, 1, tags, 'generator:source') == mapcss._value_capture(capture_tags, 1, 'solar')) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:method')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_26c08bf9, '^(thermal|photovoltaic)$'), mapcss._tag_capture(capture_tags, 3, tags, 'generator:method')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","generator:method") + # -osmoseDetail:tr("Solar generator can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Unsuitable method for solar generator") + # suggestAlternative:"thermal or photovoltaic" + # fixRemove:"generator:method" + err.append({'class': 9, 'subclass': 1095645684, 'text': mapcss.tr('Unsuitable method for solar generator'), 'allow_fix_override': True, 'fix': { + '-': ([ + 'generator:method']) + }}) + + # *[power=generator][generator:method=~/^(thermal|photovoltaic)$/][generator:source][generator:source!=solar] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss.regexp_test(mapcss._value_capture(capture_tags, 1, self.re_26c08bf9), mapcss._tag_capture(capture_tags, 1, tags, 'generator:method'))) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:source')) and (mapcss._tag_capture(capture_tags, 3, tags, 'generator:source') != mapcss._value_const_capture(capture_tags, 3, 'solar', 'solar'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the wiki page and change the `{0}` tag or the `{1}` tag accordingly.","generator:method","generator:source") + # -osmoseDetail:tr("It is not possible to use the specified method to generate energy from this source.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Incompatibility between method and source on a power generator") + err.append({'class': 5, 'subclass': 1457983121, 'text': mapcss.tr('Incompatibility between method and source on a power generator')}) + + # *[power=generator][generator:source=coal][generator:method][generator:method!=combustion] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss._tag_capture(capture_tags, 1, tags, 'generator:source') == mapcss._value_capture(capture_tags, 1, 'coal')) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:method')) and (mapcss._tag_capture(capture_tags, 3, tags, 'generator:method') != mapcss._value_const_capture(capture_tags, 3, 'combustion', 'combustion'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","generator:method") + # -osmoseDetail:tr("Coal generator can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Unsuitable method for coal generator") + err.append({'class': 10, 'subclass': 727067352, 'text': mapcss.tr('Unsuitable method for coal generator')}) + + # *[power=generator][generator:source=gas][generator:method][generator:method!=combustion] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss._tag_capture(capture_tags, 1, tags, 'generator:source') == mapcss._value_capture(capture_tags, 1, 'gas')) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:method')) and (mapcss._tag_capture(capture_tags, 3, tags, 'generator:method') != mapcss._value_const_capture(capture_tags, 3, 'combustion', 'combustion'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","generator:method") + # -osmoseDetail:tr("Gas generator can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Unsuitable method for gas generator") + err.append({'class': 11, 'subclass': 1587058630, 'text': mapcss.tr('Unsuitable method for gas generator')}) + + # *[power=generator][generator:source=biomass][generator:method][generator:method!~/^(combustion|gasification|anaerobic_digestion)$/] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss._tag_capture(capture_tags, 1, tags, 'generator:source') == mapcss._value_capture(capture_tags, 1, 'biomass')) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:method')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_009ee9c4, '^(combustion|gasification|anaerobic_digestion)$'), mapcss._tag_capture(capture_tags, 3, tags, 'generator:method')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseDetail:tr("Biomass generator can only use certain well-defined methods to generate energy.") + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","generator:method") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Unsuitable method for biomass generator") + # suggestAlternative:"combustion, anaerobic_digestion or gasification" + # fixRemove:"generator:method" + err.append({'class': 12, 'subclass': 1563205211, 'text': mapcss.tr('Unsuitable method for biomass generator'), 'allow_fix_override': True, 'fix': { + '-': ([ + 'generator:method']) + }}) + + # *[power=generator][generator:source=biofuel][generator:method][generator:method!=combustion] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss._tag_capture(capture_tags, 1, tags, 'generator:source') == mapcss._value_capture(capture_tags, 1, 'biofuel')) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:method')) and (mapcss._tag_capture(capture_tags, 3, tags, 'generator:method') != mapcss._value_const_capture(capture_tags, 3, 'combustion', 'combustion'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseDetail:tr("Biofuel generator can only use certain well-defined methods to generate energy.") + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","generator:method") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Unsuitable method for biofuel generator") + err.append({'class': 13, 'subclass': 2056310355, 'text': mapcss.tr('Unsuitable method for biofuel generator')}) + + # *[power=generator][generator:source=biogas][generator:method][generator:method!=combustion] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss._tag_capture(capture_tags, 1, tags, 'generator:source') == mapcss._value_capture(capture_tags, 1, 'biogas')) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:method')) and (mapcss._tag_capture(capture_tags, 3, tags, 'generator:method') != mapcss._value_const_capture(capture_tags, 3, 'combustion', 'combustion'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseDetail:tr("Biogas generator can only use certain well-defined methods to generate energy.") + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","generator:method") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Unsuitable method for biogas generator") + err.append({'class': 14, 'subclass': 1353854094, 'text': mapcss.tr('Unsuitable method for biogas generator')}) + + # *[power=generator][generator:source=oil][generator:method][generator:method!=combustion] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss._tag_capture(capture_tags, 1, tags, 'generator:source') == mapcss._value_capture(capture_tags, 1, 'oil')) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:method')) and (mapcss._tag_capture(capture_tags, 3, tags, 'generator:method') != mapcss._value_const_capture(capture_tags, 3, 'combustion', 'combustion'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","generator:method") + # -osmoseDetail:tr("Oil generator can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Unsuitable method for oil generator") + err.append({'class': 15, 'subclass': 2059171544, 'text': mapcss.tr('Unsuitable method for oil generator')}) + + # *[power=generator][generator:source=diesel][generator:method][generator:method!=combustion] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss._tag_capture(capture_tags, 1, tags, 'generator:source') == mapcss._value_capture(capture_tags, 1, 'diesel')) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:method')) and (mapcss._tag_capture(capture_tags, 3, tags, 'generator:method') != mapcss._value_const_capture(capture_tags, 3, 'combustion', 'combustion'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","generator:method") + # -osmoseDetail:tr("Diesel generator can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Unsuitable method for diesel generator") + err.append({'class': 16, 'subclass': 87750196, 'text': mapcss.tr('Unsuitable method for diesel generator')}) + + # *[power=generator][generator:source=gasoline][generator:method][generator:method!=combustion] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss._tag_capture(capture_tags, 1, tags, 'generator:source') == mapcss._value_capture(capture_tags, 1, 'gasoline')) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:method')) and (mapcss._tag_capture(capture_tags, 3, tags, 'generator:method') != mapcss._value_const_capture(capture_tags, 3, 'combustion', 'combustion'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","generator:method") + # -osmoseDetail:tr("Gasoline generator can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Unsuitable method for gasoline generator") + err.append({'class': 17, 'subclass': 1418218249, 'text': mapcss.tr('Unsuitable method for gasoline generator')}) + + # *[power=generator][generator:source=waste][generator:method][generator:method!~/^(combustion|gasification)$/] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss._tag_capture(capture_tags, 1, tags, 'generator:source') == mapcss._value_capture(capture_tags, 1, 'waste')) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:method')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_05a6cbca, '^(combustion|gasification)$'), mapcss._tag_capture(capture_tags, 3, tags, 'generator:method')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","generator:method") + # -osmoseDetail:tr("Waste generator can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Unsuitable method for waste generator") + # suggestAlternative:"combustion or gasification" + # fixRemove:"generator:method" + err.append({'class': 18, 'subclass': 600470569, 'text': mapcss.tr('Unsuitable method for waste generator'), 'allow_fix_override': True, 'fix': { + '-': ([ + 'generator:method']) + }}) + + # *[power=generator][generator:method=combustion][generator:source][generator:source!~/^(waste|gasoline|diesel|oil|biogas|biofuel|biomass|gas|coal)(;(waste|gasoline|diesel|oil|biogas|biofuel|biomass|gas|coal))*$/] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss._tag_capture(capture_tags, 1, tags, 'generator:method') == mapcss._value_capture(capture_tags, 1, 'combustion')) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:source')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_5b4d6241, '^(waste|gasoline|diesel|oil|biogas|biofuel|biomass|gas|coal)(;(waste|gasoline|diesel|oil|biogas|biofuel|biomass|gas|coal))*$'), mapcss._tag_capture(capture_tags, 3, tags, 'generator:source')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the wiki page and change the `{0}` tag or the `{1}` tag accordingly.","generator:method","generator:source") + # -osmoseDetail:tr("It is not possible to use the specified method to generate energy from this source.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Incompatibility between method and source on a power generator") + err.append({'class': 5, 'subclass': 1335984003, 'text': mapcss.tr('Incompatibility between method and source on a power generator')}) + + # *[power=generator][generator:method=gasification][generator:source][generator:source!~/^(waste|biomass)(;(waste|biomass))*$/] + if ('generator:method' in keys and 'generator:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'generator')) and (mapcss._tag_capture(capture_tags, 1, tags, 'generator:method') == mapcss._value_capture(capture_tags, 1, 'gasification')) and (mapcss._tag_capture(capture_tags, 2, tags, 'generator:source')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_5d252d75, '^(waste|biomass)(;(waste|biomass))*$'), mapcss._tag_capture(capture_tags, 3, tags, 'generator:source')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the wiki page and change the `{0}` tag or the `{1}` tag accordingly.","generator:method","generator:source") + # -osmoseDetail:tr("It is not possible to use the specified method to generate energy from this source.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:generator:method" + # throwError:tr("Incompatibility between method and source on a power generator") + err.append({'class': 5, 'subclass': 313390332, 'text': mapcss.tr('Incompatibility between method and source on a power generator')}) + + # *[power=plant][plant:source][plant:source!~/^(nuclear|wind|hydro|tidal|wave|geothermal|solar|coal|gas|biomass|biofuel|biogas|oil|diesel|gasoline|waste|battery)(;(nuclear|wind|hydro|tidal|wave|geothermal|solar|coal|gas|biomass|biofuel|biogas|oil|diesel|gasoline|waste|battery))*$/] + if ('plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss._tag_capture(capture_tags, 1, tags, 'plant:source')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_0cf641e0, '^(nuclear|wind|hydro|tidal|wave|geothermal|solar|coal|gas|biomass|biofuel|biogas|oil|diesel|gasoline|waste|battery)(;(nuclear|wind|hydro|tidal|wave|geothermal|solar|coal|gas|biomass|biofuel|biogas|oil|diesel|gasoline|waste|battery))*$'), mapcss._tag_capture(capture_tags, 2, tags, 'plant:source')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values on the wiki and correct the tag for this object.") + # -osmoseDetail:tr("The plant:source=* tag can only have certain well-defined values. This is probably a typo or an deprecated way of tagging.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:source" + # throwError:tr("Unsuitable value for plant:source=* tag") + err.append({'class': 19, 'subclass': 966751128, 'text': mapcss.tr('Unsuitable value for plant:source=* tag')}) + + # *[power=plant][plant:source=nuclear][plant:method][plant:method!~/^(fission|fusion)$/] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss._tag_capture(capture_tags, 1, tags, 'plant:source') == mapcss._value_capture(capture_tags, 1, 'nuclear')) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:method')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_642c98f5, '^(fission|fusion)$'), mapcss._tag_capture(capture_tags, 3, tags, 'plant:method')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","plant:method") + # -osmoseDetail:tr("Nuclear power plants can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Unsuitable method for nuclear power plant") + # suggestAlternative:"fission or fusion" + # fixRemove:"plant:method" + err.append({'class': 20, 'subclass': 56152287, 'text': mapcss.tr('Unsuitable method for nuclear power plant'), 'allow_fix_override': True, 'fix': { + '-': ([ + 'plant:method']) + }}) + + # *[power=plant][plant:method=~/^(fission|fusion)$/][plant:source][plant:source!=nuclear] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss.regexp_test(mapcss._value_capture(capture_tags, 1, self.re_642c98f5), mapcss._tag_capture(capture_tags, 1, tags, 'plant:method'))) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:source')) and (mapcss._tag_capture(capture_tags, 3, tags, 'plant:source') != mapcss._value_const_capture(capture_tags, 3, 'nuclear', 'nuclear'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the wiki page and change the `{0}` tag or the `{1}` tag accordingly.","plant:method","plant:source") + # -osmoseDetail:tr("It is not possible to use the specified method to generate energy from this source.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Incompatibility between method and source on a power plant") + err.append({'class': 21, 'subclass': 120690153, 'text': mapcss.tr('Incompatibility between method and source on a power plant')}) + + # *[power=plant][plant:source=wind][plant:method][plant:method!=wind_turbine] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss._tag_capture(capture_tags, 1, tags, 'plant:source') == mapcss._value_capture(capture_tags, 1, 'wind')) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:method')) and (mapcss._tag_capture(capture_tags, 3, tags, 'plant:method') != mapcss._value_const_capture(capture_tags, 3, 'wind_turbine', 'wind_turbine'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","plant:method") + # -osmoseDetail:tr("Wind power plants can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Unsuitable method for wind power plant") + # fixRemove:"plant:method" + err.append({'class': 22, 'subclass': 515061741, 'text': mapcss.tr('Unsuitable method for wind power plant'), 'allow_fix_override': True, 'fix': { + '-': ([ + 'plant:method']) + }}) + + # *[power=plant][plant:method=wind_turbine][plant:source][plant:source!=wind] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss._tag_capture(capture_tags, 1, tags, 'plant:method') == mapcss._value_capture(capture_tags, 1, 'wind_turbine')) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:source')) and (mapcss._tag_capture(capture_tags, 3, tags, 'plant:source') != mapcss._value_const_capture(capture_tags, 3, 'wind', 'wind'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the wiki page and change the `{0}` tag or the `{1}` tag accordingly.","plant:method","plant:source") + # -osmoseDetail:tr("It is not possible to use the specified method to generate energy from this source.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Incompatibility between method and source on a power plant") + err.append({'class': 21, 'subclass': 443176990, 'text': mapcss.tr('Incompatibility between method and source on a power plant')}) + + # *[power=plant][plant:source=hydro][plant:method][plant:method!~/^(water-storage|water-pumped-storage|run-of-the-river)$/] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss._tag_capture(capture_tags, 1, tags, 'plant:source') == mapcss._value_capture(capture_tags, 1, 'hydro')) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:method')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_2c04ecfb, '^(water-storage|water-pumped-storage|run-of-the-river)$'), mapcss._tag_capture(capture_tags, 3, tags, 'plant:method')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","plant:method") + # -osmoseDetail:tr("Hydro power plants can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Unsuitable method for hydro power plant") + # suggestAlternative:"water-storage, run-of-the-river or water-pumped-storage" + # fixRemove:"plant:method" + err.append({'class': 23, 'subclass': 1020856194, 'text': mapcss.tr('Unsuitable method for hydro power plant'), 'allow_fix_override': True, 'fix': { + '-': ([ + 'plant:method']) + }}) + + # *[power=plant][plant:method=~/^(water-storage|water-pumped-storage|run-of-the-river)$/][plant:source][plant:source!=hydro] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss.regexp_test(mapcss._value_capture(capture_tags, 1, self.re_2c04ecfb), mapcss._tag_capture(capture_tags, 1, tags, 'plant:method'))) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:source')) and (mapcss._tag_capture(capture_tags, 3, tags, 'plant:source') != mapcss._value_const_capture(capture_tags, 3, 'hydro', 'hydro'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the wiki page and change the `{0}` tag or the `{1}` tag accordingly.","plant:method","plant:source") + # -osmoseDetail:tr("It is not possible to use the specified method to generate energy from this source.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Incompatibility between method and source on a power plant") + err.append({'class': 21, 'subclass': 1372509170, 'text': mapcss.tr('Incompatibility between method and source on a power plant')}) + + # *[power=plant][plant:source=tidal][plant:method][plant:method!~/^(barrage|stream)$/] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss._tag_capture(capture_tags, 1, tags, 'plant:source') == mapcss._value_capture(capture_tags, 1, 'tidal')) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:method')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_583b6258, '^(barrage|stream)$'), mapcss._tag_capture(capture_tags, 3, tags, 'plant:method')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","plant:method") + # -osmoseDetail:tr("Tidal power plants can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Unsuitable method for tidal power plant") + # suggestAlternative:"barrage or stream" + # fixRemove:"plant:method" + err.append({'class': 24, 'subclass': 75438578, 'text': mapcss.tr('Unsuitable method for tidal power plant'), 'allow_fix_override': True, 'fix': { + '-': ([ + 'plant:method']) + }}) + + # *[power=plant][plant:method=~/^(barrage|stream)$/][plant:source][plant:source!=tidal] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss.regexp_test(mapcss._value_capture(capture_tags, 1, self.re_583b6258), mapcss._tag_capture(capture_tags, 1, tags, 'plant:method'))) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:source')) and (mapcss._tag_capture(capture_tags, 3, tags, 'plant:source') != mapcss._value_const_capture(capture_tags, 3, 'tidal', 'tidal'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the wiki page and change the `{0}` tag or the `{1}` tag accordingly.","plant:method","plant:source") + # -osmoseDetail:tr("It is not possible to use the specified method to generate energy from this source.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Incompatibility between method and source on a power plant") + err.append({'class': 21, 'subclass': 934978595, 'text': mapcss.tr('Incompatibility between method and source on a power plant')}) + + # *[power=plant][plant:source=solar][plant:method][plant:method!~/^(thermal|photovoltaic)$/] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss._tag_capture(capture_tags, 1, tags, 'plant:source') == mapcss._value_capture(capture_tags, 1, 'solar')) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:method')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_26c08bf9, '^(thermal|photovoltaic)$'), mapcss._tag_capture(capture_tags, 3, tags, 'plant:method')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","plant:method") + # -osmoseDetail:tr("Solar power plants can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Unsuitable method for solar power plant") + # suggestAlternative:"thermal or photovoltaic" + # fixRemove:"plant:method" + err.append({'class': 25, 'subclass': 1799335667, 'text': mapcss.tr('Unsuitable method for solar power plant'), 'allow_fix_override': True, 'fix': { + '-': ([ + 'plant:method']) + }}) + + # *[power=plant][plant:method=~/^(thermal|photovoltaic)$/][plant:source][plant:source!=solar] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss.regexp_test(mapcss._value_capture(capture_tags, 1, self.re_26c08bf9), mapcss._tag_capture(capture_tags, 1, tags, 'plant:method'))) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:source')) and (mapcss._tag_capture(capture_tags, 3, tags, 'plant:source') != mapcss._value_const_capture(capture_tags, 3, 'solar', 'solar'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the wiki page and change the `{0}` tag or the `{1}` tag accordingly.","plant:method","plant:source") + # -osmoseDetail:tr("It is not possible to use the specified method to generate energy from this source.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Incompatibility between method and source on a power plant") + err.append({'class': 21, 'subclass': 1085835351, 'text': mapcss.tr('Incompatibility between method and source on a power plant')}) + + # *[power=plant][plant:source=coal][plant:method][plant:method!=combustion] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss._tag_capture(capture_tags, 1, tags, 'plant:source') == mapcss._value_capture(capture_tags, 1, 'coal')) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:method')) and (mapcss._tag_capture(capture_tags, 3, tags, 'plant:method') != mapcss._value_const_capture(capture_tags, 3, 'combustion', 'combustion'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","plant:method") + # -osmoseDetail:tr("Coal power plants can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Unsuitable method for coal power plant") + err.append({'class': 26, 'subclass': 746471181, 'text': mapcss.tr('Unsuitable method for coal power plant')}) + + # *[power=plant][plant:source=gas][plant:method][plant:method!=combustion] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss._tag_capture(capture_tags, 1, tags, 'plant:source') == mapcss._value_capture(capture_tags, 1, 'gas')) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:method')) and (mapcss._tag_capture(capture_tags, 3, tags, 'plant:method') != mapcss._value_const_capture(capture_tags, 3, 'combustion', 'combustion'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","plant:method") + # -osmoseDetail:tr("Gas power plants can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Unsuitable method for gas power plant") + err.append({'class': 27, 'subclass': 827336490, 'text': mapcss.tr('Unsuitable method for gas power plant')}) + + # *[power=plant][plant:source=biomass][plant:method][plant:method!~/^(combustion|gasification|anaerobic_digestion)$/] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss._tag_capture(capture_tags, 1, tags, 'plant:source') == mapcss._value_capture(capture_tags, 1, 'biomass')) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:method')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_009ee9c4, '^(combustion|gasification|anaerobic_digestion)$'), mapcss._tag_capture(capture_tags, 3, tags, 'plant:method')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseDetail:tr("Biomass power plants can only use certain well-defined methods to generate energy.") + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","plant:method") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Unsuitable method for biomass power plant") + # suggestAlternative:"combustion, anaerobic_digestion or gasification" + # fixRemove:"plant:method" + err.append({'class': 28, 'subclass': 2076402923, 'text': mapcss.tr('Unsuitable method for biomass power plant'), 'allow_fix_override': True, 'fix': { + '-': ([ + 'plant:method']) + }}) + + # *[power=plant][plant:source=biofuel][plant:method][plant:method!=combustion] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss._tag_capture(capture_tags, 1, tags, 'plant:source') == mapcss._value_capture(capture_tags, 1, 'biofuel')) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:method')) and (mapcss._tag_capture(capture_tags, 3, tags, 'plant:method') != mapcss._value_const_capture(capture_tags, 3, 'combustion', 'combustion'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseDetail:tr("Biofuel power plants can only use certain well-defined methods to generate energy.") + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","plant:method") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Unsuitable method for biofuel power plant") + err.append({'class': 29, 'subclass': 1882895060, 'text': mapcss.tr('Unsuitable method for biofuel power plant')}) + + # *[power=plant][plant:source=biogas][plant:method][plant:method!=combustion] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss._tag_capture(capture_tags, 1, tags, 'plant:source') == mapcss._value_capture(capture_tags, 1, 'biogas')) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:method')) and (mapcss._tag_capture(capture_tags, 3, tags, 'plant:method') != mapcss._value_const_capture(capture_tags, 3, 'combustion', 'combustion'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseDetail:tr("Biogas power plants can only use certain well-defined methods to generate energy.") + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","plant:method") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Unsuitable method for biogas power plant") + err.append({'class': 30, 'subclass': 887792794, 'text': mapcss.tr('Unsuitable method for biogas power plant')}) + + # *[power=plant][plant:source=oil][plant:method][plant:method!=combustion] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss._tag_capture(capture_tags, 1, tags, 'plant:source') == mapcss._value_capture(capture_tags, 1, 'oil')) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:method')) and (mapcss._tag_capture(capture_tags, 3, tags, 'plant:method') != mapcss._value_const_capture(capture_tags, 3, 'combustion', 'combustion'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","plant:method") + # -osmoseDetail:tr("Oil power plants can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Unsuitable method for oil power plant") + err.append({'class': 31, 'subclass': 1678290892, 'text': mapcss.tr('Unsuitable method for oil power plant')}) + + # *[power=plant][plant:source=diesel][plant:method][plant:method!=combustion] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss._tag_capture(capture_tags, 1, tags, 'plant:source') == mapcss._value_capture(capture_tags, 1, 'diesel')) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:method')) and (mapcss._tag_capture(capture_tags, 3, tags, 'plant:method') != mapcss._value_const_capture(capture_tags, 3, 'combustion', 'combustion'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","plant:method") + # -osmoseDetail:tr("Diesel power plants can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Unsuitable method for diesel power plant") + err.append({'class': 32, 'subclass': 75543302, 'text': mapcss.tr('Unsuitable method for diesel power plant')}) + + # *[power=plant][plant:source=gasoline][plant:method][plant:method!=combustion] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss._tag_capture(capture_tags, 1, tags, 'plant:source') == mapcss._value_capture(capture_tags, 1, 'gasoline')) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:method')) and (mapcss._tag_capture(capture_tags, 3, tags, 'plant:method') != mapcss._value_const_capture(capture_tags, 3, 'combustion', 'combustion'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","plant:method") + # -osmoseDetail:tr("Gasoline power plants can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Unsuitable method for gasoline power plant") + err.append({'class': 33, 'subclass': 599334301, 'text': mapcss.tr('Unsuitable method for gasoline power plant')}) + + # *[power=plant][plant:source=waste][plant:method][plant:method!~/^(combustion|gasification)$/] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss._tag_capture(capture_tags, 1, tags, 'plant:source') == mapcss._value_capture(capture_tags, 1, 'waste')) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:method')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_05a6cbca, '^(combustion|gasification)$'), mapcss._tag_capture(capture_tags, 3, tags, 'plant:method')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this source on the wiki and correct the `{0}` tag.","plant:method") + # -osmoseDetail:tr("Waste power plants can only use certain well-defined methods to generate energy.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Unsuitable method for waste power plant") + # suggestAlternative:"combustion or gasification" + # fixRemove:"plant:method" + err.append({'class': 34, 'subclass': 489417432, 'text': mapcss.tr('Unsuitable method for waste power plant'), 'allow_fix_override': True, 'fix': { + '-': ([ + 'plant:method']) + }}) + + # *[power=plant][plant:method=combustion][plant:source][plant:source!~/^(waste|gasoline|diesel|oil|biogas|biofuel|biomass|gas|coal)(;(waste|gasoline|diesel|oil|biogas|biofuel|biomass|gas|coal))*$/] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss._tag_capture(capture_tags, 1, tags, 'plant:method') == mapcss._value_capture(capture_tags, 1, 'combustion')) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:source')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_5b4d6241, '^(waste|gasoline|diesel|oil|biogas|biofuel|biomass|gas|coal)(;(waste|gasoline|diesel|oil|biogas|biofuel|biomass|gas|coal))*$'), mapcss._tag_capture(capture_tags, 3, tags, 'plant:source')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the wiki page and change the `{0}` tag or the `{1}` tag accordingly.","plant:method","plant:source") + # -osmoseDetail:tr("It is not possible to use the specified method to generate energy from this source.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Incompatibility between method and source on a power plant") + err.append({'class': 21, 'subclass': 46745407, 'text': mapcss.tr('Incompatibility between method and source on a power plant')}) + + # *[power=plant][plant:method=gasification][plant:source][plant:source!~/^(waste|biomass)(;(waste|biomass))*$/] + if ('plant:method' in keys and 'plant:source' in keys and 'power' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss._tag_capture(capture_tags, 0, tags, 'power') == mapcss._value_capture(capture_tags, 0, 'plant')) and (mapcss._tag_capture(capture_tags, 1, tags, 'plant:method') == mapcss._value_capture(capture_tags, 1, 'gasification')) and (mapcss._tag_capture(capture_tags, 2, tags, 'plant:source')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_5d252d75, '^(waste|biomass)(;(waste|biomass))*$'), mapcss._tag_capture(capture_tags, 3, tags, 'plant:source')))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the wiki page and change the `{0}` tag or the `{1}` tag accordingly.","plant:method","plant:source") + # -osmoseDetail:tr("It is not possible to use the specified method to generate energy from this source.") + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Key:plant:method" + # throwError:tr("Incompatibility between method and source on a power plant") + err.append({'class': 21, 'subclass': 1329720574, 'text': mapcss.tr('Incompatibility between method and source on a power plant')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(110000|132000|220000|500000)$/][inside("AF")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_7b35047a, '^(110000|132000|220000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'AF'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Afghanistan" + # throwError:tr("Invalid voltage value for this country (Afghanistan)") + # suggestAlternative:"110000/132000/220000/500000" + err.append({'class': 35, 'subclass': 1658987040, 'text': mapcss.tr('Invalid voltage value for this country (Afghanistan)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(30000|35000|110000|150000|220000|400000)$/][inside("AL")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_0a188683, '^(30000|35000|110000|150000|220000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'AL'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Albania" + # throwError:tr("Invalid voltage value for this country (Albania)") + # suggestAlternative:"30000/35000/110000/150000/220000/400000" + err.append({'class': 36, 'subclass': 694199261, 'text': mapcss.tr('Invalid voltage value for this country (Albania)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(30000|60000|66000|90000|150000|220000|225000|400000)$/][inside("DZ")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_580cbc71, '^(30000|60000|66000|90000|150000|220000|225000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'DZ'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Algeria" + # throwError:tr("Invalid voltage value for this country (Algeria)") + # suggestAlternative:"30000/60000/66000/90000/150000/220000/225000/400000" + err.append({'class': 37, 'subclass': 636679821, 'text': mapcss.tr('Invalid voltage value for this country (Algeria)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(110000|150000|225000)$/][inside("AD")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_7bbd0e42, '^(110000|150000|225000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'AD'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Andorra" + # throwError:tr("Invalid voltage value for this country (Andorra)") + # suggestAlternative:"110000/150000/225000" + err.append({'class': 38, 'subclass': 126909132, 'text': mapcss.tr('Invalid voltage value for this country (Andorra)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(60000|66000|110000|132000|150000|220000|400000)$/][inside("AO")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_20a11341, '^(60000|66000|110000|132000|150000|220000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'AO'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Angola" + # throwError:tr("Invalid voltage value for this country (Angola)") + # suggestAlternative:"60000/66000/110000/132000/150000/220000/400000" + err.append({'class': 39, 'subclass': 1450422851, 'text': mapcss.tr('Invalid voltage value for this country (Angola)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(13200|25000|32000|33000|35000|66000|132000|220000|330000|345000|500000)$/][inside("AR")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_7889b2ce, '^(13200|25000|32000|33000|35000|66000|132000|220000|330000|345000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'AR'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Argentina" + # throwError:tr("Invalid voltage value for this country (Argentina)") + # suggestAlternative:"13200/25000/32000/33000/35000/66000/132000/220000/330000/345000/500000" + err.append({'class': 40, 'subclass': 1675858879, 'text': mapcss.tr('Invalid voltage value for this country (Argentina)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(35000|36000|100000|110000|220000|230000|330000|400000|500000)$/][inside("AM")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_1f435557, '^(35000|36000|100000|110000|220000|230000|330000|400000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'AM'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Armenia" + # throwError:tr("Invalid voltage value for this country (Armenia)") + # suggestAlternative:"35000/36000/100000/110000/220000/230000/330000/400000/500000" + err.append({'class': 41, 'subclass': 1386180325, 'text': mapcss.tr('Invalid voltage value for this country (Armenia)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(10500|11000|12700|19000|19100|22000|33000|35000|44000|50000|66000|80000|110000|132000|150000|220000|275000|330000|400000|500000)$/][inside("AU")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_110dc891, '^(10500|11000|12700|19000|19100|22000|33000|35000|44000|50000|66000|80000|110000|132000|150000|220000|275000|330000|400000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'AU'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Australia" + # throwError:tr("Invalid voltage value for this country (Australia)") + # suggestAlternative:"10500/11000/12700/19000/19100/22000/33000/35000/44000/50000/66000/80000/110000/132000/150000/220000/275000/330000/400000/500000" + err.append({'class': 42, 'subclass': 1553758531, 'text': mapcss.tr('Invalid voltage value for this country (Australia)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(10500|13800|15000|16000|17500|20000|25000|30000|55000|60000|110000|132000|150000|220000|380000|400000)$/][inside("AT")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_4c208d10, '^(10500|13800|15000|16000|17500|20000|25000|30000|55000|60000|110000|132000|150000|220000|380000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'AT'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Austria" + # throwError:tr("Invalid voltage value for this country (Austria)") + # suggestAlternative:"10500/13800/15000/16000/17500/20000/25000/30000/55000/60000/110000/132000/150000/220000/380000/400000" + err.append({'class': 43, 'subclass': 2128078502, 'text': mapcss.tr('Invalid voltage value for this country (Austria)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(35000|110000|132000|154000|220000|330000|500000)$/][inside("AZ")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_4366c21c, '^(35000|110000|132000|154000|220000|330000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'AZ'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Azerbaijan" + # throwError:tr("Invalid voltage value for this country (Azerbaijan)") + # suggestAlternative:"35000/110000/132000/154000/220000/330000/500000" + err.append({'class': 44, 'subclass': 1259509204, 'text': mapcss.tr('Invalid voltage value for this country (Azerbaijan)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(220000|230000|400000)$/][inside("BH")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_247a7ae8, '^(220000|230000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'BH'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Bahrain" + # throwError:tr("Invalid voltage value for this country (Bahrain)") + # suggestAlternative:"220000/230000/400000" + err.append({'class': 45, 'subclass': 291100453, 'text': mapcss.tr('Invalid voltage value for this country (Bahrain)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(23000|33000|132000|230000|400000)$/][inside("BD")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_0bb23efd, '^(23000|33000|132000|230000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'BD'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Bangladesh" + # throwError:tr("Invalid voltage value for this country (Bangladesh)") + # suggestAlternative:"23000/33000/132000/230000/400000" + err.append({'class': 46, 'subclass': 460697174, 'text': mapcss.tr('Invalid voltage value for this country (Bangladesh)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(35000|40000|100000|110000|220000|330000|750000)$/][inside("BY")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_309280d5, '^(35000|40000|100000|110000|220000|330000|750000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'BY'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Belarus" + # throwError:tr("Invalid voltage value for this country (Belarus)") + # suggestAlternative:"35000/40000/100000/110000/220000/330000/750000" + err.append({'class': 47, 'subclass': 1422083444, 'text': mapcss.tr('Invalid voltage value for this country (Belarus)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(11000|11500|15000|30000|33000|36000|50000|63000|70000|110000|150000|220000|225000|320000|380000|400000)$/][inside("BE")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_5ec02c4f, '^(11000|11500|15000|30000|33000|36000|50000|63000|70000|110000|150000|220000|225000|320000|380000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'BE'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Belgium" + # throwError:tr("Invalid voltage value for this country (Belgium)") + # suggestAlternative:"11000/11500/15000/30000/33000/36000/50000/63000/70000/110000/150000/220000/225000/320000/380000/400000" + err.append({'class': 48, 'subclass': 2040937054, 'text': mapcss.tr('Invalid voltage value for this country (Belgium)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(22000|34500|69000|115000)$/][inside("BZ")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_74a6316e, '^(22000|34500|69000|115000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'BZ'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Belize" + # throwError:tr("Invalid voltage value for this country (Belize)") + # suggestAlternative:"22000/34500/69000/115000" + err.append({'class': 49, 'subclass': 291673378, 'text': mapcss.tr('Invalid voltage value for this country (Belize)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(161000|330000)$/][inside("BJ")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_6a0cb1be, '^(161000|330000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'BJ'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Benin" + # throwError:tr("Invalid voltage value for this country (Benin)") + # suggestAlternative:"161000/330000" + err.append({'class': 50, 'subclass': 168799887, 'text': mapcss.tr('Invalid voltage value for this country (Benin)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(66000|132000|220000|400000)$/][inside("BT")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_2e660e01, '^(66000|132000|220000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'BT'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Bhutan" + # throwError:tr("Invalid voltage value for this country (Bhutan)") + # suggestAlternative:"66000/132000/220000/400000" + err.append({'class': 51, 'subclass': 1512305269, 'text': mapcss.tr('Invalid voltage value for this country (Bhutan)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(115000|220000|500000)$/][inside("BO")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_7c0499f4, '^(115000|220000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'BO'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Bolivia" + # throwError:tr("Invalid voltage value for this country (Bolivia)") + # suggestAlternative:"115000/220000/500000" + err.append({'class': 52, 'subclass': 1916860176, 'text': mapcss.tr('Invalid voltage value for this country (Bolivia)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(35000|110000|220000|400000)$/][inside("BA")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_38c1c717, '^(35000|110000|220000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'BA'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Bosnia_and_Herzegovina" + # throwError:tr("Invalid voltage value for this country (Bosnia and Herzegovina)") + # suggestAlternative:"35000/110000/220000/400000" + err.append({'class': 53, 'subclass': 1418152567, 'text': mapcss.tr('Invalid voltage value for this country (Bosnia and Herzegovina)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(66000|132000|220000|400000)$/][inside("BW")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_2e660e01, '^(66000|132000|220000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'BW'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Botswana" + # throwError:tr("Invalid voltage value for this country (Botswana)") + # suggestAlternative:"66000/132000/220000/400000" + err.append({'class': 54, 'subclass': 633665418, 'text': mapcss.tr('Invalid voltage value for this country (Botswana)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(13800|23100|34500|66000|69000|88000|110000|132000|138000|230000|345000|440000|500000|525000|600000|765000|800000)$/][inside("BR")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_2450a903, '^(13800|23100|34500|66000|69000|88000|110000|132000|138000|230000|345000|440000|500000|525000|600000|765000|800000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'BR'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Brazil" + # throwError:tr("Invalid voltage value for this country (Brazil)") + # suggestAlternative:"13800/23100/34500/66000/69000/88000/110000/132000/138000/230000/345000/440000/500000/525000/600000/765000/800000" + err.append({'class': 55, 'subclass': 663960141, 'text': mapcss.tr('Invalid voltage value for this country (Brazil)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(66000|132000|275000)$/][inside("BN")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_3b2d49c4, '^(66000|132000|275000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'BN'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Brunei" + # throwError:tr("Invalid voltage value for this country (Brunei)") + # suggestAlternative:"66000/132000/275000" + err.append({'class': 56, 'subclass': 1097044942, 'text': mapcss.tr('Invalid voltage value for this country (Brunei)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(20000|22000|25000|35000|110000|220000|400000)$/][inside("BG")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_6d4931b2, '^(20000|22000|25000|35000|110000|220000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'BG'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Bulgaria" + # throwError:tr("Invalid voltage value for this country (Bulgaria)") + # suggestAlternative:"20000/22000/25000/35000/110000/220000/400000" + err.append({'class': 57, 'subclass': 1332741029, 'text': mapcss.tr('Invalid voltage value for this country (Bulgaria)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(90000|132000|225000)$/][inside("BF")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_34230a2b, '^(90000|132000|225000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'BF'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Burkina_Faso" + # throwError:tr("Invalid voltage value for this country (Burkina Faso)") + # suggestAlternative:"90000/132000/225000" + err.append({'class': 58, 'subclass': 473573420, 'text': mapcss.tr('Invalid voltage value for this country (Burkina Faso)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(70000|110000|220000)$/][inside("BI")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_2e7e4902, '^(70000|110000|220000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'BI'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Burundi" + # throwError:tr("Invalid voltage value for this country (Burundi)") + # suggestAlternative:"70000/110000/220000" + err.append({'class': 59, 'subclass': 83033385, 'text': mapcss.tr('Invalid voltage value for this country (Burundi)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(115000|230000)$/][inside("KH")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_59057c52, '^(115000|230000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'KH'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Cambodia" + # throwError:tr("Invalid voltage value for this country (Cambodia)") + # suggestAlternative:"115000/230000" + err.append({'class': 60, 'subclass': 1994052023, 'text': mapcss.tr('Invalid voltage value for this country (Cambodia)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(30000|90000|110000|220000|225000)$/][inside("CM")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_6ae4d0fa, '^(30000|90000|110000|220000|225000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'CM'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Cameroon" + # throwError:tr("Invalid voltage value for this country (Cameroon)") + # suggestAlternative:"30000/90000/110000/220000/225000" + err.append({'class': 61, 'subclass': 1078402967, 'text': mapcss.tr('Invalid voltage value for this country (Cameroon)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(11500|12000|12470|12500|13000|13200|13800|14000|14400|16000|17500|23000|24940|25000|26400|27600|28000|34000|34500|35000|42000|44000|46000|49000|60000|63000|66000|69000|72000|110000|115000|120000|132000|138000|144000|150000|161000|200000|220000|230000|240000|260000|280000|287000|315000|345000|350000|360000|450000|500000|735000|765000)$/][inside("CA")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_39f6e14a, '^(11500|12000|12470|12500|13000|13200|13800|14000|14400|16000|17500|23000|24940|25000|26400|27600|28000|34000|34500|35000|42000|44000|46000|49000|60000|63000|66000|69000|72000|110000|115000|120000|132000|138000|144000|150000|161000|200000|220000|230000|240000|260000|280000|287000|315000|345000|350000|360000|450000|500000|735000|765000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'CA'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Canada" + # throwError:tr("Invalid voltage value for this country (Canada)") + # suggestAlternative:"11500/12000/12470/12500/13000/13200/13800/14000/14400/16000/17500/23000/24940/25000/26400/27600/28000/34000/34500/35000/42000/44000/46000/49000/60000/63000/66000/69000/72000/110000/115000/120000/132000/138000/144000/150000/161000/200000/220000/230000/240000/260000/280000/287000/315000/345000/350000/360000/450000/500000/735000/765000" + err.append({'class': 62, 'subclass': 1695403946, 'text': mapcss.tr('Invalid voltage value for this country (Canada)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(20000|60000)$/][inside("CV")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_1e0c1227, '^(20000|60000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'CV'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Cape_Verde" + # throwError:tr("Invalid voltage value for this country (Cape Verde)") + # suggestAlternative:"20000/60000" + err.append({'class': 63, 'subclass': 1833341958, 'text': mapcss.tr('Invalid voltage value for this country (Cape Verde)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(110000)$/][inside("CF")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_753efcad, '^(110000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'CF'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Central_African_Republic" + # throwError:tr("Invalid voltage value for this country (Central African Republic)") + # suggestAlternative:"110000" + err.append({'class': 64, 'subclass': 181428641, 'text': mapcss.tr('Invalid voltage value for this country (Central African Republic)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(20000|66000|90000)$/][inside("TD")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_713f7fd5, '^(20000|66000|90000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'TD'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Chad" + # throwError:tr("Invalid voltage value for this country (Chad)") + # suggestAlternative:"20000/66000/90000" + err.append({'class': 65, 'subclass': 779612304, 'text': mapcss.tr('Invalid voltage value for this country (Chad)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(13800|15000|23000|33000|34500|66000|69000|100000|110000|154000|220000|345000|500000)$/][inside("CL")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_66509c6a, '^(13800|15000|23000|33000|34500|66000|69000|100000|110000|154000|220000|345000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'CL'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Chile" + # throwError:tr("Invalid voltage value for this country (Chile)") + # suggestAlternative:"13800/15000/23000/33000/34500/66000/69000/100000/110000/154000/220000/345000/500000" + err.append({'class': 66, 'subclass': 1734282462, 'text': mapcss.tr('Invalid voltage value for this country (Chile)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(15000|25000|34500|66000|110000|115000|138000|220000|230000|500000)$/][inside("CO")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_0999cd78, '^(15000|25000|34500|66000|110000|115000|138000|220000|230000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'CO'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Colombia" + # throwError:tr("Invalid voltage value for this country (Colombia)") + # suggestAlternative:"15000/25000/34500/66000/110000/115000/138000/220000/230000/500000" + err.append({'class': 67, 'subclass': 262811988, 'text': mapcss.tr('Invalid voltage value for this country (Colombia)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(138000|230000)$/][inside("CR")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_5f0cae6b, '^(138000|230000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'CR'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Costa_Rica" + # throwError:tr("Invalid voltage value for this country (Costa Rica)") + # suggestAlternative:"138000/230000" + err.append({'class': 68, 'subclass': 914906718, 'text': mapcss.tr('Invalid voltage value for this country (Costa Rica)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(20000|25000|35000|110000|220000|400000|500000)$/][inside("HR")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_33f4b70a, '^(20000|25000|35000|110000|220000|400000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'HR'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Croatia" + # throwError:tr("Invalid voltage value for this country (Croatia)") + # suggestAlternative:"20000/25000/35000/110000/220000/400000/500000" + err.append({'class': 69, 'subclass': 1804084783, 'text': mapcss.tr('Invalid voltage value for this country (Croatia)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(11000|110000|220000)$/][inside("CU")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_71a6f4de, '^(11000|110000|220000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'CU'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Cuba" + # throwError:tr("Invalid voltage value for this country (Cuba)") + # suggestAlternative:"11000/110000/220000" + err.append({'class': 70, 'subclass': 2014727792, 'text': mapcss.tr('Invalid voltage value for this country (Cuba)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(66000|132000)$/][inside("CY")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_69390aec, '^(66000|132000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'CY'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Cyprus" + # throwError:tr("Invalid voltage value for this country (Cyprus)") + # suggestAlternative:"66000/132000" + err.append({'class': 71, 'subclass': 853893622, 'text': mapcss.tr('Invalid voltage value for this country (Cyprus)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(22000|33000|35000|110000|220000|380000|400000)$/][inside("CZ")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_59f73886, '^(22000|33000|35000|110000|220000|380000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'CZ'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Czech_Republic" + # throwError:tr("Invalid voltage value for this country (Czech Republic)") + # suggestAlternative:"22000/33000/35000/110000/220000/380000/400000" + err.append({'class': 72, 'subclass': 1155288143, 'text': mapcss.tr('Invalid voltage value for this country (Czech Republic)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(11000|30000|33000|50000|70000|110000|120000|132000|220000|400000|500000)$/][inside("CD")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_39f1f164, '^(11000|30000|33000|50000|70000|110000|120000|132000|220000|400000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'CD'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Democratic_Republic_of_the_Congo" + # throwError:tr("Invalid voltage value for this country (Democratic Republic of the Congo)") + # suggestAlternative:"11000/30000/33000/50000/70000/110000/120000/132000/220000/400000/500000" + err.append({'class': 73, 'subclass': 1389505885, 'text': mapcss.tr('Invalid voltage value for this country (Democratic Republic of the Congo)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(63000|230000)$/][inside("DJ")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_73467271, '^(63000|230000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'DJ'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Djibouti" + # throwError:tr("Invalid voltage value for this country (Djibouti)") + # suggestAlternative:"63000/230000" + err.append({'class': 74, 'subclass': 1634760939, 'text': mapcss.tr('Invalid voltage value for this country (Djibouti)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(69000|138000|230000|345000)$/][inside("DO")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_7a215554, '^(69000|138000|230000|345000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'DO'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Dominican_Republic" + # throwError:tr("Invalid voltage value for this country (Dominican Republic)") + # suggestAlternative:"69000/138000/230000/345000" + err.append({'class': 75, 'subclass': 916596343, 'text': mapcss.tr('Invalid voltage value for this country (Dominican Republic)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(11000|22000|23000|34500|46000|48000|69000|138000|230000|500000)$/][inside("EC")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_4a39b920, '^(11000|22000|23000|34500|46000|48000|69000|138000|230000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'EC'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Ecuador" + # throwError:tr("Invalid voltage value for this country (Ecuador)") + # suggestAlternative:"11000/22000/23000/34500/46000/48000/69000/138000/230000/500000" + err.append({'class': 76, 'subclass': 1192724500, 'text': mapcss.tr('Invalid voltage value for this country (Ecuador)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(66000|132000|220000|400000|500000)$/][inside("EG")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_1c0df27c, '^(66000|132000|220000|400000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'EG'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Egypt" + # throwError:tr("Invalid voltage value for this country (Egypt)") + # suggestAlternative:"66000/132000/220000/400000/500000" + err.append({'class': 77, 'subclass': 1918480499, 'text': mapcss.tr('Invalid voltage value for this country (Egypt)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(115000|230000)$/][inside("SV")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_59057c52, '^(115000|230000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'SV'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/El_Salvador" + # throwError:tr("Invalid voltage value for this country (El Salvador)") + # suggestAlternative:"115000/230000" + err.append({'class': 78, 'subclass': 1412508170, 'text': mapcss.tr('Invalid voltage value for this country (El Salvador)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(110000|220000)$/][inside("GQ")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_5079f988, '^(110000|220000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'GQ'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Equatorial_Guinea" + # throwError:tr("Invalid voltage value for this country (Equatorial Guinea)") + # suggestAlternative:"110000/220000" + err.append({'class': 79, 'subclass': 373338558, 'text': mapcss.tr('Invalid voltage value for this country (Equatorial Guinea)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(66000|132000)$/][inside("ER")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_69390aec, '^(66000|132000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'ER'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Eritrea" + # throwError:tr("Invalid voltage value for this country (Eritrea)") + # suggestAlternative:"66000/132000" + err.append({'class': 80, 'subclass': 2066470611, 'text': mapcss.tr('Invalid voltage value for this country (Eritrea)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(15000|20000|24000|35000|110000|150000|330000|450000)$/][inside("EE")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_375460ae, '^(15000|20000|24000|35000|110000|150000|330000|450000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'EE'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Estonia" + # throwError:tr("Invalid voltage value for this country (Estonia)") + # suggestAlternative:"15000/20000/24000/35000/110000/150000/330000/450000" + err.append({'class': 81, 'subclass': 1223176346, 'text': mapcss.tr('Invalid voltage value for this country (Estonia)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(66000|132000|400000)$/][inside("SZ")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_4c6c0f8c, '^(66000|132000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'SZ'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Eswatini" + # throwError:tr("Invalid voltage value for this country (Eswatini)") + # suggestAlternative:"66000/132000/400000" + err.append({'class': 82, 'subclass': 125093444, 'text': mapcss.tr('Invalid voltage value for this country (Eswatini)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(25000|45000|66000|132000|220000|230000|400000|500000)$/][inside("ET")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_6ccf0b67, '^(25000|45000|66000|132000|220000|230000|400000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'ET'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Ethiopia" + # throwError:tr("Invalid voltage value for this country (Ethiopia)") + # suggestAlternative:"25000/45000/66000/132000/220000/230000/400000/500000" + err.append({'class': 83, 'subclass': 1920942796, 'text': mapcss.tr('Invalid voltage value for this country (Ethiopia)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(13800)$/][inside("FM")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_2f7e025c, '^(13800)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'FM'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Federated_States_of_Micronesia" + # throwError:tr("Invalid voltage value for this country (Federated States of Micronesia)") + # suggestAlternative:"13800" + err.append({'class': 84, 'subclass': 1699000309, 'text': mapcss.tr('Invalid voltage value for this country (Federated States of Micronesia)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(11000|33000|110000|132000)$/][inside("FJ")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_69eb6042, '^(11000|33000|110000|132000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'FJ'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Fiji" + # throwError:tr("Invalid voltage value for this country (Fiji)") + # suggestAlternative:"11000/33000/110000/132000" + err.append({'class': 85, 'subclass': 412829109, 'text': mapcss.tr('Invalid voltage value for this country (Fiji)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(20000|22000|25000|45000|80000|100000|110000|150000|220000|400000|450000|500000)$/][inside("FI")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_68c12a97, '^(20000|22000|25000|45000|80000|100000|110000|150000|220000|400000|450000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'FI'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Finland" + # throwError:tr("Invalid voltage value for this country (Finland)") + # suggestAlternative:"20000/22000/25000/45000/80000/100000/110000/150000/220000/400000/450000/500000" + err.append({'class': 86, 'subclass': 1450839316, 'text': mapcss.tr('Invalid voltage value for this country (Finland)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(10300|10500|13000|15000|15500|16000|17000|17200|17500|20000|25000|30000|33000|42000|45000|50000|52000|63000|66000|90000|110000|150000|200000|220000|225000|270000|320000|380000|400000|500000)$/][inside("FR")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_48a46ecb, '^(10300|10500|13000|15000|15500|16000|17000|17200|17500|20000|25000|30000|33000|42000|45000|50000|52000|63000|66000|90000|110000|150000|200000|220000|225000|270000|320000|380000|400000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'FR'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/France" + # throwError:tr("Invalid voltage value for this country (France)") + # suggestAlternative:"10300/10500/13000/15000/15500/16000/17000/17200/17500/20000/25000/30000/33000/42000/45000/50000/52000/63000/66000/90000/110000/150000/200000/220000/225000/270000/320000/380000/400000/500000" + err.append({'class': 87, 'subclass': 1313135879, 'text': mapcss.tr('Invalid voltage value for this country (France)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(63000|90000|115000|225000)$/][inside("GA")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_5e6454d8, '^(63000|90000|115000|225000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'GA'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Gabon" + # throwError:tr("Invalid voltage value for this country (Gabon)") + # suggestAlternative:"63000/90000/115000/225000" + err.append({'class': 88, 'subclass': 41504521, 'text': mapcss.tr('Invalid voltage value for this country (Gabon)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(35000|110000|154000|220000|330000|350000|380000|400000|500000)$/][inside("GE")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_03e3112c, '^(35000|110000|154000|220000|330000|350000|380000|400000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'GE'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Georgia" + # throwError:tr("Invalid voltage value for this country (Georgia)") + # suggestAlternative:"35000/110000/154000/220000/330000/350000/380000/400000/500000" + err.append({'class': 89, 'subclass': 1878413892, 'text': mapcss.tr('Invalid voltage value for this country (Georgia)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(10500|11000|15000|16000|20000|21000|22000|25000|27000|30000|33000|35000|50000|55000|60000|63000|65000|110000|132000|150000|155000|200000|220000|225000|250000|300000|320000|362000|380000|400000|450000|525000|600000)$/][inside("DE")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_28f9c3db, '^(10500|11000|15000|16000|20000|21000|22000|25000|27000|30000|33000|35000|50000|55000|60000|63000|65000|110000|132000|150000|155000|200000|220000|225000|250000|300000|320000|362000|380000|400000|450000|525000|600000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'DE'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Germany" + # throwError:tr("Invalid voltage value for this country (Germany)") + # suggestAlternative:"10500/11000/15000/16000/20000/21000/22000/25000/27000/30000/33000/35000/50000/55000/60000/63000/65000/110000/132000/150000/155000/200000/220000/225000/250000/300000/320000/362000/380000/400000/450000/525000/600000" + err.append({'class': 90, 'subclass': 927037644, 'text': mapcss.tr('Invalid voltage value for this country (Germany)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(11000|161000|225000|330000)$/][inside("GH")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_351dc689, '^(11000|161000|225000|330000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'GH'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Ghana" + # throwError:tr("Invalid voltage value for this country (Ghana)") + # suggestAlternative:"11000/161000/225000/330000" + err.append({'class': 91, 'subclass': 725015900, 'text': mapcss.tr('Invalid voltage value for this country (Ghana)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(15000|20000|22000|66000|150000|400000|500000)$/][inside("GR")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_73a2a316, '^(15000|20000|22000|66000|150000|400000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'GR'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Greece" + # throwError:tr("Invalid voltage value for this country (Greece)") + # suggestAlternative:"15000/20000/22000/66000/150000/400000/500000" + err.append({'class': 92, 'subclass': 1772416912, 'text': mapcss.tr('Invalid voltage value for this country (Greece)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(69000|115000|132000|138000|230000|400000)$/][inside("GT")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_53561357, '^(69000|115000|132000|138000|230000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'GT'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Guatemala" + # throwError:tr("Invalid voltage value for this country (Guatemala)") + # suggestAlternative:"69000/115000/132000/138000/230000/400000" + err.append({'class': 93, 'subclass': 1737339037, 'text': mapcss.tr('Invalid voltage value for this country (Guatemala)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(30000|110000|225000)$/][inside("GN")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_445dce10, '^(30000|110000|225000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'GN'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Guinea" + # throwError:tr("Invalid voltage value for this country (Guinea)") + # suggestAlternative:"30000/110000/225000" + err.append({'class': 94, 'subclass': 527859344, 'text': mapcss.tr('Invalid voltage value for this country (Guinea)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(225000)$/][inside("GW")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_0e11dbdf, '^(225000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'GW'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Guinea-Bissau" + # throwError:tr("Invalid voltage value for this country (Guinea-Bissau)") + # suggestAlternative:"225000" + err.append({'class': 95, 'subclass': 718114637, 'text': mapcss.tr('Invalid voltage value for this country (Guinea-Bissau)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(69000|115000)$/][inside("HT")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_528c9009, '^(69000|115000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'HT'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Haiti" + # throwError:tr("Invalid voltage value for this country (Haiti)") + # suggestAlternative:"69000/115000" + err.append({'class': 96, 'subclass': 71689708, 'text': mapcss.tr('Invalid voltage value for this country (Haiti)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(69000|138000|230000)$/][inside("HN")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_074fdc09, '^(69000|138000|230000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'HN'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Honduras" + # throwError:tr("Invalid voltage value for this country (Honduras)") + # suggestAlternative:"69000/138000/230000" + err.append({'class': 97, 'subclass': 936820622, 'text': mapcss.tr('Invalid voltage value for this country (Honduras)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(11000|18000|20000|22000|25000|35000|110000|132000|220000|400000|750000)$/][inside("HU")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_643751fc, '^(11000|18000|20000|22000|25000|35000|110000|132000|220000|400000|750000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'HU'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Hungary" + # throwError:tr("Invalid voltage value for this country (Hungary)") + # suggestAlternative:"11000/18000/20000/22000/25000/35000/110000/132000/220000/400000/750000" + err.append({'class': 98, 'subclass': 1540672499, 'text': mapcss.tr('Invalid voltage value for this country (Hungary)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(66000|132000|220000)$/][inside("IS")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_0a039a95, '^(66000|132000|220000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'IS'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Iceland" + # throwError:tr("Invalid voltage value for this country (Iceland)") + # suggestAlternative:"66000/132000/220000" + err.append({'class': 99, 'subclass': 1010727604, 'text': mapcss.tr('Invalid voltage value for this country (Iceland)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(11000|13200|22000|25000|31000|33000|66000|100000|110000|132000|200000|220000|220001|230000|320000|400000|500000|660000|765000|800000|1200000)$/][inside("IN")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_1810335f, '^(11000|13200|22000|25000|31000|33000|66000|100000|110000|132000|200000|220000|220001|230000|320000|400000|500000|660000|765000|800000|1200000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'IN'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/India" + # throwError:tr("Invalid voltage value for this country (India)") + # suggestAlternative:"11000/13200/22000/25000/31000/33000/66000/100000/110000/132000/200000/220000/220001/230000/320000/400000/500000/660000/765000/800000/1200000" + err.append({'class': 100, 'subclass': 1617194820, 'text': mapcss.tr('Invalid voltage value for this country (India)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(20000|70000|150000|230000|275000|500000)$/][inside("ID")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_44f7c665, '^(20000|70000|150000|230000|275000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'ID'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Indonesia" + # throwError:tr("Invalid voltage value for this country (Indonesia)") + # suggestAlternative:"20000/70000/150000/230000/275000/500000" + err.append({'class': 101, 'subclass': 1998054729, 'text': mapcss.tr('Invalid voltage value for this country (Indonesia)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(15000|20000|25000|63000|110000|132000|154000|220000|230000|330000|380000|400000|2300000)$/][inside("IR")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_15aa6eb6, '^(15000|20000|25000|63000|110000|132000|154000|220000|230000|330000|380000|400000|2300000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'IR'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Iran" + # throwError:tr("Invalid voltage value for this country (Iran)") + # suggestAlternative:"15000/20000/25000/63000/110000/132000/154000/220000/230000/330000/380000/400000/2300000" + err.append({'class': 102, 'subclass': 1993124856, 'text': mapcss.tr('Invalid voltage value for this country (Iran)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(11000|23000|25000|33000|66000|132000|154000|400000)$/][inside("IQ")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_3007231b, '^(11000|23000|25000|33000|66000|132000|154000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'IQ'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Iraq" + # throwError:tr("Invalid voltage value for this country (Iraq)") + # suggestAlternative:"11000/23000/25000/33000/66000/132000/154000/400000" + err.append({'class': 103, 'subclass': 309366375, 'text': mapcss.tr('Invalid voltage value for this country (Iraq)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(10500|19000|20000|22000|33000|38000|110000|200000|220000|275000|320000|380000|400000)$/][inside("IE")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_1031dc3f, '^(10500|19000|20000|22000|33000|38000|110000|200000|220000|275000|320000|380000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'IE'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Ireland" + # throwError:tr("Invalid voltage value for this country (Ireland)") + # suggestAlternative:"10500/19000/20000/22000/33000/38000/110000/200000/220000/275000/320000/380000/400000" + err.append({'class': 104, 'subclass': 439741417, 'text': mapcss.tr('Invalid voltage value for this country (Ireland)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(115000|161000|400000)$/][inside("IL")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_15d3b209, '^(115000|161000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'IL'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Israel" + # throwError:tr("Invalid voltage value for this country (Israel)") + # suggestAlternative:"115000/161000/400000" + err.append({'class': 105, 'subclass': 1937531414, 'text': mapcss.tr('Invalid voltage value for this country (Israel)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(15000|20000|25000|30000|45000|50000|55000|60000|63000|66000|68000|70000|110000|120000|130000|132000|135000|137000|138000|150000|200000|220000|225000|320000|380000|400000|500000)$/][inside("IT")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_3aa87d11, '^(15000|20000|25000|30000|45000|50000|55000|60000|63000|66000|68000|70000|110000|120000|130000|132000|135000|137000|138000|150000|200000|220000|225000|320000|380000|400000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'IT'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Italy" + # throwError:tr("Invalid voltage value for this country (Italy)") + # suggestAlternative:"15000/20000/25000/30000/45000/50000/55000/60000/63000/66000/68000/70000/110000/120000/130000/132000/135000/137000/138000/150000/200000/220000/225000/320000/380000/400000/500000" + err.append({'class': 106, 'subclass': 1632275563, 'text': mapcss.tr('Invalid voltage value for this country (Italy)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(15000|90000|225000|400000)$/][inside("CI")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_455fa519, '^(15000|90000|225000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'CI'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Ivory_Coast" + # throwError:tr("Invalid voltage value for this country (Ivory Coast)") + # suggestAlternative:"15000/90000/225000/400000" + err.append({'class': 107, 'subclass': 899535438, 'text': mapcss.tr('Invalid voltage value for this country (Ivory Coast)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(69000|138000)$/][inside("JM")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_44d511b4, '^(69000|138000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'JM'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Jamaica" + # throwError:tr("Invalid voltage value for this country (Jamaica)") + # suggestAlternative:"69000/138000" + err.append({'class': 108, 'subclass': 1238074925, 'text': mapcss.tr('Invalid voltage value for this country (Jamaica)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(11000|15400|20000|22000|25000|30000|33000|44000|60000|66000|77000|100000|110000|132000|154000|187000|200000|220000|250000|275000|500000|660000)$/][inside("JP")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_3907ef06, '^(11000|15400|20000|22000|25000|30000|33000|44000|60000|66000|77000|100000|110000|132000|154000|187000|200000|220000|250000|275000|500000|660000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'JP'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Japan" + # throwError:tr("Invalid voltage value for this country (Japan)") + # suggestAlternative:"11000/15400/20000/22000/25000/30000/33000/44000/60000/66000/77000/100000/110000/132000/154000/187000/200000/220000/250000/275000/500000/660000" + err.append({'class': 109, 'subclass': 1065247304, 'text': mapcss.tr('Invalid voltage value for this country (Japan)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(132000|400000)$/][inside("JO")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_4698125a, '^(132000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'JO'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Jordan" + # throwError:tr("Invalid voltage value for this country (Jordan)") + # suggestAlternative:"132000/400000" + err.append({'class': 110, 'subclass': 2096041826, 'text': mapcss.tr('Invalid voltage value for this country (Jordan)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(22000|35000|110000|220000|500000)$/][inside("KZ")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_0c11f7a6, '^(22000|35000|110000|220000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'KZ'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Kazakhstan" + # throwError:tr("Invalid voltage value for this country (Kazakhstan)") + # suggestAlternative:"22000/35000/110000/220000/500000" + err.append({'class': 111, 'subclass': 1912699668, 'text': mapcss.tr('Invalid voltage value for this country (Kazakhstan)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(11000|15000|132000|220000|400000|500000)$/][inside("KE")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_13fd4c40, '^(11000|15000|132000|220000|400000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'KE'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Kenya" + # throwError:tr("Invalid voltage value for this country (Kenya)") + # suggestAlternative:"11000/15000/132000/220000/400000/500000" + err.append({'class': 112, 'subclass': 710759115, 'text': mapcss.tr('Invalid voltage value for this country (Kenya)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(50000|60000|132000|150000|220000|400000)$/][inside("DK")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_40d39fce, '^(50000|60000|132000|150000|220000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'DK'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Denmark" + # throwError:tr("Invalid voltage value for this country (Kingdom of Denmark)") + # suggestAlternative:"50000/60000/132000/150000/220000/400000" + err.append({'class': 113, 'subclass': 1795908577, 'text': mapcss.tr('Invalid voltage value for this country (Kingdom of Denmark)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(13000|20000|22000|23000|24000|25000|30000|33000|34000|50000|66000|110000|150000|220000|320000|380000|450000|600000)$/][inside("NL")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_1b67d214, '^(13000|20000|22000|23000|24000|25000|30000|33000|34000|50000|66000|110000|150000|220000|320000|380000|450000|600000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'NL'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Netherlands" + # throwError:tr("Invalid voltage value for this country (Kingdom of the Netherlands)") + # suggestAlternative:"13000/20000/22000/23000/24000/25000/30000/33000/34000/50000/66000/110000/150000/220000/320000/380000/450000/600000" + err.append({'class': 114, 'subclass': 1415884600, 'text': mapcss.tr('Invalid voltage value for this country (Kingdom of the Netherlands)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(33000|66000|132000|275000|400000)$/][inside("KW")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_601cbfba, '^(33000|66000|132000|275000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'KW'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Kuwait" + # throwError:tr("Invalid voltage value for this country (Kuwait)") + # suggestAlternative:"33000/66000/132000/275000/400000" + err.append({'class': 115, 'subclass': 546876675, 'text': mapcss.tr('Invalid voltage value for this country (Kuwait)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(10000|110000|220000|500000)$/][inside("KG")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_6aae528c, '^(10000|110000|220000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'KG'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Kyrgyzstan" + # throwError:tr("Invalid voltage value for this country (Kyrgyzstan)") + # suggestAlternative:"10000/110000/220000/500000" + err.append({'class': 116, 'subclass': 1011441408, 'text': mapcss.tr('Invalid voltage value for this country (Kyrgyzstan)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(110000|115000|220000|230000|500000)$/][inside("LA")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_65ecf8ac, '^(110000|115000|220000|230000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'LA'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Laos" + # throwError:tr("Invalid voltage value for this country (Laos)") + # suggestAlternative:"110000/115000/220000/230000/500000" + err.append({'class': 117, 'subclass': 1463753093, 'text': mapcss.tr('Invalid voltage value for this country (Laos)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(20000|110000|330000)$/][inside("LV")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_2bb1cd2e, '^(20000|110000|330000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'LV'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Latvia" + # throwError:tr("Invalid voltage value for this country (Latvia)") + # suggestAlternative:"20000/110000/330000" + err.append({'class': 118, 'subclass': 1953019427, 'text': mapcss.tr('Invalid voltage value for this country (Latvia)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(33000|66000|150000|220000|400000)$/][inside("LB")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_043624d0, '^(33000|66000|150000|220000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'LB'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Lebanon" + # throwError:tr("Invalid voltage value for this country (Lebanon)") + # suggestAlternative:"33000/66000/150000/220000/400000" + err.append({'class': 119, 'subclass': 202320428, 'text': mapcss.tr('Invalid voltage value for this country (Lebanon)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(33000|66000|88000|132000)$/][inside("LS")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_7d50c8e9, '^(33000|66000|88000|132000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'LS'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Lesotho" + # throwError:tr("Invalid voltage value for this country (Lesotho)") + # suggestAlternative:"33000/66000/88000/132000" + err.append({'class': 120, 'subclass': 232917845, 'text': mapcss.tr('Invalid voltage value for this country (Lesotho)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(66000|225000)$/][inside("LR")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_7581d073, '^(66000|225000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'LR'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Liberia" + # throwError:tr("Invalid voltage value for this country (Liberia)") + # suggestAlternative:"66000/225000" + err.append({'class': 121, 'subclass': 316501703, 'text': mapcss.tr('Invalid voltage value for this country (Liberia)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(22500|25000|30000|66000|69000|132000|220000|400000|500000)$/][inside("LY")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_0f195ae1, '^(22500|25000|30000|66000|69000|132000|220000|400000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'LY'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Libya" + # throwError:tr("Invalid voltage value for this country (Libya)") + # suggestAlternative:"22500/25000/30000/66000/69000/132000/220000/400000/500000" + err.append({'class': 122, 'subclass': 1869982567, 'text': mapcss.tr('Invalid voltage value for this country (Libya)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(220000)$/][inside("LI")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_7f949189, '^(220000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'LI'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Liechtenstein" + # throwError:tr("Invalid voltage value for this country (Liechtenstein)") + # suggestAlternative:"220000" + err.append({'class': 123, 'subclass': 1388684161, 'text': mapcss.tr('Invalid voltage value for this country (Liechtenstein)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(15000|35000|110000|300000|330000|400000)$/][inside("LT")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_122154ab, '^(15000|35000|110000|300000|330000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'LT'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Lithuania" + # throwError:tr("Invalid voltage value for this country (Lithuania)") + # suggestAlternative:"15000/35000/110000/300000/330000/400000" + err.append({'class': 124, 'subclass': 55561321, 'text': mapcss.tr('Invalid voltage value for this country (Lithuania)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(63000|65000|150000|220000|225000)$/][inside("LU")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_24462be0, '^(63000|65000|150000|220000|225000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'LU'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Luxembourg" + # throwError:tr("Invalid voltage value for this country (Luxembourg)") + # suggestAlternative:"63000/65000/150000/220000/225000" + err.append({'class': 125, 'subclass': 1575929248, 'text': mapcss.tr('Invalid voltage value for this country (Luxembourg)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(63000|138000)$/][inside("MG")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_17045a03, '^(63000|138000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'MG'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Madagascar" + # throwError:tr("Invalid voltage value for this country (Madagascar)") + # suggestAlternative:"63000/138000" + err.append({'class': 126, 'subclass': 1655338842, 'text': mapcss.tr('Invalid voltage value for this country (Madagascar)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(11000|33000|66000|110000|132000|400000)$/][inside("MW")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_2bd2d0e5, '^(11000|33000|66000|110000|132000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'MW'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Malawi" + # throwError:tr("Invalid voltage value for this country (Malawi)") + # suggestAlternative:"11000/33000/66000/110000/132000/400000" + err.append({'class': 127, 'subclass': 1930186869, 'text': mapcss.tr('Invalid voltage value for this country (Malawi)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(11000|33000|66000|132000|275000|300000|500000)$/][inside("MY")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_20a91a01, '^(11000|33000|66000|132000|275000|300000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'MY'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Malaysia" + # throwError:tr("Invalid voltage value for this country (Malaysia)") + # suggestAlternative:"11000/33000/66000/132000/275000/300000/500000" + err.append({'class': 128, 'subclass': 819737293, 'text': mapcss.tr('Invalid voltage value for this country (Malaysia)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(132000)$/][inside("MV")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_187ae8d5, '^(132000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'MV'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Maldives" + # throwError:tr("Invalid voltage value for this country (Maldives)") + # suggestAlternative:"132000" + err.append({'class': 129, 'subclass': 617683108, 'text': mapcss.tr('Invalid voltage value for this country (Maldives)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(63000|150000|225000)$/][inside("ML")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_2fe82f3c, '^(63000|150000|225000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'ML'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Mali" + # throwError:tr("Invalid voltage value for this country (Mali)") + # suggestAlternative:"63000/150000/225000" + err.append({'class': 130, 'subclass': 9174543, 'text': mapcss.tr('Invalid voltage value for this country (Mali)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(11000|33000|132000|220000)$/][inside("MT")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_64f34b83, '^(11000|33000|132000|220000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'MT'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Malta" + # throwError:tr("Invalid voltage value for this country (Malta)") + # suggestAlternative:"11000/33000/132000/220000" + err.append({'class': 131, 'subclass': 1562613383, 'text': mapcss.tr('Invalid voltage value for this country (Malta)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(90000|225000)$/][inside("MR")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_25cd10b5, '^(90000|225000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'MR'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Mauritania" + # throwError:tr("Invalid voltage value for this country (Mauritania)") + # suggestAlternative:"90000/225000" + err.append({'class': 132, 'subclass': 1271847224, 'text': mapcss.tr('Invalid voltage value for this country (Mauritania)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(66000)$/][inside("MU")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_1639cf1a, '^(66000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'MU'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Mauritius" + # throwError:tr("Invalid voltage value for this country (Mauritius)") + # suggestAlternative:"66000" + err.append({'class': 133, 'subclass': 1868556591, 'text': mapcss.tr('Invalid voltage value for this country (Mauritius)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(13800|15000|25000|34500|65000|69000|85000|113000|115000|138000|161000|230000|400000)$/][inside("MX")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_3f88f86c, '^(13800|15000|25000|34500|65000|69000|85000|113000|115000|138000|161000|230000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'MX'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Mexico" + # throwError:tr("Invalid voltage value for this country (Mexico)") + # suggestAlternative:"13800/15000/25000/34500/65000/69000/85000/113000/115000/138000/161000/230000/400000" + err.append({'class': 134, 'subclass': 695942383, 'text': mapcss.tr('Invalid voltage value for this country (Mexico)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(33000|35000|110000|330000|400000)$/][inside("MD")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_3b02dceb, '^(33000|35000|110000|330000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'MD'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Moldova" + # throwError:tr("Invalid voltage value for this country (Moldova)") + # suggestAlternative:"33000/35000/110000/330000/400000" + err.append({'class': 135, 'subclass': 919144147, 'text': mapcss.tr('Invalid voltage value for this country (Moldova)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(15000|22000|35000|110000|220000)$/][inside("MN")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_6dafd830, '^(15000|22000|35000|110000|220000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'MN'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Mongolia" + # throwError:tr("Invalid voltage value for this country (Mongolia)") + # suggestAlternative:"15000/22000/35000/110000/220000" + err.append({'class': 136, 'subclass': 1642616610, 'text': mapcss.tr('Invalid voltage value for this country (Mongolia)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(35000|110000|220000|400000|500000)$/][inside("ME")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_4343e75a, '^(35000|110000|220000|400000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'ME'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Montenegro" + # throwError:tr("Invalid voltage value for this country (Montenegro)") + # suggestAlternative:"35000/110000/220000/400000/500000" + err.append({'class': 137, 'subclass': 1955733133, 'text': mapcss.tr('Invalid voltage value for this country (Montenegro)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(20000|22000|22500|30000|33000|60000|110000|132000|150000|220000|225000|400000)$/][inside("MA")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_2f6339dc, '^(20000|22000|22500|30000|33000|60000|110000|132000|150000|220000|225000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'MA'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Morocco" + # throwError:tr("Invalid voltage value for this country (Morocco)") + # suggestAlternative:"20000/22000/22500/30000/33000/60000/110000/132000/150000/220000/225000/400000" + err.append({'class': 138, 'subclass': 1138994743, 'text': mapcss.tr('Invalid voltage value for this country (Morocco)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(66000|110000|132000|220000|275000|330000|400000|533000)$/][inside("MZ")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_263b6b3e, '^(66000|110000|132000|220000|275000|330000|400000|533000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'MZ'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Mozambique" + # throwError:tr("Invalid voltage value for this country (Mozambique)") + # suggestAlternative:"66000/110000/132000/220000/275000/330000/400000/533000" + err.append({'class': 139, 'subclass': 118492140, 'text': mapcss.tr('Invalid voltage value for this country (Mozambique)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(11000|20000|33000|66000|110000|132000|230000|500000)$/][inside("MM")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_40006e82, '^(11000|20000|33000|66000|110000|132000|230000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'MM'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Myanmar" + # throwError:tr("Invalid voltage value for this country (Myanmar)") + # suggestAlternative:"11000/20000/33000/66000/110000/132000/230000/500000" + err.append({'class': 140, 'subclass': 1358814463, 'text': mapcss.tr('Invalid voltage value for this country (Myanmar)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(11000|19000|22000|33000|66000|132000|220000|330000|350000|400000)$/][inside("NA")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_364ced34, '^(11000|19000|22000|33000|66000|132000|220000|330000|350000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'NA'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Namibia" + # throwError:tr("Invalid voltage value for this country (Namibia)") + # suggestAlternative:"11000/19000/22000/33000/66000/132000/220000/330000/350000/400000" + err.append({'class': 141, 'subclass': 1062938192, 'text': mapcss.tr('Invalid voltage value for this country (Namibia)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(33000|66000|132000|220000|400000)$/][inside("NP")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_4690e9a7, '^(33000|66000|132000|220000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'NP'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Nepal" + # throwError:tr("Invalid voltage value for this country (Nepal)") + # suggestAlternative:"33000/66000/132000/220000/400000" + err.append({'class': 142, 'subclass': 1327995672, 'text': mapcss.tr('Invalid voltage value for this country (Nepal)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(50000|66000|110000|220000)$/][inside("NZ")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_50389fcc, '^(50000|66000|110000|220000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'NZ'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/New_Zealand" + # throwError:tr("Invalid voltage value for this country (New Zealand)") + # suggestAlternative:"50000/66000/110000/220000" + err.append({'class': 143, 'subclass': 1371165931, 'text': mapcss.tr('Invalid voltage value for this country (New Zealand)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(69000|138000|230000)$/][inside("NI")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_074fdc09, '^(69000|138000|230000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'NI'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Nicaragua" + # throwError:tr("Invalid voltage value for this country (Nicaragua)") + # suggestAlternative:"69000/138000/230000" + err.append({'class': 144, 'subclass': 1646260956, 'text': mapcss.tr('Invalid voltage value for this country (Nicaragua)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(66000|132000)$/][inside("NE")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_69390aec, '^(66000|132000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'NE'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Niger" + # throwError:tr("Invalid voltage value for this country (Niger)") + # suggestAlternative:"66000/132000" + err.append({'class': 145, 'subclass': 457236474, 'text': mapcss.tr('Invalid voltage value for this country (Niger)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(11000|33000|132000|330000)$/][inside("NG")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_2687a5ba, '^(11000|33000|132000|330000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'NG'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Nigeria" + # throwError:tr("Invalid voltage value for this country (Nigeria)") + # suggestAlternative:"11000/33000/132000/330000" + err.append({'class': 146, 'subclass': 1957887005, 'text': mapcss.tr('Invalid voltage value for this country (Nigeria)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(11000|66000|110000|154000|220000)$/][inside("KP")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_526934a1, '^(11000|66000|110000|154000|220000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'KP'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/North_Korea" + # throwError:tr("Invalid voltage value for this country (North Korea)") + # suggestAlternative:"11000/66000/110000/154000/220000" + err.append({'class': 147, 'subclass': 983585803, 'text': mapcss.tr('Invalid voltage value for this country (North Korea)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(110000|220000|400000)$/][inside("MK")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_24f5f1cd, '^(110000|220000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'MK'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/North_Macedonia" + # throwError:tr("Invalid voltage value for this country (North Macedonia)") + # suggestAlternative:"110000/220000/400000" + err.append({'class': 148, 'subclass': 556792193, 'text': mapcss.tr('Invalid voltage value for this country (North Macedonia)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(11000|12000|13000|15000|16000|17000|20000|22000|24000|25000|33000|45000|47000|50000|55000|60000|66000|80000|90000|100000|110000|132000|150000|220000|250000|300000|350000|400000|420000|450000|500000|515000|525000|825000)$/][inside("NO")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_2dccca10, '^(11000|12000|13000|15000|16000|17000|20000|22000|24000|25000|33000|45000|47000|50000|55000|60000|66000|80000|90000|100000|110000|132000|150000|220000|250000|300000|350000|400000|420000|450000|500000|515000|525000|825000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'NO'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Norway" + # throwError:tr("Invalid voltage value for this country (Norway)") + # suggestAlternative:"11000/12000/13000/15000/16000/17000/20000/22000/24000/25000/33000/45000/47000/50000/55000/60000/66000/80000/90000/100000/110000/132000/150000/220000/250000/300000/350000/400000/420000/450000/500000/515000/525000/825000" + err.append({'class': 149, 'subclass': 432648382, 'text': mapcss.tr('Invalid voltage value for this country (Norway)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(132000|220000|400000)$/][inside("OM")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_4e6ba896, '^(132000|220000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'OM'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Oman" + # throwError:tr("Invalid voltage value for this country (Oman)") + # suggestAlternative:"132000/220000/400000" + err.append({'class': 150, 'subclass': 139047842, 'text': mapcss.tr('Invalid voltage value for this country (Oman)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(11000|33000|66000|110000|132000|220000|230000|500000|660000)$/][inside("PK")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_6e8113e9, '^(11000|33000|66000|110000|132000|220000|230000|500000|660000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'PK'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Pakistan" + # throwError:tr("Invalid voltage value for this country (Pakistan)") + # suggestAlternative:"11000/33000/66000/110000/132000/220000/230000/500000/660000" + err.append({'class': 151, 'subclass': 422485246, 'text': mapcss.tr('Invalid voltage value for this country (Pakistan)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(115000|230000)$/][inside("PA")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_59057c52, '^(115000|230000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'PA'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Panama" + # throwError:tr("Invalid voltage value for this country (Panama)") + # suggestAlternative:"115000/230000" + err.append({'class': 152, 'subclass': 1486502027, 'text': mapcss.tr('Invalid voltage value for this country (Panama)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(11000|66000|132000)$/][inside("PG")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_35859f0b, '^(11000|66000|132000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'PG'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Papua_New_Guinea" + # throwError:tr("Invalid voltage value for this country (Papua New Guinea)") + # suggestAlternative:"11000/66000/132000" + err.append({'class': 153, 'subclass': 41605838, 'text': mapcss.tr('Invalid voltage value for this country (Papua New Guinea)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(12000|34500|66000|69000|132000|138000|220000|500000)$/][inside("PY")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_34dfedad, '^(12000|34500|66000|69000|132000|138000|220000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'PY'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Paraguay" + # throwError:tr("Invalid voltage value for this country (Paraguay)") + # suggestAlternative:"12000/34500/66000/69000/132000/138000/220000/500000" + err.append({'class': 154, 'subclass': 1834123073, 'text': mapcss.tr('Invalid voltage value for this country (Paraguay)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(10500|11000|22000|23000|25000|27000|27500|33000|35000|50000|63000|66000|100000|110000|132000|160000|220000|230000|275000|320000|330000|400000|500000|544000|660000|750000|800000|1000000|1100000|1150000|2200001|2200002|22000011)$/][inside("CN")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_65ed1a9a, '^(10500|11000|22000|23000|25000|27000|27500|33000|35000|50000|63000|66000|100000|110000|132000|160000|220000|230000|275000|320000|330000|400000|500000|544000|660000|750000|800000|1000000|1100000|1150000|2200001|2200002|22000011)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'CN'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/China" + # throwError:tr("Invalid voltage value for this country (People's Republic of China)") + # suggestAlternative:"10500/11000/22000/23000/25000/27000/27500/33000/35000/50000/63000/66000/100000/110000/132000/160000/220000/230000/275000/320000/330000/400000/500000/544000/660000/750000/800000/1000000/1100000/1150000/2200001/2200002/22000011" + err.append({'class': 155, 'subclass': 1318204837, 'text': mapcss.tr('Invalid voltage value for this country (People\'s Republic of China)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(30000|33000|60000|66000|138000|220000|230000|500000)$/][inside("PE")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_333c4ef6, '^(30000|33000|60000|66000|138000|220000|230000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'PE'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Peru" + # throwError:tr("Invalid voltage value for this country (Peru)") + # suggestAlternative:"30000/33000/60000/66000/138000/220000/230000/500000" + err.append({'class': 156, 'subclass': 126792393, 'text': mapcss.tr('Invalid voltage value for this country (Peru)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(13200|13800|20000|23000|30000|34500|60000|69000|70000|115000|138000|220000|230000|345000|350000|500000)$/][inside("PH")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_447ac42a, '^(13200|13800|20000|23000|30000|34500|60000|69000|70000|115000|138000|220000|230000|345000|350000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'PH'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Philippines" + # throwError:tr("Invalid voltage value for this country (Philippines)") + # suggestAlternative:"13200/13800/20000/23000/30000/34500/60000/69000/70000/115000/138000/220000/230000/345000/350000/500000" + err.append({'class': 157, 'subclass': 2102845681, 'text': mapcss.tr('Invalid voltage value for this country (Philippines)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(11000|15000|20000|21000|22000|25000|27000|30000|100000|110000|200000|220000|400000|450000)$/][inside("PL")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_4148662f, '^(11000|15000|20000|21000|22000|25000|27000|30000|100000|110000|200000|220000|400000|450000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'PL'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Poland" + # throwError:tr("Invalid voltage value for this country (Poland)") + # suggestAlternative:"11000/15000/20000/21000/22000/25000/27000/30000/100000/110000/200000/220000/400000/450000" + err.append({'class': 158, 'subclass': 230215631, 'text': mapcss.tr('Invalid voltage value for this country (Poland)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(11000|15000|18000|20000|25000|30000|50000|60000|130000|150000|220000|400000)$/][inside("PT")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_08bfac39, '^(11000|15000|18000|20000|25000|30000|50000|60000|130000|150000|220000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'PT'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Portugal" + # throwError:tr("Invalid voltage value for this country (Portugal)") + # suggestAlternative:"11000/15000/18000/20000/25000/30000/50000/60000/130000/150000/220000/400000" + err.append({'class': 159, 'subclass': 191024225, 'text': mapcss.tr('Invalid voltage value for this country (Portugal)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(21000|66000|110000|132000|220000|400000)$/][inside("QA")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_356889db, '^(21000|66000|110000|132000|220000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'QA'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Qatar" + # throwError:tr("Invalid voltage value for this country (Qatar)") + # suggestAlternative:"21000/66000/110000/132000/220000/400000" + err.append({'class': 160, 'subclass': 1449699137, 'text': mapcss.tr('Invalid voltage value for this country (Qatar)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(110000|220000)$/][inside("CG")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_5079f988, '^(110000|220000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'CG'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Republic_of_the_Congo" + # throwError:tr("Invalid voltage value for this country (Republic of the Congo)") + # suggestAlternative:"110000/220000" + err.append({'class': 161, 'subclass': 36295473, 'text': mapcss.tr('Invalid voltage value for this country (Republic of the Congo)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(20000|25000|38000|55000|110000|220000|380000|400000)$/][inside("RO")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_6be5b2f4, '^(20000|25000|38000|55000|110000|220000|380000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'RO'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Romania" + # throwError:tr("Invalid voltage value for this country (Romania)") + # suggestAlternative:"20000/25000/38000/55000/110000/220000/380000/400000" + err.append({'class': 162, 'subclass': 2059230668, 'text': mapcss.tr('Invalid voltage value for this country (Romania)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(10500|15000|16000|20000|30000|35000|60000|66000|100000|110000|138000|150000|154000|220000|330000|350000|400000|500000|750000|800000|1100000)$/][inside("RU")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_2ff1797a, '^(10500|15000|16000|20000|30000|35000|60000|66000|100000|110000|138000|150000|154000|220000|330000|350000|400000|500000|750000|800000|1100000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'RU'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Russia" + # throwError:tr("Invalid voltage value for this country (Russia)") + # suggestAlternative:"10500/15000/16000/20000/30000/35000/60000/66000/100000/110000/138000/150000/154000/220000/330000/350000/400000/500000/750000/800000/1100000" + err.append({'class': 163, 'subclass': 1376650270, 'text': mapcss.tr('Invalid voltage value for this country (Russia)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(70000|110000|220000)$/][inside("RW")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_2e7e4902, '^(70000|110000|220000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'RW'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Rwanda" + # throwError:tr("Invalid voltage value for this country (Rwanda)") + # suggestAlternative:"70000/110000/220000" + err.append({'class': 164, 'subclass': 100085398, 'text': mapcss.tr('Invalid voltage value for this country (Rwanda)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(132000)$/][inside("SM")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_187ae8d5, '^(132000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'SM'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/San_Marino" + # throwError:tr("Invalid voltage value for this country (San Marino)") + # suggestAlternative:"132000" + err.append({'class': 165, 'subclass': 748002898, 'text': mapcss.tr('Invalid voltage value for this country (San Marino)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(25000|33000|110000|115000|132000|230000|380000|400000)$/][inside("SA")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_313e83ad, '^(25000|33000|110000|115000|132000|230000|380000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'SA'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Saudi_Arabia" + # throwError:tr("Invalid voltage value for this country (Saudi Arabia)") + # suggestAlternative:"25000/33000/110000/115000/132000/230000/380000/400000" + err.append({'class': 166, 'subclass': 324585642, 'text': mapcss.tr('Invalid voltage value for this country (Saudi Arabia)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(90000|225000)$/][inside("SN")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_25cd10b5, '^(90000|225000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'SN'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Senegal" + # throwError:tr("Invalid voltage value for this country (Senegal)") + # suggestAlternative:"90000/225000" + err.append({'class': 167, 'subclass': 179159303, 'text': mapcss.tr('Invalid voltage value for this country (Senegal)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(20000|25000|30000|35000|110000|220000|380000|400000)$/][inside("RS")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_494f7be8, '^(20000|25000|30000|35000|110000|220000|380000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'RS'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Serbia" + # throwError:tr("Invalid voltage value for this country (Serbia)") + # suggestAlternative:"20000/25000/30000/35000/110000/220000/380000/400000" + err.append({'class': 168, 'subclass': 2062504686, 'text': mapcss.tr('Invalid voltage value for this country (Serbia)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(161000|225000)$/][inside("SL")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_5ec31fe0, '^(161000|225000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'SL'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Sierra_Leone" + # throwError:tr("Invalid voltage value for this country (Sierra Leone)") + # suggestAlternative:"161000/225000" + err.append({'class': 169, 'subclass': 1942413715, 'text': mapcss.tr('Invalid voltage value for this country (Sierra Leone)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(230000)$/][inside("SG")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_19e5679c, '^(230000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'SG'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Singapore" + # throwError:tr("Invalid voltage value for this country (Singapore)") + # suggestAlternative:"230000" + err.append({'class': 170, 'subclass': 1582431584, 'text': mapcss.tr('Invalid voltage value for this country (Singapore)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(22000|110000|220000|400000)$/][inside("SK")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_5a39ab8e, '^(22000|110000|220000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'SK'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Slovakia" + # throwError:tr("Invalid voltage value for this country (Slovakia)") + # suggestAlternative:"22000/110000/220000/400000" + err.append({'class': 171, 'subclass': 716475569, 'text': mapcss.tr('Invalid voltage value for this country (Slovakia)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(15000|20000|35000|100000|110000|220000|400000)$/][inside("SI")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_78f8f400, '^(15000|20000|35000|100000|110000|220000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'SI'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Slovenia" + # throwError:tr("Invalid voltage value for this country (Slovenia)") + # suggestAlternative:"15000/20000/35000/100000/110000/220000/400000" + err.append({'class': 172, 'subclass': 614281181, 'text': mapcss.tr('Invalid voltage value for this country (Slovenia)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(11000|20000|22000|33000|44000|66000|88000|110000|132000|220000|275000|380000|400000|533000|765000)$/][inside("ZA")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_35ea191f, '^(11000|20000|22000|33000|44000|66000|88000|110000|132000|220000|275000|380000|400000|533000|765000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'ZA'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/South_Africa" + # throwError:tr("Invalid voltage value for this country (South Africa)") + # suggestAlternative:"11000/20000/22000/33000/44000/66000/88000/110000/132000/220000/275000/380000/400000/533000/765000" + err.append({'class': 173, 'subclass': 1022977165, 'text': mapcss.tr('Invalid voltage value for this country (South Africa)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(15000|22900|145000|150000|154000|180000|250000|345000|354000|380000|765000)$/][inside("KR")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_43d80261, '^(15000|22900|145000|150000|154000|180000|250000|345000|354000|380000|765000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'KR'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/South_Korea" + # throwError:tr("Invalid voltage value for this country (South Korea)") + # suggestAlternative:"15000/22900/145000/150000/154000/180000/250000/345000/354000/380000/765000" + err.append({'class': 174, 'subclass': 1612550481, 'text': mapcss.tr('Invalid voltage value for this country (South Korea)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(220000)$/][inside("SS")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_7f949189, '^(220000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'SS'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/South_Sudan" + # throwError:tr("Invalid voltage value for this country (South Sudan)") + # suggestAlternative:"220000" + err.append({'class': 175, 'subclass': 1760923332, 'text': mapcss.tr('Invalid voltage value for this country (South Sudan)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(12000|13000|13200|15000|17000|20000|22000|24000|25000|30000|33000|35000|45000|50000|55000|60000|65000|66000|66600|100000|110000|120000|130000|132000|138000|150000|200000|220000|225000|240000|250000|320000|400000)$/][inside("ES")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_0d635fe6, '^(12000|13000|13200|15000|17000|20000|22000|24000|25000|30000|33000|35000|45000|50000|55000|60000|65000|66000|66600|100000|110000|120000|130000|132000|138000|150000|200000|220000|225000|240000|250000|320000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'ES'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Spain" + # throwError:tr("Invalid voltage value for this country (Spain)") + # suggestAlternative:"12000/13000/13200/15000/17000/20000/22000/24000/25000/30000/33000/35000/45000/50000/55000/60000/65000/66000/66600/100000/110000/120000/130000/132000/138000/150000/200000/220000/225000/240000/250000/320000/400000" + err.append({'class': 176, 'subclass': 1147077251, 'text': mapcss.tr('Invalid voltage value for this country (Spain)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(11000|33000|132000|220000)$/][inside("LK")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_64f34b83, '^(11000|33000|132000|220000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'LK'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Sri_Lanka" + # throwError:tr("Invalid voltage value for this country (Sri Lanka)") + # suggestAlternative:"11000/33000/132000/220000" + err.append({'class': 177, 'subclass': 836661269, 'text': mapcss.tr('Invalid voltage value for this country (Sri Lanka)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(161000)$/][inside("PS")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_2150c255, '^(161000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'PS'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/State_of_Palestine" + # throwError:tr("Invalid voltage value for this country (State of Palestine)") + # suggestAlternative:"161000" + err.append({'class': 178, 'subclass': 650122425, 'text': mapcss.tr('Invalid voltage value for this country (State of Palestine)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(66000|110000|220000|500000)$/][inside("SD")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_2ea677e3, '^(66000|110000|220000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'SD'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Sudan" + # throwError:tr("Invalid voltage value for this country (Sudan)") + # suggestAlternative:"66000/110000/220000/500000" + err.append({'class': 179, 'subclass': 1494006322, 'text': mapcss.tr('Invalid voltage value for this country (Sudan)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(161000)$/][inside("SR")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_2150c255, '^(161000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'SR'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Suriname" + # throwError:tr("Invalid voltage value for this country (Suriname)") + # suggestAlternative:"161000" + err.append({'class': 180, 'subclass': 2020514690, 'text': mapcss.tr('Invalid voltage value for this country (Suriname)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(11000|12000|15000|20000|22000|24000|30000|36000|40000|45000|50000|52000|55000|60000|66000|70000|72500|77000|80000|110000|130000|132000|138000|145000|150000|160000|170000|220000|230000|236000|285000|300000|400000|412000|420000|450000|500000)$/][inside("SE")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_168afd57, '^(11000|12000|15000|20000|22000|24000|30000|36000|40000|45000|50000|52000|55000|60000|66000|70000|72500|77000|80000|110000|130000|132000|138000|145000|150000|160000|170000|220000|230000|236000|285000|300000|400000|412000|420000|450000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'SE'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Sweden" + # throwError:tr("Invalid voltage value for this country (Sweden)") + # suggestAlternative:"11000/12000/15000/20000/22000/24000/30000/36000/40000/45000/50000/52000/55000/60000/66000/70000/72500/77000/80000/110000/130000/132000/138000/145000/150000/160000/170000/220000/230000/236000/285000/300000/400000/412000/420000/450000/500000" + err.append({'class': 181, 'subclass': 1017725297, 'text': mapcss.tr('Invalid voltage value for this country (Sweden)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(11000|13000|15000|15500|16000|17000|18000|20000|21000|22000|23000|25000|50000|60000|63000|65000|66000|110000|125000|130000|132000|138000|145000|150000|220000|222000|225000|380000|400000)$/][inside("CH")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_3c9d3cca, '^(11000|13000|15000|15500|16000|17000|18000|20000|21000|22000|23000|25000|50000|60000|63000|65000|66000|110000|125000|130000|132000|138000|145000|150000|220000|222000|225000|380000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'CH'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Switzerland" + # throwError:tr("Invalid voltage value for this country (Switzerland)") + # suggestAlternative:"11000/13000/15000/15500/16000/17000/18000/20000/21000/22000/23000/25000/50000/60000/63000/65000/66000/110000/125000/130000/132000/138000/145000/150000/220000/222000/225000/380000/400000" + err.append({'class': 182, 'subclass': 272241982, 'text': mapcss.tr('Invalid voltage value for this country (Switzerland)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(23000|66000|154000|161000|220000|230000|380000|400000)$/][inside("SY")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_79cf4090, '^(23000|66000|154000|161000|220000|230000|380000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'SY'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Syria" + # throwError:tr("Invalid voltage value for this country (Syria)") + # suggestAlternative:"23000/66000/154000/161000/220000/230000/380000/400000" + err.append({'class': 183, 'subclass': 1793912199, 'text': mapcss.tr('Invalid voltage value for this country (Syria)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(69000|161000|345000|690000)$/][inside("TW")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_17aa7472, '^(69000|161000|345000|690000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'TW'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Taiwan" + # throwError:tr("Invalid voltage value for this country (Taiwan)") + # suggestAlternative:"69000/161000/345000/690000" + err.append({'class': 184, 'subclass': 1782088248, 'text': mapcss.tr('Invalid voltage value for this country (Taiwan)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(35000|110000|138000|220000|500000)$/][inside("TJ")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_3de199b9, '^(35000|110000|138000|220000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'TJ'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Tajikistan" + # throwError:tr("Invalid voltage value for this country (Tajikistan)") + # suggestAlternative:"35000/110000/138000/220000/500000" + err.append({'class': 185, 'subclass': 1696201226, 'text': mapcss.tr('Invalid voltage value for this country (Tajikistan)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(11000|33000|66000|132000|220000|222000|400000)$/][inside("TZ")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_7f98a74d, '^(11000|33000|66000|132000|220000|222000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'TZ'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Tanzania" + # throwError:tr("Invalid voltage value for this country (Tanzania)") + # suggestAlternative:"11000/33000/66000/132000/220000/222000/400000" + err.append({'class': 186, 'subclass': 456570852, 'text': mapcss.tr('Invalid voltage value for this country (Tanzania)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(22000|50000|69000|115000|132000|230000|300000|500000)$/][inside("TH")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_6ae50e2c, '^(22000|50000|69000|115000|132000|230000|300000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'TH'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Thailand" + # throwError:tr("Invalid voltage value for this country (Thailand)") + # suggestAlternative:"22000/50000/69000/115000/132000/230000/300000/500000" + err.append({'class': 187, 'subclass': 876684396, 'text': mapcss.tr('Invalid voltage value for this country (Thailand)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(132000)$/][inside("BS")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_187ae8d5, '^(132000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'BS'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/The_Bahamas" + # throwError:tr("Invalid voltage value for this country (The Bahamas)") + # suggestAlternative:"132000" + err.append({'class': 188, 'subclass': 950773677, 'text': mapcss.tr('Invalid voltage value for this country (The Bahamas)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(225000)$/][inside("GM")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_0e11dbdf, '^(225000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'GM'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/The_Gambia" + # throwError:tr("Invalid voltage value for this country (The Gambia)") + # suggestAlternative:"225000" + err.append({'class': 189, 'subclass': 476112723, 'text': mapcss.tr('Invalid voltage value for this country (The Gambia)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(150000)$/][inside("TL")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_25ec0862, '^(150000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'TL'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Timor-Leste" + # throwError:tr("Invalid voltage value for this country (Timor-Leste)") + # suggestAlternative:"150000" + err.append({'class': 190, 'subclass': 690396262, 'text': mapcss.tr('Invalid voltage value for this country (Timor-Leste)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(161000|330000)$/][inside("TG")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_6a0cb1be, '^(161000|330000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'TG'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Togo" + # throwError:tr("Invalid voltage value for this country (Togo)") + # suggestAlternative:"161000/330000" + err.append({'class': 191, 'subclass': 1322374465, 'text': mapcss.tr('Invalid voltage value for this country (Togo)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(66000|132000|220000)$/][inside("TT")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_0a039a95, '^(66000|132000|220000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'TT'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Trinidad_and_Tobago" + # throwError:tr("Invalid voltage value for this country (Trinidad and Tobago)") + # suggestAlternative:"66000/132000/220000" + err.append({'class': 192, 'subclass': 251658403, 'text': mapcss.tr('Invalid voltage value for this country (Trinidad and Tobago)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(15000|22500|30000|33000|90000|150000|220000|225000|400000)$/][inside("TN")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_2cc8f87e, '^(15000|22500|30000|33000|90000|150000|220000|225000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'TN'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Tunisia" + # throwError:tr("Invalid voltage value for this country (Tunisia)") + # suggestAlternative:"15000/22500/30000/33000/90000/150000/220000/225000/400000" + err.append({'class': 193, 'subclass': 1503022744, 'text': mapcss.tr('Invalid voltage value for this country (Tunisia)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(20000|25000|31500|34000|34500|35000|36000|66000|150000|154000|170000|220000|345005|380000|400000|1000000)$/][inside("TR")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_7a0db6a9, '^(20000|25000|31500|34000|34500|35000|36000|66000|150000|154000|170000|220000|345005|380000|400000|1000000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'TR'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Turkey" + # throwError:tr("Invalid voltage value for this country (Turkey)") + # suggestAlternative:"20000/25000/31500/34000/34500/35000/36000/66000/150000/154000/170000/220000/345005/380000/400000/1000000" + err.append({'class': 194, 'subclass': 1333639709, 'text': mapcss.tr('Invalid voltage value for this country (Turkey)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(110000|220000|230000|500000)$/][inside("TM")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_0425562b, '^(110000|220000|230000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'TM'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Turkmenistan" + # throwError:tr("Invalid voltage value for this country (Turkmenistan)") + # suggestAlternative:"110000/220000/230000/500000" + err.append({'class': 195, 'subclass': 2029687308, 'text': mapcss.tr('Invalid voltage value for this country (Turkmenistan)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(11000|15000|33000|66000|132000|220000|400000)$/][inside("UG")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_56b8f45f, '^(11000|15000|33000|66000|132000|220000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'UG'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Uganda" + # throwError:tr("Invalid voltage value for this country (Uganda)") + # suggestAlternative:"11000/15000/33000/66000/132000/220000/400000" + err.append({'class': 196, 'subclass': 1273993186, 'text': mapcss.tr('Invalid voltage value for this country (Uganda)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(15000|35000|110000|150000|154000|220000|330000|400000|500000|750000|800000)$/][inside("UA")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_789fa698, '^(15000|35000|110000|150000|154000|220000|330000|400000|500000|750000|800000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'UA'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Ukraine" + # throwError:tr("Invalid voltage value for this country (Ukraine)") + # suggestAlternative:"15000/35000/110000/150000/154000/220000/330000/400000/500000/750000/800000" + err.append({'class': 197, 'subclass': 702307762, 'text': mapcss.tr('Invalid voltage value for this country (Ukraine)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(33000|132000|220000|400000)$/][inside("AE")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_403ae00b, '^(33000|132000|220000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'AE'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/United_Arab_Emirates" + # throwError:tr("Invalid voltage value for this country (United Arab Emirates)") + # suggestAlternative:"33000/132000/220000/400000" + err.append({'class': 198, 'subclass': 2141297316, 'text': mapcss.tr('Invalid voltage value for this country (United Arab Emirates)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(11000|12300|13800|15000|16000|20000|22000|24000|25000|27000|32000|33000|33300|35000|36000|66000|90000|110000|132000|145000|150000|170000|200000|220000|250000|254000|270000|275000|320000|400000|450000|515000|525000|600000)$/][inside("GB")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_0757e9d5, '^(11000|12300|13800|15000|16000|20000|22000|24000|25000|27000|32000|33000|33300|35000|36000|66000|90000|110000|132000|145000|150000|170000|200000|220000|250000|254000|270000|275000|320000|400000|450000|515000|525000|600000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'GB'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Great_Britain" + # throwError:tr("Invalid voltage value for this country (United Kingdom)") + # suggestAlternative:"11000/12300/13800/15000/16000/20000/22000/24000/25000/27000/32000/33000/33300/35000/36000/66000/90000/110000/132000/145000/150000/170000/200000/220000/250000/254000/270000/275000/320000/400000/450000/515000/525000/600000" + err.append({'class': 199, 'subclass': 819293163, 'text': mapcss.tr('Invalid voltage value for this country (United Kingdom)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(11000|11500|12000|12370|12400|12470|12500|13000|13200|13800|13860|14000|14400|14750|15000|16000|17500|18000|19920|19935|20000|20800|21000|21800|22000|23000|23900|24000|24900|24940|25000|26000|26400|27000|27600|32000|33000|34000|34500|34599|35000|35400|37500|38000|40000|41600|43000|43800|44000|46000|49000|50000|55000|57000|57100|60000|66000|69000|70000|71000|87000|88000|92000|100000|110000|111500|115000|120000|125000|130000|132000|138000|150000|160000|161000|200000|220000|230000|235000|250000|260000|276000|287000|320000|345000|400000|450000|460000|500000|690002|765000|1100000|1150003|1333000|1380000)$/][inside("US")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_32e2ea6c, '^(11000|11500|12000|12370|12400|12470|12500|13000|13200|13800|13860|14000|14400|14750|15000|16000|17500|18000|19920|19935|20000|20800|21000|21800|22000|23000|23900|24000|24900|24940|25000|26000|26400|27000|27600|32000|33000|34000|34500|34599|35000|35400|37500|38000|40000|41600|43000|43800|44000|46000|49000|50000|55000|57000|57100|60000|66000|69000|70000|71000|87000|88000|92000|100000|110000|111500|115000|120000|125000|130000|132000|138000|150000|160000|161000|200000|220000|230000|235000|250000|260000|276000|287000|320000|345000|400000|450000|460000|500000|690002|765000|1100000|1150003|1333000|1380000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'US'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/United_States" + # throwError:tr("Invalid voltage value for this country (United States)") + # suggestAlternative:"11000/11500/12000/12370/12400/12470/12500/13000/13200/13800/13860/14000/14400/14750/15000/16000/17500/18000/19920/19935/20000/20800/21000/21800/22000/23000/23900/24000/24900/24940/25000/26000/26400/27000/27600/32000/33000/34000/34500/34599/35000/35400/37500/38000/40000/41600/43000/43800/44000/46000/49000/50000/55000/57000/57100/60000/66000/69000/70000/71000/87000/88000/92000/100000/110000/111500/115000/120000/125000/130000/132000/138000/150000/160000/161000/200000/220000/230000/235000/250000/260000/276000/287000/320000/345000/400000/450000/460000/500000/690002/765000/1100000/1150003/1333000/1380000" + err.append({'class': 200, 'subclass': 225310352, 'text': mapcss.tr('Invalid voltage value for this country (United States)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(30000|31500|60000|63000|132000|150000|230000|500000)$/][inside("UY")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_5e41b29d, '^(30000|31500|60000|63000|132000|150000|230000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'UY'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Uruguay" + # throwError:tr("Invalid voltage value for this country (Uruguay)") + # suggestAlternative:"30000/31500/60000/63000/132000/150000/230000/500000" + err.append({'class': 201, 'subclass': 607964101, 'text': mapcss.tr('Invalid voltage value for this country (Uruguay)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(35000|75000|110000|220000|350000|380000|500000)$/][inside("UZ")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_7edd7211, '^(35000|75000|110000|220000|350000|380000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'UZ'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Uzbekistan" + # throwError:tr("Invalid voltage value for this country (Uzbekistan)") + # suggestAlternative:"35000/75000/110000/220000/350000/380000/500000" + err.append({'class': 202, 'subclass': 844798583, 'text': mapcss.tr('Invalid voltage value for this country (Uzbekistan)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(13800|24000|30000|69000|115000|138000|230000|400000|765000)$/][inside("VE")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_1cb10787, '^(13800|24000|30000|69000|115000|138000|230000|400000|765000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'VE'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Venezuela" + # throwError:tr("Invalid voltage value for this country (Venezuela)") + # suggestAlternative:"13800/24000/30000/69000/115000/138000/230000/400000/765000" + err.append({'class': 203, 'subclass': 1774756239, 'text': mapcss.tr('Invalid voltage value for this country (Venezuela)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(22000|50000|110000|115000|220000|230000|500000)$/][inside("VN")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_21b86ee6, '^(22000|50000|110000|115000|220000|230000|500000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'VN'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Vietnam" + # throwError:tr("Invalid voltage value for this country (Vietnam)") + # suggestAlternative:"22000/50000/110000/115000/220000/230000/500000" + err.append({'class': 204, 'subclass': 628937370, 'text': mapcss.tr('Invalid voltage value for this country (Vietnam)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(132000|400000)$/][inside("YE")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_4698125a, '^(132000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'YE'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Yemen" + # throwError:tr("Invalid voltage value for this country (Yemen)") + # suggestAlternative:"132000/400000" + err.append({'class': 205, 'subclass': 53647883, 'text': mapcss.tr('Invalid voltage value for this country (Yemen)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(11000|33000|66000|88000|132000|220000|330000)$/][inside("ZM")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_703e20a3, '^(11000|33000|66000|88000|132000|220000|330000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'ZM'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Zambia" + # throwError:tr("Invalid voltage value for this country (Zambia)") + # suggestAlternative:"11000/33000/66000/88000/132000/220000/330000" + err.append({'class': 206, 'subclass': 551185798, 'text': mapcss.tr('Invalid voltage value for this country (Zambia)')}) + + # relation[power=~/line_section|circuit/][voltage][voltage!~/;/][voltage!~/^(33000|66000|88000|110000|132000|220000|330000|400000)$/][inside("ZW")] + if ('power' in keys and 'voltage' in keys): + match = False + if not match: + capture_tags = {} + try: match = ((mapcss.regexp_test(mapcss._value_capture(capture_tags, 0, self.re_262476e6), mapcss._tag_capture(capture_tags, 0, tags, 'power'))) and (mapcss._tag_capture(capture_tags, 1, tags, 'voltage')) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 2, self.re_4399527a, ';'), mapcss._tag_capture(capture_tags, 2, tags, 'voltage'))) and (not mapcss.regexp_test(mapcss._value_const_capture(capture_tags, 3, self.re_65c9364b, '^(33000|66000|88000|110000|132000|220000|330000|400000)$'), mapcss._tag_capture(capture_tags, 3, tags, 'voltage'))) and (mapcss.inside(self.father.config.options, 'ZW'))) + except mapcss.RuleAbort: pass + if match: + # -osmoseFix:tr("Check the list of possible values for this country on the wiki and correct the `0` tag.","voltage") + # -osmoseDetail:tr("Each country has its own voltage set used for electricity transmission.") + # -osmoseExample:tr("For example, in Jordan, only 132 kV and 400 kV voltages are used.") + # -osmoseTrap:"If the voltage in OSM is correct but is showing as an error here, check the wiki page and make the necessary corrections. Then create [an issue on GitHub](https://github.com/open-energy-transition/validate-my-grid/issues) to update this check." + # -osmoseResource:"https://wiki.openstreetmap.org/wiki/Power_networks/Zimbabwe" + # throwError:tr("Invalid voltage value for this country (Zimbabwe)") + # suggestAlternative:"33000/66000/88000/110000/132000/220000/330000/400000" + err.append({'class': 207, 'subclass': 417523279, 'text': mapcss.tr('Invalid voltage value for this country (Zimbabwe)')}) + + return err + + +from plugins.PluginMapCSS import TestPluginMapcss + + +class Test(TestPluginMapcss): + def test(self): + n = Josm_powerQA(None) + class _config: + options = {"country": None, "language": None} + class father: + config = _config() + n.father = father() + n.init(None) + data = {'id': 0, 'lat': 0, 'lon': 0} + + self.check_not_err(n.node(data, {'power': 'transformer', 'transformer': 'main'}), expected={'class': 2, 'subclass': 1524257444}) + self.check_err(n.node(data, {'power': 'transformer', 'transformer': 'railway'}), expected={'class': 2, 'subclass': 1524257444}) + self.check_not_err(n.node(data, {'power': 'transformer'}), expected={'class': 2, 'subclass': 1524257444}) + self.check_err(n.node(data, {'generator:source': 'geothermals', 'power': 'generator'}), expected={'class': 3, 'subclass': 600492584}) + self.check_not_err(n.node(data, {'generator:source': 'oil;gas', 'power': 'generator'}), expected={'class': 3, 'subclass': 600492584}) + self.check_err(n.node(data, {'generator:source': 'photovoltaic', 'power': 'generator'}), expected={'class': 3, 'subclass': 600492584}) + self.check_not_err(n.node(data, {'generator:source': 'solar', 'power': 'generator'}), expected={'class': 3, 'subclass': 600492584}) + self.check_not_err(n.node(data, {'power': 'generator'}), expected={'class': 3, 'subclass': 600492584}) + self.check_not_err(n.node(data, {'generator:method': 'fission', 'generator:source': 'nuclear', 'power': 'generator'}), expected={'class': 4, 'subclass': 1513616022}) + self.check_err(n.node(data, {'generator:method': 'nuclear', 'generator:source': 'nuclear', 'power': 'generator'}), expected={'class': 4, 'subclass': 1513616022}) + self.check_not_err(n.node(data, {'generator:method': 'fission', 'generator:source': 'nuclear', 'power': 'generator'}), expected={'class': 5, 'subclass': 1445012384}) + self.check_err(n.node(data, {'generator:method': 'fusion', 'generator:source': 'solar', 'power': 'generator'}), expected={'class': 5, 'subclass': 1445012384}) + self.check_err(n.node(data, {'generator:method': 'wind', 'generator:source': 'wind', 'power': 'generator'}), expected={'class': 6, 'subclass': 1104182574}) + self.check_not_err(n.node(data, {'generator:method': 'wind_turbine', 'generator:source': 'wind', 'power': 'generator'}), expected={'class': 6, 'subclass': 1104182574}) + self.check_not_err(n.node(data, {'generator:source': 'wind', 'power': 'generator'}), expected={'class': 6, 'subclass': 1104182574}) + self.check_err(n.node(data, {'generator:method': 'wind_turbine', 'generator:source': 'turbine', 'power': 'generator'}), expected={'class': 5, 'subclass': 1021686777}) + self.check_not_err(n.node(data, {'generator:method': 'wind_turbine', 'generator:source': 'wind', 'power': 'generator'}), expected={'class': 5, 'subclass': 1021686777}) + self.check_err(n.node(data, {'generator:method': 'pump', 'generator:source': 'hydro', 'power': 'generator'}), expected={'class': 7, 'subclass': 1379042787}) + self.check_not_err(n.node(data, {'generator:method': 'water-storage', 'generator:source': 'hydro', 'power': 'generator'}), expected={'class': 7, 'subclass': 1379042787}) + self.check_not_err(n.node(data, {'generator:method': 'water-storage', 'generator:source': 'hydro', 'power': 'generator'}), expected={'class': 5, 'subclass': 1830475878}) + self.check_err(n.node(data, {'generator:method': 'water-pumped-storage', 'generator:source': 'water', 'power': 'generator'}), expected={'class': 5, 'subclass': 1830475878}) + self.check_not_err(n.node(data, {'generator:method': 'barrage', 'generator:source': 'tidal', 'power': 'generator'}), expected={'class': 8, 'subclass': 503240008}) + self.check_err(n.node(data, {'generator:method': 'dam', 'generator:source': 'tidal', 'power': 'generator'}), expected={'class': 8, 'subclass': 503240008}) + self.check_err(n.node(data, {'generator:method': 'stream', 'generator:source': 'solar', 'power': 'generator'}), expected={'class': 5, 'subclass': 976314568}) + self.check_not_err(n.node(data, {'generator:method': 'barrage', 'generator:source': 'tidal', 'power': 'generator'}), expected={'class': 5, 'subclass': 976314568}) + self.check_err(n.node(data, {'generator:method': 'solar', 'generator:source': 'solar', 'power': 'generator'}), expected={'class': 9, 'subclass': 1095645684}) + self.check_not_err(n.node(data, {'generator:method': 'thermal', 'generator:source': 'solar', 'power': 'generator'}), expected={'class': 9, 'subclass': 1095645684}) + self.check_err(n.node(data, {'generator:method': 'photovoltaic', 'generator:source': 'photovoltaic', 'power': 'generator'}), expected={'class': 5, 'subclass': 1457983121}) + self.check_not_err(n.node(data, {'generator:method': 'thermal', 'generator:source': 'solar', 'power': 'generator'}), expected={'class': 5, 'subclass': 1457983121}) + self.check_err(n.node(data, {'generator:method': 'burning', 'generator:source': 'coal', 'power': 'generator'}), expected={'class': 10, 'subclass': 727067352}) + self.check_not_err(n.node(data, {'generator:method': 'combustion', 'generator:source': 'coal', 'power': 'generator'}), expected={'class': 10, 'subclass': 727067352}) + self.check_not_err(n.node(data, {'generator:source': 'coal', 'power': 'generator'}), expected={'class': 10, 'subclass': 727067352}) + self.check_not_err(n.node(data, {'generator:method': 'combustion', 'generator:source': 'gas', 'power': 'generator'}), expected={'class': 11, 'subclass': 1587058630}) + self.check_err(n.node(data, {'generator:method': 'gasification', 'generator:source': 'gas', 'power': 'generator'}), expected={'class': 11, 'subclass': 1587058630}) + self.check_not_err(n.node(data, {'generator:source': 'gas', 'power': 'generator'}), expected={'class': 11, 'subclass': 1587058630}) + self.check_not_err(n.node(data, {'generator:method': 'anaerobic_digestion', 'generator:source': 'biomass', 'power': 'generator'}), expected={'class': 12, 'subclass': 1563205211}) + self.check_err(n.node(data, {'generator:method': 'burn', 'generator:source': 'biomass', 'power': 'generator'}), expected={'class': 12, 'subclass': 1563205211}) + self.check_not_err(n.node(data, {'generator:method': 'combustion', 'generator:source': 'biofuel', 'power': 'generator'}), expected={'class': 13, 'subclass': 2056310355}) + self.check_err(n.node(data, {'generator:method': 'gasification', 'generator:source': 'biofuel', 'power': 'generator'}), expected={'class': 13, 'subclass': 2056310355}) + self.check_not_err(n.node(data, {'generator:source': 'biofuel', 'power': 'generator'}), expected={'class': 13, 'subclass': 2056310355}) + self.check_not_err(n.node(data, {'generator:method': 'combustion', 'generator:source': 'biogas', 'power': 'generator'}), expected={'class': 14, 'subclass': 1353854094}) + self.check_err(n.node(data, {'generator:method': 'gasification', 'generator:source': 'biogas', 'power': 'generator'}), expected={'class': 14, 'subclass': 1353854094}) + self.check_not_err(n.node(data, {'generator:source': 'biogas', 'power': 'generator'}), expected={'class': 14, 'subclass': 1353854094}) + self.check_not_err(n.node(data, {'generator:method': 'combustion', 'generator:source': 'oil', 'power': 'generator'}), expected={'class': 15, 'subclass': 2059171544}) + self.check_err(n.node(data, {'generator:method': 'gasification', 'generator:source': 'oil', 'power': 'generator'}), expected={'class': 15, 'subclass': 2059171544}) + self.check_not_err(n.node(data, {'generator:source': 'oil', 'power': 'generator'}), expected={'class': 15, 'subclass': 2059171544}) + self.check_not_err(n.node(data, {'generator:method': 'combustion', 'generator:source': 'diesel', 'power': 'generator'}), expected={'class': 16, 'subclass': 87750196}) + self.check_err(n.node(data, {'generator:method': 'gasification', 'generator:source': 'diesel', 'power': 'generator'}), expected={'class': 16, 'subclass': 87750196}) + self.check_not_err(n.node(data, {'generator:source': 'diesel', 'power': 'generator'}), expected={'class': 16, 'subclass': 87750196}) + self.check_not_err(n.node(data, {'generator:method': 'combustion', 'generator:source': 'gasoline', 'power': 'generator'}), expected={'class': 17, 'subclass': 1418218249}) + self.check_err(n.node(data, {'generator:method': 'gasification', 'generator:source': 'gasoline', 'power': 'generator'}), expected={'class': 17, 'subclass': 1418218249}) + self.check_not_err(n.node(data, {'generator:source': 'gasoline', 'power': 'generator'}), expected={'class': 17, 'subclass': 1418218249}) + self.check_err(n.node(data, {'generator:method': 'burning', 'generator:source': 'waste', 'power': 'generator'}), expected={'class': 18, 'subclass': 600470569}) + self.check_not_err(n.node(data, {'generator:method': 'combustion', 'generator:source': 'waste', 'power': 'generator'}), expected={'class': 18, 'subclass': 600470569}) + self.check_not_err(n.node(data, {'generator:method': 'combustion', 'generator:source': 'biomass', 'power': 'generator'}), expected={'class': 5, 'subclass': 1335984003}) + self.check_not_err(n.node(data, {'generator:method': 'combustion', 'generator:source': 'gas;oil', 'power': 'generator'}), expected={'class': 5, 'subclass': 1335984003}) + self.check_not_err(n.node(data, {'generator:method': 'combustion', 'generator:source': 'gas;oil;waste', 'power': 'generator'}), expected={'class': 5, 'subclass': 1335984003}) + self.check_err(n.node(data, {'generator:method': 'combustion', 'generator:source': 'waste;solar', 'power': 'generator'}), expected={'class': 5, 'subclass': 1335984003}) + self.check_err(n.node(data, {'generator:method': 'combustion', 'generator:source': 'wave', 'power': 'generator'}), expected={'class': 5, 'subclass': 1335984003}) + self.check_not_err(n.node(data, {'generator:method': 'gasification', 'generator:source': 'biomass', 'power': 'generator'}), expected={'class': 5, 'subclass': 313390332}) + self.check_not_err(n.node(data, {'generator:method': 'gasification', 'generator:source': 'biomass;waste', 'power': 'generator'}), expected={'class': 5, 'subclass': 313390332}) + self.check_err(n.node(data, {'generator:method': 'gasification', 'generator:source': 'coal', 'power': 'generator'}), expected={'class': 5, 'subclass': 313390332}) + self.check_not_err(n.node(data, {'plant:source': 'gas;oil', 'power': 'plant'}), expected={'class': 19, 'subclass': 966751128}) + self.check_err(n.node(data, {'plant:source': 'photovoltaic', 'power': 'plant'}), expected={'class': 19, 'subclass': 966751128}) + self.check_not_err(n.node(data, {'plant:source': 'solar', 'power': 'plant'}), expected={'class': 19, 'subclass': 966751128}) + self.check_not_err(n.node(data, {'power': 'plant'}), expected={'class': 19, 'subclass': 966751128}) + self.check_not_err(n.node(data, {'plant:method': 'fission', 'plant:source': 'nuclear', 'power': 'plant'}), expected={'class': 20, 'subclass': 56152287}) + self.check_err(n.node(data, {'plant:method': 'nuclear', 'plant:source': 'nuclear', 'power': 'plant'}), expected={'class': 20, 'subclass': 56152287}) + self.check_not_err(n.node(data, {'plant:method': 'fission', 'plant:source': 'nuclear', 'power': 'plant'}), expected={'class': 21, 'subclass': 120690153}) + self.check_err(n.node(data, {'plant:method': 'fusion', 'plant:source': 'solar', 'power': 'plant'}), expected={'class': 21, 'subclass': 120690153}) + self.check_err(n.node(data, {'plant:method': 'wind', 'plant:source': 'wind', 'power': 'plant'}), expected={'class': 22, 'subclass': 515061741}) + self.check_not_err(n.node(data, {'plant:method': 'wind_turbine', 'plant:source': 'wind', 'power': 'plant'}), expected={'class': 22, 'subclass': 515061741}) + self.check_not_err(n.node(data, {'plant:source': 'wind', 'power': 'plant'}), expected={'class': 22, 'subclass': 515061741}) + self.check_err(n.node(data, {'plant:method': 'wind_turbine', 'plant:source': 'eolien', 'power': 'plant'}), expected={'class': 21, 'subclass': 443176990}) + self.check_not_err(n.node(data, {'plant:method': 'wind_turbine', 'plant:source': 'wind', 'power': 'plant'}), expected={'class': 21, 'subclass': 443176990}) + self.check_err(n.node(data, {'plant:method': 'pump', 'plant:source': 'hydro', 'power': 'plant'}), expected={'class': 23, 'subclass': 1020856194}) + self.check_not_err(n.node(data, {'plant:method': 'water-storage', 'plant:source': 'hydro', 'power': 'plant'}), expected={'class': 23, 'subclass': 1020856194}) + self.check_not_err(n.node(data, {'plant:method': 'water-storage', 'plant:source': 'hydro', 'power': 'plant'}), expected={'class': 21, 'subclass': 1372509170}) + self.check_err(n.node(data, {'plant:method': 'water-pumped-storage', 'plant:source': 'water', 'power': 'plant'}), expected={'class': 21, 'subclass': 1372509170}) + self.check_not_err(n.node(data, {'plant:method': 'barrage', 'plant:source': 'tidal', 'power': 'plant'}), expected={'class': 24, 'subclass': 75438578}) + self.check_err(n.node(data, {'plant:method': 'dam', 'plant:source': 'tidal', 'power': 'plant'}), expected={'class': 24, 'subclass': 75438578}) + self.check_err(n.node(data, {'plant:method': 'stream', 'plant:source': 'solar', 'power': 'plant'}), expected={'class': 21, 'subclass': 934978595}) + self.check_not_err(n.node(data, {'plant:method': 'barrage', 'plant:source': 'tidal', 'power': 'plant'}), expected={'class': 21, 'subclass': 934978595}) + self.check_err(n.node(data, {'plant:method': 'solar', 'plant:source': 'solar', 'power': 'plant'}), expected={'class': 25, 'subclass': 1799335667}) + self.check_not_err(n.node(data, {'plant:method': 'thermal', 'plant:source': 'solar', 'power': 'plant'}), expected={'class': 25, 'subclass': 1799335667}) + self.check_err(n.node(data, {'plant:method': 'photovoltaic', 'plant:source': 'photovoltaic', 'power': 'plant'}), expected={'class': 21, 'subclass': 1085835351}) + self.check_not_err(n.node(data, {'plant:method': 'thermal', 'plant:source': 'solar', 'power': 'plant'}), expected={'class': 21, 'subclass': 1085835351}) + self.check_err(n.node(data, {'plant:method': 'burning', 'plant:source': 'coal', 'power': 'plant'}), expected={'class': 26, 'subclass': 746471181}) + self.check_not_err(n.node(data, {'plant:method': 'combustion', 'plant:source': 'coal', 'power': 'plant'}), expected={'class': 26, 'subclass': 746471181}) + self.check_not_err(n.node(data, {'plant:source': 'coal', 'power': 'plant'}), expected={'class': 26, 'subclass': 746471181}) + self.check_not_err(n.node(data, {'plant:method': 'combustion', 'plant:source': 'gas', 'power': 'plant'}), expected={'class': 27, 'subclass': 827336490}) + self.check_err(n.node(data, {'plant:method': 'gasification', 'plant:source': 'gas', 'power': 'plant'}), expected={'class': 27, 'subclass': 827336490}) + self.check_not_err(n.node(data, {'plant:source': 'gas', 'power': 'plant'}), expected={'class': 27, 'subclass': 827336490}) + self.check_not_err(n.node(data, {'plant:method': 'anaerobic_digestion', 'plant:source': 'biomass', 'power': 'plant'}), expected={'class': 28, 'subclass': 2076402923}) + self.check_err(n.node(data, {'plant:method': 'burn', 'plant:source': 'biomass', 'power': 'plant'}), expected={'class': 28, 'subclass': 2076402923}) + self.check_not_err(n.node(data, {'plant:method': 'combustion', 'plant:source': 'biofuel', 'power': 'plant'}), expected={'class': 29, 'subclass': 1882895060}) + self.check_err(n.node(data, {'plant:method': 'gasification', 'plant:source': 'biofuel', 'power': 'plant'}), expected={'class': 29, 'subclass': 1882895060}) + self.check_not_err(n.node(data, {'plant:source': 'biofuel', 'power': 'plant'}), expected={'class': 29, 'subclass': 1882895060}) + self.check_not_err(n.node(data, {'plant:method': 'combustion', 'plant:source': 'biogas', 'power': 'plant'}), expected={'class': 30, 'subclass': 887792794}) + self.check_err(n.node(data, {'plant:method': 'gasification', 'plant:source': 'biogas', 'power': 'plant'}), expected={'class': 30, 'subclass': 887792794}) + self.check_not_err(n.node(data, {'plant:source': 'biogas', 'power': 'plant'}), expected={'class': 30, 'subclass': 887792794}) + self.check_not_err(n.node(data, {'plant:method': 'combustion', 'plant:source': 'oil', 'power': 'plant'}), expected={'class': 31, 'subclass': 1678290892}) + self.check_err(n.node(data, {'plant:method': 'gasification', 'plant:source': 'oil', 'power': 'plant'}), expected={'class': 31, 'subclass': 1678290892}) + self.check_not_err(n.node(data, {'plant:source': 'oil', 'power': 'plant'}), expected={'class': 31, 'subclass': 1678290892}) + self.check_not_err(n.node(data, {'plant:method': 'combustion', 'plant:source': 'diesel', 'power': 'plant'}), expected={'class': 32, 'subclass': 75543302}) + self.check_err(n.node(data, {'plant:method': 'gasification', 'plant:source': 'diesel', 'power': 'plant'}), expected={'class': 32, 'subclass': 75543302}) + self.check_not_err(n.node(data, {'plant:source': 'diesel', 'power': 'plant'}), expected={'class': 32, 'subclass': 75543302}) + self.check_not_err(n.node(data, {'plant:method': 'combustion', 'plant:source': 'gasoline', 'power': 'plant'}), expected={'class': 33, 'subclass': 599334301}) + self.check_err(n.node(data, {'plant:method': 'gasification', 'plant:source': 'gasoline', 'power': 'plant'}), expected={'class': 33, 'subclass': 599334301}) + self.check_not_err(n.node(data, {'plant:source': 'gasoline', 'power': 'plant'}), expected={'class': 33, 'subclass': 599334301}) + self.check_err(n.node(data, {'plant:method': 'burning', 'plant:source': 'waste', 'power': 'plant'}), expected={'class': 34, 'subclass': 489417432}) + self.check_not_err(n.node(data, {'plant:method': 'combustion', 'plant:source': 'waste', 'power': 'plant'}), expected={'class': 34, 'subclass': 489417432}) + self.check_not_err(n.node(data, {'plant:method': 'combustion', 'plant:source': 'biomass', 'power': 'plant'}), expected={'class': 21, 'subclass': 46745407}) + self.check_not_err(n.node(data, {'plant:method': 'combustion', 'plant:source': 'biomass;waste', 'power': 'plant'}), expected={'class': 21, 'subclass': 46745407}) + self.check_err(n.node(data, {'plant:method': 'combustion', 'plant:source': 'wave', 'power': 'plant'}), expected={'class': 21, 'subclass': 46745407}) + self.check_not_err(n.node(data, {'plant:method': 'gasification', 'plant:source': 'biomass', 'power': 'plant'}), expected={'class': 21, 'subclass': 1329720574}) + self.check_not_err(n.node(data, {'plant:method': 'gasification', 'plant:source': 'biomass;waste', 'power': 'plant'}), expected={'class': 21, 'subclass': 1329720574}) + self.check_err(n.node(data, {'plant:method': 'gasification', 'plant:source': 'coal', 'power': 'plant'}), expected={'class': 21, 'subclass': 1329720574}) + self.check_not_err(n.way(data, {'power': 'cable'}, [0]), expected={'class': 1, 'subclass': 36378028}) + self.check_err(n.relation(data, {'power': 'cable_distribution_cabinet'}, []), expected={'class': 1, 'subclass': 36378028}) + self.check_err(n.relation(data, {'power': 'circuits'}, []), expected={'class': 1, 'subclass': 36378028}) + self.check_err(n.relation(data, {'power': 'route'}, []), expected={'class': 1, 'subclass': 36378028}) + self.check_not_err(n.relation(data, {'power': 'circuit', 'type': 'power'}, []), expected={'class': 208, 'subclass': 213213626}) + self.check_err(n.relation(data, {'type': 'power'}, []), expected={'class': 208, 'subclass': 213213626}) + self.check_err(n.relation(data, {'power': 'circuit', 'topology': 'branch', 'type': 'power'}, []), expected={'class': 209, 'subclass': 1474691630}) + self.check_not_err(n.relation(data, {'power': 'circuit', 'topology': 'branched', 'type': 'power'}, []), expected={'class': 209, 'subclass': 1474691630}) + self.check_not_err(n.relation(data, {'power': 'circuit', 'type': 'power'}, []), expected={'class': 209, 'subclass': 1474691630}) + self.check_err(n.relation(data, {'power': 'circuit', 'type': 'power', 'wires': '4'}, []), expected={'class': 210, 'subclass': 698560024}) + self.check_not_err(n.relation(data, {'power': 'circuit', 'type': 'power'}, []), expected={'class': 210, 'subclass': 698560024})