Skip to content

Commit f36dc6f

Browse files
authored
translation updates (#5813)
1 parent bdc7b4b commit f36dc6f

File tree

1 file changed

+28
-12
lines changed

1 file changed

+28
-12
lines changed

translations/mgcp.js

Lines changed: 28 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1436,6 +1436,25 @@ mgcp = {
14361436
{
14371437
tags.product = 'petroleum';
14381438
}
1439+
switch(attrs.FFN) {
1440+
case '810':
1441+
tags.government = 'administrative';
1442+
tags.office = 'government';
1443+
break;
1444+
case '860':
1445+
tags.building = 'yes';
1446+
tags.amenity = 'doctors';
1447+
break;
1448+
case '912':
1449+
tags.building = 'sports_centre';
1450+
delete tags.leisure;
1451+
break;
1452+
case '955':
1453+
tags.club = 'sailing';
1454+
delete tags.leisure;
1455+
delete tags.building;
1456+
break;
1457+
}
14391458
break;
14401459

14411460
case 'AL020': // AL020 (Built-up Area) should become a Place. NOTE: This is a bit vague...
@@ -2296,10 +2315,6 @@ mgcp = {
22962315
attrs.F_CODE = 'AL010';
22972316
attrs.FFN = '610';
22982317
break;
2299-
case 'government':
2300-
attrs.F_CODE = 'AL010';
2301-
attrs.FFN = '811';
2302-
break;
23032318
case 'diplomatic':
23042319
attrs.F_CODE = 'AL010';
23052320
attrs.FFN = '825';
@@ -3074,7 +3089,7 @@ mgcp = {
30743089

30753090
case 'AL015': // General Building
30763091
// Unknown House of Worship
3077-
if (tags.amenity == 'place_of_worship' && tags.building == 'other') attrs.HWT = 999;
3092+
if (tags.amenity == 'place_of_worship') attrs.HWT = '0';
30783093

30793094
// AL015 doesn't use the religion tag
30803095
delete attrs.REL;
@@ -3084,13 +3099,6 @@ mgcp = {
30843099
attrs.FFN = '931';
30853100
}
30863101

3087-
if (attrs.FFN && (attrs.FFN !== '930' && attrs.FFN !== '931' && attrs.FFN !== '0'))
3088-
{
3089-
// Debug
3090-
//print('AL015: Setting HWT 998');
3091-
attrs.HWT = '998';
3092-
}
3093-
30943102
// This is a catch all and assigns "Commerce" as the function
30953103
// Exceptions to this are in the rules list
30963104
if (!attrs.FFN)
@@ -3295,7 +3303,15 @@ mgcp = {
32953303
// Most of these rules are to account for differences between MGCP & TDS/NFDD
32963304
// If we don't change it here, hoot tries to output the wrong FCODE
32973305
var rulesList = [
3306+
["t.building == 'sports_centre'","a.F_CODE = 'AL015'; a.FFN = '912'"],
3307+
["t.building == 'yes' && t.amenity == 'prison'","a.F_CODE = 'AL015'"],
3308+
["t.building == 'yes' && t.amenity == 'clinic'","a.F_CODE = 'AL015'"],
3309+
["t.building == 'yes' && t.amenity == 'dentist'","a.F_CODE = 'AL015'"],
3310+
["t.building == 'yes' && t.amenity == 'doctors'","a.F_CODE = 'AL015'; a.FFN = '860'"],
3311+
["t.club == 'sailing'","a.F_CODE = 'AL015'; a.FFN = '955'"],
3312+
["t.club == 'sport' && t.sport == 'sailing'","a.F_CODE = 'AL015'; a.FFN = '955'"],
32983313
["t.control_tower == 'yes'","a.F_CODE = 'AL241'"],
3314+
["t.government == 'administrative' && t.office == 'government'","a.FFN = '810'; delete a.HWT"],
32993315
["t.sport == 'tennis'","a.F_CODE = 'AK040'"],
33003316
["t.natural == 'tree'","a.F_CODE = 'EC030'"],
33013317
["t.amenity == 'ferry_terminal'","a.F_CODE = 'AQ125'; a.FFN = '7'"],

0 commit comments

Comments
 (0)