Skip to content

Commit bad08f5

Browse files
committed
add mapcss from PowerQA ValidateMyGrid
1 parent d9e8455 commit bad08f5

File tree

2 files changed

+8953
-1
lines changed

2 files changed

+8953
-1
lines changed

mapcss/item_map.py

Lines changed: 216 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,221 @@
439439
'subclass_blacklist': [160705788, 321695123],
440440
'tags': ['tag', 'railway'],
441441
'url': 'https://www.openrailwaymap.org/validator/openrailwaymap.validator.mapcss'},
442+
'powerQA': {'class': {None: 0,
443+
'Incompatibility between method and source on a power generator': 5,
444+
'Incompatibility between method and source on a power plant': 21,
445+
'Invalid voltage value for this country (Afghanistan)': 35,
446+
'Invalid voltage value for this country (Albania)': 36,
447+
'Invalid voltage value for this country (Algeria)': 37,
448+
'Invalid voltage value for this country (Andorra)': 38,
449+
'Invalid voltage value for this country (Angola)': 39,
450+
'Invalid voltage value for this country (Argentina)': 40,
451+
'Invalid voltage value for this country (Armenia)': 41,
452+
'Invalid voltage value for this country (Australia)': 42,
453+
'Invalid voltage value for this country (Austria)': 43,
454+
'Invalid voltage value for this country (Azerbaijan)': 44,
455+
'Invalid voltage value for this country (Bahrain)': 45,
456+
'Invalid voltage value for this country (Bangladesh)': 46,
457+
'Invalid voltage value for this country (Belarus)': 47,
458+
'Invalid voltage value for this country (Belgium)': 48,
459+
'Invalid voltage value for this country (Belize)': 49,
460+
'Invalid voltage value for this country (Benin)': 50,
461+
'Invalid voltage value for this country (Bhutan)': 51,
462+
'Invalid voltage value for this country (Bolivia)': 52,
463+
'Invalid voltage value for this country (Bosnia and Herzegovina)': 53,
464+
'Invalid voltage value for this country (Botswana)': 54,
465+
'Invalid voltage value for this country (Brazil)': 55,
466+
'Invalid voltage value for this country (Brunei)': 56,
467+
'Invalid voltage value for this country (Bulgaria)': 57,
468+
'Invalid voltage value for this country (Burkina Faso)': 58,
469+
'Invalid voltage value for this country (Burundi)': 59,
470+
'Invalid voltage value for this country (Cambodia)': 60,
471+
'Invalid voltage value for this country (Cameroon)': 61,
472+
'Invalid voltage value for this country (Canada)': 62,
473+
'Invalid voltage value for this country (Cape Verde)': 63,
474+
'Invalid voltage value for this country (Central African Republic)': 64,
475+
'Invalid voltage value for this country (Chad)': 65,
476+
'Invalid voltage value for this country (Chile)': 66,
477+
'Invalid voltage value for this country (Colombia)': 67,
478+
'Invalid voltage value for this country (Costa Rica)': 68,
479+
'Invalid voltage value for this country (Croatia)': 69,
480+
'Invalid voltage value for this country (Cuba)': 70,
481+
'Invalid voltage value for this country (Cyprus)': 71,
482+
'Invalid voltage value for this country (Czech Republic)': 72,
483+
'Invalid voltage value for this country (Democratic Republic of the Congo)': 73,
484+
'Invalid voltage value for this country (Djibouti)': 74,
485+
'Invalid voltage value for this country (Dominican Republic)': 75,
486+
'Invalid voltage value for this country (Ecuador)': 76,
487+
'Invalid voltage value for this country (Egypt)': 77,
488+
'Invalid voltage value for this country (El Salvador)': 78,
489+
'Invalid voltage value for this country (Equatorial Guinea)': 79,
490+
'Invalid voltage value for this country (Eritrea)': 80,
491+
'Invalid voltage value for this country (Estonia)': 81,
492+
'Invalid voltage value for this country (Eswatini)': 82,
493+
'Invalid voltage value for this country (Ethiopia)': 83,
494+
'Invalid voltage value for this country (Federated States of Micronesia)': 84,
495+
'Invalid voltage value for this country (Fiji)': 85,
496+
'Invalid voltage value for this country (Finland)': 86,
497+
'Invalid voltage value for this country (France)': 87,
498+
'Invalid voltage value for this country (Gabon)': 88,
499+
'Invalid voltage value for this country (Georgia)': 89,
500+
'Invalid voltage value for this country (Germany)': 90,
501+
'Invalid voltage value for this country (Ghana)': 91,
502+
'Invalid voltage value for this country (Greece)': 92,
503+
'Invalid voltage value for this country (Guatemala)': 93,
504+
'Invalid voltage value for this country (Guinea)': 94,
505+
'Invalid voltage value for this country (Guinea-Bissau)': 95,
506+
'Invalid voltage value for this country (Haiti)': 96,
507+
'Invalid voltage value for this country (Honduras)': 97,
508+
'Invalid voltage value for this country (Hungary)': 98,
509+
'Invalid voltage value for this country (Iceland)': 99,
510+
'Invalid voltage value for this country (India)': 100,
511+
'Invalid voltage value for this country (Indonesia)': 101,
512+
'Invalid voltage value for this country (Iran)': 102,
513+
'Invalid voltage value for this country (Iraq)': 103,
514+
'Invalid voltage value for this country (Ireland)': 104,
515+
'Invalid voltage value for this country (Israel)': 105,
516+
'Invalid voltage value for this country (Italy)': 106,
517+
'Invalid voltage value for this country (Ivory Coast)': 107,
518+
'Invalid voltage value for this country (Jamaica)': 108,
519+
'Invalid voltage value for this country (Japan)': 109,
520+
'Invalid voltage value for this country (Jordan)': 110,
521+
'Invalid voltage value for this country (Kazakhstan)': 111,
522+
'Invalid voltage value for this country (Kenya)': 112,
523+
'Invalid voltage value for this country (Kingdom of Denmark)': 113,
524+
'Invalid voltage value for this country (Kingdom of the Netherlands)': 114,
525+
'Invalid voltage value for this country (Kuwait)': 115,
526+
'Invalid voltage value for this country (Kyrgyzstan)': 116,
527+
'Invalid voltage value for this country (Laos)': 117,
528+
'Invalid voltage value for this country (Latvia)': 118,
529+
'Invalid voltage value for this country (Lebanon)': 119,
530+
'Invalid voltage value for this country (Lesotho)': 120,
531+
'Invalid voltage value for this country (Liberia)': 121,
532+
'Invalid voltage value for this country (Libya)': 122,
533+
'Invalid voltage value for this country (Liechtenstein)': 123,
534+
'Invalid voltage value for this country (Lithuania)': 124,
535+
'Invalid voltage value for this country (Luxembourg)': 125,
536+
'Invalid voltage value for this country (Madagascar)': 126,
537+
'Invalid voltage value for this country (Malawi)': 127,
538+
'Invalid voltage value for this country (Malaysia)': 128,
539+
'Invalid voltage value for this country (Maldives)': 129,
540+
'Invalid voltage value for this country (Mali)': 130,
541+
'Invalid voltage value for this country (Malta)': 131,
542+
'Invalid voltage value for this country (Mauritania)': 132,
543+
'Invalid voltage value for this country (Mauritius)': 133,
544+
'Invalid voltage value for this country (Mexico)': 134,
545+
'Invalid voltage value for this country (Moldova)': 135,
546+
'Invalid voltage value for this country (Mongolia)': 136,
547+
'Invalid voltage value for this country (Montenegro)': 137,
548+
'Invalid voltage value for this country (Morocco)': 138,
549+
'Invalid voltage value for this country (Mozambique)': 139,
550+
'Invalid voltage value for this country (Myanmar)': 140,
551+
'Invalid voltage value for this country (Namibia)': 141,
552+
'Invalid voltage value for this country (Nepal)': 142,
553+
'Invalid voltage value for this country (New Zealand)': 143,
554+
'Invalid voltage value for this country (Nicaragua)': 144,
555+
'Invalid voltage value for this country (Niger)': 145,
556+
'Invalid voltage value for this country (Nigeria)': 146,
557+
'Invalid voltage value for this country (North Korea)': 147,
558+
'Invalid voltage value for this country (North Macedonia)': 148,
559+
'Invalid voltage value for this country (Norway)': 149,
560+
'Invalid voltage value for this country (Oman)': 150,
561+
'Invalid voltage value for this country (Pakistan)': 151,
562+
'Invalid voltage value for this country (Panama)': 152,
563+
'Invalid voltage value for this country (Papua New Guinea)': 153,
564+
'Invalid voltage value for this country (Paraguay)': 154,
565+
"Invalid voltage value for this country (People's Republic of China)": 155,
566+
'Invalid voltage value for this country (Peru)': 156,
567+
'Invalid voltage value for this country (Philippines)': 157,
568+
'Invalid voltage value for this country (Poland)': 158,
569+
'Invalid voltage value for this country (Portugal)': 159,
570+
'Invalid voltage value for this country (Qatar)': 160,
571+
'Invalid voltage value for this country (Republic of the Congo)': 161,
572+
'Invalid voltage value for this country (Romania)': 162,
573+
'Invalid voltage value for this country (Russia)': 163,
574+
'Invalid voltage value for this country (Rwanda)': 164,
575+
'Invalid voltage value for this country (San Marino)': 165,
576+
'Invalid voltage value for this country (Saudi Arabia)': 166,
577+
'Invalid voltage value for this country (Senegal)': 167,
578+
'Invalid voltage value for this country (Serbia)': 168,
579+
'Invalid voltage value for this country (Sierra Leone)': 169,
580+
'Invalid voltage value for this country (Singapore)': 170,
581+
'Invalid voltage value for this country (Slovakia)': 171,
582+
'Invalid voltage value for this country (Slovenia)': 172,
583+
'Invalid voltage value for this country (South Africa)': 173,
584+
'Invalid voltage value for this country (South Korea)': 174,
585+
'Invalid voltage value for this country (South Sudan)': 175,
586+
'Invalid voltage value for this country (Spain)': 176,
587+
'Invalid voltage value for this country (Sri Lanka)': 177,
588+
'Invalid voltage value for this country (State of Palestine)': 178,
589+
'Invalid voltage value for this country (Sudan)': 179,
590+
'Invalid voltage value for this country (Suriname)': 180,
591+
'Invalid voltage value for this country (Sweden)': 181,
592+
'Invalid voltage value for this country (Switzerland)': 182,
593+
'Invalid voltage value for this country (Syria)': 183,
594+
'Invalid voltage value for this country (Taiwan)': 184,
595+
'Invalid voltage value for this country (Tajikistan)': 185,
596+
'Invalid voltage value for this country (Tanzania)': 186,
597+
'Invalid voltage value for this country (Thailand)': 187,
598+
'Invalid voltage value for this country (The Bahamas)': 188,
599+
'Invalid voltage value for this country (The Gambia)': 189,
600+
'Invalid voltage value for this country (Timor-Leste)': 190,
601+
'Invalid voltage value for this country (Togo)': 191,
602+
'Invalid voltage value for this country (Trinidad and Tobago)': 192,
603+
'Invalid voltage value for this country (Tunisia)': 193,
604+
'Invalid voltage value for this country (Turkey)': 194,
605+
'Invalid voltage value for this country (Turkmenistan)': 195,
606+
'Invalid voltage value for this country (Uganda)': 196,
607+
'Invalid voltage value for this country (Ukraine)': 197,
608+
'Invalid voltage value for this country (United Arab Emirates)': 198,
609+
'Invalid voltage value for this country (United Kingdom)': 199,
610+
'Invalid voltage value for this country (United States)': 200,
611+
'Invalid voltage value for this country (Uruguay)': 201,
612+
'Invalid voltage value for this country (Uzbekistan)': 202,
613+
'Invalid voltage value for this country (Venezuela)': 203,
614+
'Invalid voltage value for this country (Vietnam)': 204,
615+
'Invalid voltage value for this country (Yemen)': 205,
616+
'Invalid voltage value for this country (Zambia)': 206,
617+
'Invalid voltage value for this country (Zimbabwe)': 207,
618+
'Is it a power circuit or a power line section? Add the power=* tag accordingly.': 208,
619+
'Unsuitable method for biofuel generator': 13,
620+
'Unsuitable method for biofuel power plant': 29,
621+
'Unsuitable method for biogas generator': 14,
622+
'Unsuitable method for biogas power plant': 30,
623+
'Unsuitable method for biomass generator': 12,
624+
'Unsuitable method for biomass power plant': 28,
625+
'Unsuitable method for coal generator': 10,
626+
'Unsuitable method for coal power plant': 26,
627+
'Unsuitable method for diesel generator': 16,
628+
'Unsuitable method for diesel power plant': 32,
629+
'Unsuitable method for gas generator': 11,
630+
'Unsuitable method for gas power plant': 27,
631+
'Unsuitable method for gasoline generator': 17,
632+
'Unsuitable method for gasoline power plant': 33,
633+
'Unsuitable method for hydro generator': 7,
634+
'Unsuitable method for hydro power plant': 23,
635+
'Unsuitable method for nuclear generator': 4,
636+
'Unsuitable method for nuclear power plant': 20,
637+
'Unsuitable method for oil generator': 15,
638+
'Unsuitable method for oil power plant': 31,
639+
'Unsuitable method for solar generator': 9,
640+
'Unsuitable method for solar power plant': 25,
641+
'Unsuitable method for tidal generator': 8,
642+
'Unsuitable method for tidal power plant': 24,
643+
'Unsuitable method for waste generator': 18,
644+
'Unsuitable method for waste power plant': 34,
645+
'Unsuitable method for wind generator': 6,
646+
'Unsuitable method for wind power plant': 22,
647+
'Unsuitable value for generator:source=* tag': 3,
648+
'Unsuitable value for plant:source=* tag': 19,
649+
'Unsuitable value for power=* tag': 1,
650+
'Unsuitable value for transformer=* tag': 2,
651+
'power=circuit relations should have a topology tag with value linear or branched': 209,
652+
'wires tag should be on the power line and not on the circuit relation': 210},
653+
'item': 9042,
654+
'prefix': 'Josm_',
655+
'tags': ['tag', 'power'],
656+
'url': 'https://github.com/open-energy-transition/validate-my-grid/blob/gh-pages/powerQA.validator.mapcss'},
442657
'relation': {'class': {'missing tag': 9007001},
443658
'item': 9007,
444659
'prefix': 'Josm_',
@@ -515,4 +730,4 @@
515730
'prefix': 'Josm_',
516731
'tags': ['tag', 'wikipedia'],
517732
'url': 'https://josm.openstreetmap.de/browser/josm/trunk/resources/data/validator/wikipedia.mapcss?format=txt',
518-
'url_display': 'https://josm.openstreetmap.de/browser/josm/trunk/resources/data/validator/wikipedia.mapcss'}}
733+
'url_display': 'https://josm.openstreetmap.de/browser/josm/trunk/resources/data/validator/wikipedia.mapcss'}}

0 commit comments

Comments
 (0)