Skip to content

Commit c252ce1

Browse files
MGCP and some TDS translation fixes (#5808)
* some translation updates * a couple more translation fixes --------- Co-authored-by: Tim OLeary <[email protected]>
1 parent afc67af commit c252ce1

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed

translations/mgcp.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1377,6 +1377,11 @@ mgcp = {
13771377
tags.natural = 'wetland';
13781378
tags.intermittent = 'yes';
13791379
break;
1380+
case 'BI050':
1381+
tags.man_made = 'tower';
1382+
tags['tower:type'] = 'intake';
1383+
delete tags.tower;
1384+
break;
13801385
case 'BJ040': // Ice cliff
13811386
tags.natural = 'cliff';
13821387
tags.surface = 'ice';
@@ -1903,6 +1908,7 @@ mgcp = {
19031908
["t.public_transport == 'station'", "a.F_CODE = 'AL010'; a.FFN = '480'"],
19041909
["t.tourism == 'hotel'", "a.F_CODE = 'AL010'; a.FFN = '550'"],
19051910
["t.landuse == 'basin' && t.basin == 'settling'","a.F_CODE = 'AC030'"],
1911+
["t.landuse == 'basin' && t.basin == 'aeration'","a.F_CODE = 'BH040'"],
19061912
["t.leisure == 'garden' || t.tourism == 'zoo'", "a.F_CODE = 'AL010'; a.FFN = '907'"],
19071913
["t.leisure == 'sports_centre'", "a.F_CODE = 'AL010'; a.FFN = '912'"],
19081914
["t.natural == 'cliff' && t.surface == 'ice'", "a.F_CODE = 'BJ040'"],
@@ -1913,7 +1919,10 @@ mgcp = {
19131919
["t.railway == 'rail' && t.service == 'spur'", "a.F_CODE = 'AN050', a.RSA = '1'"],
19141920
["t.railway == 'rail' && t.service == 'siding'", "a.F_CODE = 'AN050', a.RSA = '2'"],
19151921
["t.railway == 'light_rail'", "a.F_CODE = 'AN010', a.RRC = '2'"],
1916-
["t.wall == 'seawall' && t.barrier == 'wall'", "a.F_CODE = 'BB230'"]
1922+
["t.wall == 'seawall' && t.barrier == 'wall'", "a.F_CODE = 'BB230'"],
1923+
["t.aeroway == 'aerodrome' && t['aerodrome:type'] == 'seaplane'", "a.F_CODE = 'GB065'"],
1924+
["(t['seamark:type'] == 'gate' && t['seamark:gate:category'] == 'flood_barrage') || t.man_made == 'basin_gate'", "a.F_CODE = 'BI041'"],
1925+
["t.man_made == 'tower' && t['tower:type'] == 'intake'", "a.F_CODE = 'BI050'"]
19171926
];
19181927

19191928
mgcp.mgcpPreRules = translate.buildComplexRules(rulesList);

translations/mgcp_rules.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,15 @@ mgcp.rules = {
8080
['F_CODE','BH060','water:race','flume'], // Flume - NFDD BH065
8181
['F_CODE','BH080','water','lake'], // Lake - NFDD BH082
8282
['F_CODE','BH130','water','reservoir'], // Reservoir - NFDD BH082
83-
['F_CODE','BI041','man_made','basin_gate'], // Water Gate - NFDD BI045
83+
['F_CODE','BI041','waterway','floodgate'], // Water Gate - NFDD BI045
8484
['F_CODE','CA035','geological','water_elevation'], // Inland Water Elevation
8585
['F_CODE','DB160','geological','out_crop'],
8686
['F_CODE','DB200','natural','gully'], // Gully - FCODE Retired
8787
['F_CODE','EC030','landuse','forest'], // Wood - NFDD EC015
8888
['F_CODE','ED030','wetland','mangrove'], // Mangrove Swamp - NFDD ED020
8989
['F_CODE','FA090','man_made','geophysical_prospecting_grid'], // Geophysical Prospecting Grid - No replacement code
9090
['F_CODE','GA034','airmark','beacon'], // Aeronautical Radio Navigation Service - TDS GA033
91+
['F_CODE','GB065','seamark:type','seaplane_landing_area'],
9192
['F_CODE','GB220','aeroway','obstacle'], // Aeronautical Obstacle - No replacement code
9293
['F_CODE','GB485','aeroway','navigationaid'], // Approach Lighting System - Not in TDS
9394
['F_CODE','AI030','amenity','refugee_site'],

translations/tds71.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1648,6 +1648,7 @@ tds71 = {
16481648
// ['t.amenity == "marketplace" && !(t.building)','t.facility = "yes"'],
16491649
['t.barrier == "tank_trap" && t.tank_trap == "dragons_teeth"','t.barrier = "dragons_teeth"; delete t.tank_trap'],
16501650
['t.boundary == "hazard" && t.hazard','delete t.boundary'],
1651+
['t.building == "ship"','delete t.building'], // TDS does not define floating buildings
16511652
['t.communication == "line"','t["cable:type"] = "communication"'],
16521653
['t.content && !(t.product)','t.product = t.content; delete t.content'],
16531654
['t.control_tower && t.man_made == "tower"','delete t.man_made'],
@@ -2865,6 +2866,15 @@ tds71 = {
28652866
if (!attrs.WCC) attrs.WCC = '7'; // Normal Channel
28662867
if (!attrs.TID) attrs.TID = '1000'; // Not tidal
28672868
break;
2869+
2870+
case 'AL013':
2871+
if (tags.building == 'apartments')
2872+
{
2873+
attrs.FFN = '550';
2874+
attrs.FFN2 = '549';
2875+
attrs.FFN3 = '563';
2876+
}
2877+
break;
28682878
} // End switch F_CODE
28692879

28702880
// Fix HGT and LMC to keep GAIT happy

0 commit comments

Comments
 (0)