aixm 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/CHANGELOG.md +11 -0
- data/lib/aixm/component/geometry.rb +4 -2
- data/lib/aixm/component/geometry/arc.rb +1 -1
- data/lib/aixm/component/geometry/border.rb +1 -1
- data/lib/aixm/component/geometry/circle.rb +1 -1
- data/lib/aixm/component/geometry/point.rb +1 -1
- data/lib/aixm/component/layer.rb +6 -2
- data/lib/aixm/component/vertical_limits.rb +17 -14
- data/lib/aixm/constants.rb +1 -1
- data/lib/aixm/feature/address.rb +1 -1
- data/lib/aixm/feature/airspace.rb +1 -3
- data/lib/aixm/feature/obstacle.rb +89 -71
- data/lib/aixm/feature/obstacle_group.rb +71 -30
- data/lib/aixm/refinements.rb +15 -0
- data/lib/aixm/version.rb +1 -1
- data/lib/aixm/xy.rb +5 -0
- data/schemas/ofmx/0/OFMX-DataTypes.xsd +3 -1
- data/schemas/ofmx/0/OFMX-Features.xsd +79 -34
- data/schemas/ofmx/0/OFMX-Snapshot.xsd +1 -0
- data/spec/factory.rb +7 -9
- data/spec/lib/aixm/component/vertical_limits_spec.rb +8 -8
- data/spec/lib/aixm/document_spec.rb +81 -28
- data/spec/lib/aixm/feature/obstacle_group_spec.rb +87 -45
- data/spec/lib/aixm/feature/obstacle_spec.rb +34 -40
- data/spec/lib/aixm/refinements_spec.rb +16 -0
- data/spec/lib/aixm/xy_spec.rb +10 -0
- metadata +2 -2
@@ -11,12 +11,6 @@ describe AIXM::Component::VerticalLimits do
|
|
11
11
|
end
|
12
12
|
end
|
13
13
|
|
14
|
-
describe :lower_z= do
|
15
|
-
it "fails on invalid values" do
|
16
|
-
[nil, :foobar, 123].wont_be_written_to subject, :lower_z
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
14
|
describe :max_z= do
|
21
15
|
it "fails on invalid values" do
|
22
16
|
[:foobar, 123].wont_be_written_to subject, :max_z
|
@@ -27,6 +21,12 @@ describe AIXM::Component::VerticalLimits do
|
|
27
21
|
end
|
28
22
|
end
|
29
23
|
|
24
|
+
describe :lower_z= do
|
25
|
+
it "fails on invalid values" do
|
26
|
+
[nil, :foobar, 123].wont_be_written_to subject, :lower_z
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
30
|
describe :min_z= do
|
31
31
|
it "fails on invalid values" do
|
32
32
|
[:foobar, 123].wont_be_written_to subject, :min_z
|
@@ -57,8 +57,8 @@ describe AIXM::Component::VerticalLimits do
|
|
57
57
|
it "builds correct AIXM with additional max_z" do
|
58
58
|
subject = AIXM.vertical_limits(
|
59
59
|
upper_z: AIXM.z(65, :qne),
|
60
|
-
|
61
|
-
|
60
|
+
max_z: AIXM.z(6000, :qnh),
|
61
|
+
lower_z: AIXM.z(1000, :qfe)
|
62
62
|
)
|
63
63
|
AIXM.aixm!
|
64
64
|
subject.to_xml.must_equal <<~END
|
@@ -1339,122 +1339,175 @@ describe AIXM::Document do
|
|
1339
1339
|
</Ttt>
|
1340
1340
|
<txtRmk>vortac navaid</txtRmk>
|
1341
1341
|
</Tcn>
|
1342
|
+
<!-- Obstacle group: EIFFEL TOWER -->
|
1343
|
+
<Ogr>
|
1344
|
+
<OgrUid>
|
1345
|
+
<txtName>EIFFEL TOWER</txtName>
|
1346
|
+
<geoLat>48.85825000N</geoLat>
|
1347
|
+
<geoLong>002.29458889E</geoLong>
|
1348
|
+
</OgrUid>
|
1349
|
+
<codeDatum>WGE</codeDatum>
|
1350
|
+
<valGeoAccuracy>2</valGeoAccuracy>
|
1351
|
+
<uomGeoAccuracy>M</uomGeoAccuracy>
|
1352
|
+
<valElevAccuracy>3</valElevAccuracy>
|
1353
|
+
<uomElevAccuracy>FT</uomElevAccuracy>
|
1354
|
+
</Ogr>
|
1342
1355
|
<!-- Obstacle: [tower] 48.85825000N 002.29458889E EIFFEL TOWER -->
|
1343
1356
|
<Obs>
|
1344
1357
|
<ObsUid>
|
1358
|
+
<OgrUid>
|
1359
|
+
<txtName>EIFFEL TOWER</txtName>
|
1360
|
+
<geoLat>48.85825000N</geoLat>
|
1361
|
+
<geoLong>002.29458889E</geoLong>
|
1362
|
+
</OgrUid>
|
1345
1363
|
<geoLat>48.85825000N</geoLat>
|
1346
1364
|
<geoLong>002.29458889E</geoLong>
|
1347
1365
|
</ObsUid>
|
1348
1366
|
<txtName>EIFFEL TOWER</txtName>
|
1349
1367
|
<codeType>TOWER</codeType>
|
1368
|
+
<codeGroup>N</codeGroup>
|
1350
1369
|
<codeLgt>Y</codeLgt>
|
1351
1370
|
<txtDescrLgt>red strobes</txtDescrLgt>
|
1352
1371
|
<codeDatum>WGE</codeDatum>
|
1353
|
-
<valGeoAccuracy>2</valGeoAccuracy>
|
1354
|
-
<uomGeoAccuracy>M</uomGeoAccuracy>
|
1355
1372
|
<valElev>1187</valElev>
|
1356
|
-
<valElevAccuracy>3</valElevAccuracy>
|
1357
1373
|
<valHgt>1063</valHgt>
|
1358
|
-
<codeHgtAccuracy>Y</codeHgtAccuracy>
|
1359
1374
|
<uomDistVer>FT</uomDistVer>
|
1375
|
+
<codeHgtAccuracy>Y</codeHgtAccuracy>
|
1360
1376
|
<valRadius>88</valRadius>
|
1361
1377
|
<uomRadius>M</uomRadius>
|
1362
1378
|
<datetimeValidWef>2018-01-01T12:00:00+01:00</datetimeValidWef>
|
1363
1379
|
<datetimeValidTil>2019-01-01T12:00:00+01:00</datetimeValidTil>
|
1364
1380
|
<txtRmk>Temporary light installations (white strobes, gyro light etc)</txtRmk>
|
1365
1381
|
</Obs>
|
1382
|
+
<!-- Obstacle group: MIRMANDE EOLIENNES -->
|
1383
|
+
<Ogr>
|
1384
|
+
<OgrUid>
|
1385
|
+
<txtName>MIRMANDE EOLIENNES</txtName>
|
1386
|
+
<geoLat>44.67501389N</geoLat>
|
1387
|
+
<geoLong>004.87256667E</geoLong>
|
1388
|
+
</OgrUid>
|
1389
|
+
<codeDatum>WGE</codeDatum>
|
1390
|
+
<valGeoAccuracy>50</valGeoAccuracy>
|
1391
|
+
<uomGeoAccuracy>M</uomGeoAccuracy>
|
1392
|
+
<valElevAccuracy>33</valElevAccuracy>
|
1393
|
+
<uomElevAccuracy>FT</uomElevAccuracy>
|
1394
|
+
<txtRmk>Extension planned</txtRmk>
|
1395
|
+
</Ogr>
|
1366
1396
|
<!-- Obstacle: [wind_turbine] 44.67501389N 004.87256667E LA TEISSONIERE 1 -->
|
1367
1397
|
<Obs>
|
1368
1398
|
<ObsUid>
|
1399
|
+
<OgrUid>
|
1400
|
+
<txtName>MIRMANDE EOLIENNES</txtName>
|
1401
|
+
<geoLat>44.67501389N</geoLat>
|
1402
|
+
<geoLong>004.87256667E</geoLong>
|
1403
|
+
</OgrUid>
|
1369
1404
|
<geoLat>44.67501389N</geoLat>
|
1370
1405
|
<geoLong>004.87256667E</geoLong>
|
1371
1406
|
</ObsUid>
|
1372
1407
|
<txtName>LA TEISSONIERE 1</txtName>
|
1373
1408
|
<codeType>WINDTURBINE</codeType>
|
1409
|
+
<codeGroup>Y</codeGroup>
|
1374
1410
|
<codeLgt>N</codeLgt>
|
1375
1411
|
<codeMarking>N</codeMarking>
|
1376
1412
|
<codeDatum>WGE</codeDatum>
|
1377
|
-
<valGeoAccuracy>50</valGeoAccuracy>
|
1378
|
-
<uomGeoAccuracy>M</uomGeoAccuracy>
|
1379
1413
|
<valElev>1764</valElev>
|
1380
|
-
<valElevAccuracy>33</valElevAccuracy>
|
1381
1414
|
<valHgt>262</valHgt>
|
1382
|
-
<codeHgtAccuracy>N</codeHgtAccuracy>
|
1383
1415
|
<uomDistVer>FT</uomDistVer>
|
1416
|
+
<codeHgtAccuracy>N</codeHgtAccuracy>
|
1384
1417
|
<valRadius>80</valRadius>
|
1385
1418
|
<uomRadius>M</uomRadius>
|
1386
|
-
<codeGroupId>462c8d00-981a-0995-09aa-4ba39161bb41</codeGroupId>
|
1387
|
-
<txtGroupName>MIRMANDE EOLIENNES</txtGroupName>
|
1388
1419
|
</Obs>
|
1389
1420
|
<!-- Obstacle: [wind_turbine] 44.67946667N 004.87381111E LA TEISSONIERE 2 -->
|
1390
1421
|
<Obs>
|
1391
1422
|
<ObsUid>
|
1423
|
+
<OgrUid>
|
1424
|
+
<txtName>MIRMANDE EOLIENNES</txtName>
|
1425
|
+
<geoLat>44.67501389N</geoLat>
|
1426
|
+
<geoLong>004.87256667E</geoLong>
|
1427
|
+
</OgrUid>
|
1392
1428
|
<geoLat>44.67946667N</geoLat>
|
1393
1429
|
<geoLong>004.87381111E</geoLong>
|
1394
1430
|
</ObsUid>
|
1395
1431
|
<txtName>LA TEISSONIERE 2</txtName>
|
1396
1432
|
<codeType>WINDTURBINE</codeType>
|
1433
|
+
<codeGroup>Y</codeGroup>
|
1397
1434
|
<codeLgt>N</codeLgt>
|
1398
1435
|
<codeMarking>N</codeMarking>
|
1399
1436
|
<codeDatum>WGE</codeDatum>
|
1400
|
-
<valGeoAccuracy>50</valGeoAccuracy>
|
1401
|
-
<uomGeoAccuracy>M</uomGeoAccuracy>
|
1402
1437
|
<valElev>1738</valElev>
|
1403
|
-
<valElevAccuracy>33</valElevAccuracy>
|
1404
1438
|
<valHgt>262</valHgt>
|
1405
|
-
<codeHgtAccuracy>N</codeHgtAccuracy>
|
1406
1439
|
<uomDistVer>FT</uomDistVer>
|
1440
|
+
<codeHgtAccuracy>N</codeHgtAccuracy>
|
1407
1441
|
<valRadius>80</valRadius>
|
1408
1442
|
<uomRadius>M</uomRadius>
|
1409
|
-
<codeGroupId>462c8d00-981a-0995-09aa-4ba39161bb41</codeGroupId>
|
1410
|
-
<txtGroupName>MIRMANDE EOLIENNES</txtGroupName>
|
1411
1443
|
</Obs>
|
1444
|
+
<!-- Obstacle group: DROITWICH LONGWAVE ANTENNA -->
|
1445
|
+
<Ogr>
|
1446
|
+
<OgrUid>
|
1447
|
+
<txtName>DROITWICH LONGWAVE ANTENNA</txtName>
|
1448
|
+
<geoLat>52.29639722N</geoLat>
|
1449
|
+
<geoLong>002.10675278W</geoLong>
|
1450
|
+
</OgrUid>
|
1451
|
+
<codeDatum>WGE</codeDatum>
|
1452
|
+
<valGeoAccuracy>0</valGeoAccuracy>
|
1453
|
+
<uomGeoAccuracy>M</uomGeoAccuracy>
|
1454
|
+
<valElevAccuracy>0</valElevAccuracy>
|
1455
|
+
<uomElevAccuracy>FT</uomElevAccuracy>
|
1456
|
+
<txtRmk>Destruction planned</txtRmk>
|
1457
|
+
</Ogr>
|
1412
1458
|
<!-- Obstacle: [mast] 52.29639722N 002.10675278W DROITWICH LW NORTH -->
|
1413
1459
|
<Obs>
|
1414
1460
|
<ObsUid>
|
1461
|
+
<OgrUid>
|
1462
|
+
<txtName>DROITWICH LONGWAVE ANTENNA</txtName>
|
1463
|
+
<geoLat>52.29639722N</geoLat>
|
1464
|
+
<geoLong>002.10675278W</geoLong>
|
1465
|
+
</OgrUid>
|
1415
1466
|
<geoLat>52.29639722N</geoLat>
|
1416
1467
|
<geoLong>002.10675278W</geoLong>
|
1417
1468
|
</ObsUid>
|
1418
1469
|
<txtName>DROITWICH LW NORTH</txtName>
|
1419
1470
|
<codeType>MAST</codeType>
|
1471
|
+
<codeGroup>Y</codeGroup>
|
1420
1472
|
<codeLgt>N</codeLgt>
|
1421
1473
|
<codeMarking>N</codeMarking>
|
1422
1474
|
<codeDatum>WGE</codeDatum>
|
1423
|
-
<valGeoAccuracy>0</valGeoAccuracy>
|
1424
|
-
<uomGeoAccuracy>M</uomGeoAccuracy>
|
1425
1475
|
<valElev>848</valElev>
|
1426
|
-
<valElevAccuracy>0</valElevAccuracy>
|
1427
1476
|
<valHgt>700</valHgt>
|
1428
|
-
<codeHgtAccuracy>Y</codeHgtAccuracy>
|
1429
1477
|
<uomDistVer>FT</uomDistVer>
|
1478
|
+
<codeHgtAccuracy>Y</codeHgtAccuracy>
|
1430
1479
|
<valRadius>200</valRadius>
|
1431
1480
|
<uomRadius>M</uomRadius>
|
1432
|
-
<codeGroupId>18e65683-798d-0941-8de4-cb65a6427035</codeGroupId>
|
1433
|
-
<txtGroupName>DROITWICH LONGWAVE ANTENNA</txtGroupName>
|
1434
1481
|
</Obs>
|
1435
1482
|
<!-- Obstacle: [mast] 52.29457778N 002.10568611W DROITWICH LW NORTH -->
|
1436
1483
|
<Obs>
|
1437
1484
|
<ObsUid>
|
1485
|
+
<OgrUid>
|
1486
|
+
<txtName>DROITWICH LONGWAVE ANTENNA</txtName>
|
1487
|
+
<geoLat>52.29639722N</geoLat>
|
1488
|
+
<geoLong>002.10675278W</geoLong>
|
1489
|
+
</OgrUid>
|
1438
1490
|
<geoLat>52.29457778N</geoLat>
|
1439
1491
|
<geoLong>002.10568611W</geoLong>
|
1440
1492
|
</ObsUid>
|
1441
1493
|
<txtName>DROITWICH LW NORTH</txtName>
|
1442
1494
|
<codeType>MAST</codeType>
|
1495
|
+
<codeGroup>Y</codeGroup>
|
1443
1496
|
<codeLgt>N</codeLgt>
|
1444
1497
|
<codeMarking>N</codeMarking>
|
1445
1498
|
<codeDatum>WGE</codeDatum>
|
1446
|
-
<valGeoAccuracy>0</valGeoAccuracy>
|
1447
|
-
<uomGeoAccuracy>M</uomGeoAccuracy>
|
1448
1499
|
<valElev>848</valElev>
|
1449
|
-
<valElevAccuracy>0</valElevAccuracy>
|
1450
1500
|
<valHgt>700</valHgt>
|
1451
|
-
<codeHgtAccuracy>Y</codeHgtAccuracy>
|
1452
1501
|
<uomDistVer>FT</uomDistVer>
|
1502
|
+
<codeHgtAccuracy>Y</codeHgtAccuracy>
|
1453
1503
|
<valRadius>200</valRadius>
|
1454
1504
|
<uomRadius>M</uomRadius>
|
1455
|
-
<codeGroupId>18e65683-798d-0941-8de4-cb65a6427035</codeGroupId>
|
1456
|
-
<txtGroupName>DROITWICH LONGWAVE ANTENNA</txtGroupName>
|
1457
1505
|
<ObsUidLink>
|
1506
|
+
<OgrUid>
|
1507
|
+
<txtName>DROITWICH LONGWAVE ANTENNA</txtName>
|
1508
|
+
<geoLat>52.29639722N</geoLat>
|
1509
|
+
<geoLong>002.10675278W</geoLong>
|
1510
|
+
</OgrUid>
|
1458
1511
|
<geoLat>52.29639722N</geoLat>
|
1459
1512
|
<geoLong>002.10675278W</geoLong>
|
1460
1513
|
</ObsUidLink>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require_relative '../../../spec_helper'
|
2
2
|
|
3
3
|
describe AIXM::Feature::ObstacleGroup do
|
4
|
-
describe "unlinked group" do
|
4
|
+
describe "unlinked obstacle group" do
|
5
5
|
subject do
|
6
6
|
AIXM.obstacle_group(name: "Mirmande éoliennes")
|
7
7
|
end
|
@@ -25,30 +25,35 @@ describe AIXM::Feature::ObstacleGroup do
|
|
25
25
|
end
|
26
26
|
end
|
27
27
|
|
28
|
-
describe :
|
29
|
-
it "
|
30
|
-
subject
|
31
|
-
|
32
|
-
|
33
|
-
|
28
|
+
describe :xy_accuracy= do
|
29
|
+
it "fails on invalid values" do
|
30
|
+
[:foobar, 123].wont_be_written_to subject, :xy_accuracy
|
31
|
+
end
|
32
|
+
|
33
|
+
it "accepts valid values" do
|
34
|
+
[nil, AIXM::Factory.d, AIXM.d(0, :m)].must_be_written_to subject, :xy_accuracy
|
34
35
|
end
|
35
36
|
end
|
36
37
|
|
37
|
-
describe :
|
38
|
-
|
39
|
-
|
38
|
+
describe :z_accuracy= do
|
39
|
+
it "fails on invalid values" do
|
40
|
+
[:foobar, 123].wont_be_written_to subject, :z_accuracy
|
40
41
|
end
|
41
42
|
|
42
|
-
it "
|
43
|
-
|
44
|
-
subject.name = 'Oggy'
|
45
|
-
subject.id.must_equal '939de24d-941b-d5a6-3437-df135ddb9906'
|
43
|
+
it "accepts valid values" do
|
44
|
+
[nil, AIXM::Factory.d, AIXM.d(0, :m)].must_be_written_to subject, :z_accuracy
|
46
45
|
end
|
46
|
+
end
|
47
47
|
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
48
|
+
describe :remarks= do
|
49
|
+
macro :remarks
|
50
|
+
end
|
51
|
+
|
52
|
+
describe :add_obstacle do
|
53
|
+
it "adds an obstacle to the obstacle group" do
|
54
|
+
subject.add_obstacle(AIXM::Factory.obstacle)
|
55
|
+
subject.obstacles.count.must_equal 1
|
56
|
+
subject.obstacles.first.obstacle_group.must_equal subject
|
52
57
|
end
|
53
58
|
end
|
54
59
|
|
@@ -102,64 +107,80 @@ describe AIXM::Feature::ObstacleGroup do
|
|
102
107
|
it "builds correct OFMX" do
|
103
108
|
AIXM.ofmx!
|
104
109
|
subject.to_xml.must_equal <<~END
|
110
|
+
<!-- Obstacle group: MIRMANDE EOLIENNES -->
|
111
|
+
<Ogr>
|
112
|
+
<OgrUid>
|
113
|
+
<txtName>MIRMANDE EOLIENNES</txtName>
|
114
|
+
<geoLat>44.67501389N</geoLat>
|
115
|
+
<geoLong>004.87256667E</geoLong>
|
116
|
+
</OgrUid>
|
117
|
+
<codeDatum>WGE</codeDatum>
|
118
|
+
<valGeoAccuracy>50</valGeoAccuracy>
|
119
|
+
<uomGeoAccuracy>M</uomGeoAccuracy>
|
120
|
+
<valElevAccuracy>33</valElevAccuracy>
|
121
|
+
<uomElevAccuracy>FT</uomElevAccuracy>
|
122
|
+
<txtRmk>Extension planned</txtRmk>
|
123
|
+
</Ogr>
|
105
124
|
<!-- Obstacle: [wind_turbine] 44.67501389N 004.87256667E LA TEISSONIERE 1 -->
|
106
125
|
<Obs>
|
107
126
|
<ObsUid>
|
127
|
+
<OgrUid>
|
128
|
+
<txtName>MIRMANDE EOLIENNES</txtName>
|
129
|
+
<geoLat>44.67501389N</geoLat>
|
130
|
+
<geoLong>004.87256667E</geoLong>
|
131
|
+
</OgrUid>
|
108
132
|
<geoLat>44.67501389N</geoLat>
|
109
133
|
<geoLong>004.87256667E</geoLong>
|
110
134
|
</ObsUid>
|
111
135
|
<txtName>LA TEISSONIERE 1</txtName>
|
112
136
|
<codeType>WINDTURBINE</codeType>
|
137
|
+
<codeGroup>Y</codeGroup>
|
113
138
|
<codeLgt>N</codeLgt>
|
114
139
|
<codeMarking>N</codeMarking>
|
115
140
|
<codeDatum>WGE</codeDatum>
|
116
|
-
<valGeoAccuracy>50</valGeoAccuracy>
|
117
|
-
<uomGeoAccuracy>M</uomGeoAccuracy>
|
118
141
|
<valElev>1764</valElev>
|
119
|
-
<valElevAccuracy>33</valElevAccuracy>
|
120
142
|
<valHgt>262</valHgt>
|
121
|
-
<codeHgtAccuracy>N</codeHgtAccuracy>
|
122
143
|
<uomDistVer>FT</uomDistVer>
|
144
|
+
<codeHgtAccuracy>N</codeHgtAccuracy>
|
123
145
|
<valRadius>80</valRadius>
|
124
146
|
<uomRadius>M</uomRadius>
|
125
|
-
<codeGroupId>462c8d00-981a-0995-09aa-4ba39161bb41</codeGroupId>
|
126
|
-
<txtGroupName>MIRMANDE EOLIENNES</txtGroupName>
|
127
147
|
</Obs>
|
128
148
|
<!-- Obstacle: [wind_turbine] 44.67946667N 004.87381111E LA TEISSONIERE 2 -->
|
129
149
|
<Obs>
|
130
150
|
<ObsUid>
|
151
|
+
<OgrUid>
|
152
|
+
<txtName>MIRMANDE EOLIENNES</txtName>
|
153
|
+
<geoLat>44.67501389N</geoLat>
|
154
|
+
<geoLong>004.87256667E</geoLong>
|
155
|
+
</OgrUid>
|
131
156
|
<geoLat>44.67946667N</geoLat>
|
132
157
|
<geoLong>004.87381111E</geoLong>
|
133
158
|
</ObsUid>
|
134
159
|
<txtName>LA TEISSONIERE 2</txtName>
|
135
160
|
<codeType>WINDTURBINE</codeType>
|
161
|
+
<codeGroup>Y</codeGroup>
|
136
162
|
<codeLgt>N</codeLgt>
|
137
163
|
<codeMarking>N</codeMarking>
|
138
164
|
<codeDatum>WGE</codeDatum>
|
139
|
-
<valGeoAccuracy>50</valGeoAccuracy>
|
140
|
-
<uomGeoAccuracy>M</uomGeoAccuracy>
|
141
165
|
<valElev>1738</valElev>
|
142
|
-
<valElevAccuracy>33</valElevAccuracy>
|
143
166
|
<valHgt>262</valHgt>
|
144
|
-
<codeHgtAccuracy>N</codeHgtAccuracy>
|
145
167
|
<uomDistVer>FT</uomDistVer>
|
168
|
+
<codeHgtAccuracy>N</codeHgtAccuracy>
|
146
169
|
<valRadius>80</valRadius>
|
147
170
|
<uomRadius>M</uomRadius>
|
148
|
-
<codeGroupId>462c8d00-981a-0995-09aa-4ba39161bb41</codeGroupId>
|
149
|
-
<txtGroupName>MIRMANDE EOLIENNES</txtGroupName>
|
150
171
|
</Obs>
|
151
172
|
END
|
152
173
|
end
|
153
174
|
end
|
154
175
|
end
|
155
176
|
|
156
|
-
describe "linked group" do
|
177
|
+
describe "linked obstacle group" do
|
157
178
|
subject do
|
158
179
|
AIXM.obstacle_group(name: "Mirmande éoliennes")
|
159
180
|
end
|
160
181
|
|
161
182
|
describe :add_obstacle do
|
162
|
-
it "adds an obstacle to the group and links it to previous" do
|
183
|
+
it "adds an obstacle to the obstacle group and links it to previous" do
|
163
184
|
subject.add_obstacle(AIXM::Factory.obstacle)
|
164
185
|
subject.add_obstacle(AIXM::Factory.obstacle, linked_to: :previous, link_type: :cable)
|
165
186
|
subject.obstacles.count.must_equal 2
|
@@ -167,7 +188,7 @@ describe AIXM::Feature::ObstacleGroup do
|
|
167
188
|
subject.obstacles.last.link_type.must_equal :cable
|
168
189
|
end
|
169
190
|
|
170
|
-
it "adds an obstacle to the group and links it to another obstacle" do
|
191
|
+
it "adds an obstacle to the obstacle group and links it to another obstacle" do
|
171
192
|
subject.add_obstacle(AIXM::Factory.obstacle)
|
172
193
|
subject.add_obstacle(AIXM::Factory.obstacle, linked_to: subject.obstacles.first, link_type: :solid)
|
173
194
|
subject.obstacles.count.must_equal 2
|
@@ -226,52 +247,73 @@ describe AIXM::Feature::ObstacleGroup do
|
|
226
247
|
it "builds correct OFMX" do
|
227
248
|
AIXM.ofmx!
|
228
249
|
subject.to_xml.must_equal <<~END
|
250
|
+
<!-- Obstacle group: DROITWICH LONGWAVE ANTENNA -->
|
251
|
+
<Ogr>
|
252
|
+
<OgrUid>
|
253
|
+
<txtName>DROITWICH LONGWAVE ANTENNA</txtName>
|
254
|
+
<geoLat>52.29639722N</geoLat>
|
255
|
+
<geoLong>002.10675278W</geoLong>
|
256
|
+
</OgrUid>
|
257
|
+
<codeDatum>WGE</codeDatum>
|
258
|
+
<valGeoAccuracy>0</valGeoAccuracy>
|
259
|
+
<uomGeoAccuracy>M</uomGeoAccuracy>
|
260
|
+
<valElevAccuracy>0</valElevAccuracy>
|
261
|
+
<uomElevAccuracy>FT</uomElevAccuracy>
|
262
|
+
<txtRmk>Destruction planned</txtRmk>
|
263
|
+
</Ogr>
|
229
264
|
<!-- Obstacle: [mast] 52.29639722N 002.10675278W DROITWICH LW NORTH -->
|
230
265
|
<Obs>
|
231
266
|
<ObsUid>
|
267
|
+
<OgrUid>
|
268
|
+
<txtName>DROITWICH LONGWAVE ANTENNA</txtName>
|
269
|
+
<geoLat>52.29639722N</geoLat>
|
270
|
+
<geoLong>002.10675278W</geoLong>
|
271
|
+
</OgrUid>
|
232
272
|
<geoLat>52.29639722N</geoLat>
|
233
273
|
<geoLong>002.10675278W</geoLong>
|
234
274
|
</ObsUid>
|
235
275
|
<txtName>DROITWICH LW NORTH</txtName>
|
236
276
|
<codeType>MAST</codeType>
|
277
|
+
<codeGroup>Y</codeGroup>
|
237
278
|
<codeLgt>N</codeLgt>
|
238
279
|
<codeMarking>N</codeMarking>
|
239
280
|
<codeDatum>WGE</codeDatum>
|
240
|
-
<valGeoAccuracy>0</valGeoAccuracy>
|
241
|
-
<uomGeoAccuracy>M</uomGeoAccuracy>
|
242
281
|
<valElev>848</valElev>
|
243
|
-
<valElevAccuracy>0</valElevAccuracy>
|
244
282
|
<valHgt>700</valHgt>
|
245
|
-
<codeHgtAccuracy>Y</codeHgtAccuracy>
|
246
283
|
<uomDistVer>FT</uomDistVer>
|
284
|
+
<codeHgtAccuracy>Y</codeHgtAccuracy>
|
247
285
|
<valRadius>200</valRadius>
|
248
286
|
<uomRadius>M</uomRadius>
|
249
|
-
<codeGroupId>18e65683-798d-0941-8de4-cb65a6427035</codeGroupId>
|
250
|
-
<txtGroupName>DROITWICH LONGWAVE ANTENNA</txtGroupName>
|
251
287
|
</Obs>
|
252
288
|
<!-- Obstacle: [mast] 52.29457778N 002.10568611W DROITWICH LW NORTH -->
|
253
289
|
<Obs>
|
254
290
|
<ObsUid>
|
291
|
+
<OgrUid>
|
292
|
+
<txtName>DROITWICH LONGWAVE ANTENNA</txtName>
|
293
|
+
<geoLat>52.29639722N</geoLat>
|
294
|
+
<geoLong>002.10675278W</geoLong>
|
295
|
+
</OgrUid>
|
255
296
|
<geoLat>52.29457778N</geoLat>
|
256
297
|
<geoLong>002.10568611W</geoLong>
|
257
298
|
</ObsUid>
|
258
299
|
<txtName>DROITWICH LW NORTH</txtName>
|
259
300
|
<codeType>MAST</codeType>
|
301
|
+
<codeGroup>Y</codeGroup>
|
260
302
|
<codeLgt>N</codeLgt>
|
261
303
|
<codeMarking>N</codeMarking>
|
262
304
|
<codeDatum>WGE</codeDatum>
|
263
|
-
<valGeoAccuracy>0</valGeoAccuracy>
|
264
|
-
<uomGeoAccuracy>M</uomGeoAccuracy>
|
265
305
|
<valElev>848</valElev>
|
266
|
-
<valElevAccuracy>0</valElevAccuracy>
|
267
306
|
<valHgt>700</valHgt>
|
268
|
-
<codeHgtAccuracy>Y</codeHgtAccuracy>
|
269
307
|
<uomDistVer>FT</uomDistVer>
|
308
|
+
<codeHgtAccuracy>Y</codeHgtAccuracy>
|
270
309
|
<valRadius>200</valRadius>
|
271
310
|
<uomRadius>M</uomRadius>
|
272
|
-
<codeGroupId>18e65683-798d-0941-8de4-cb65a6427035</codeGroupId>
|
273
|
-
<txtGroupName>DROITWICH LONGWAVE ANTENNA</txtGroupName>
|
274
311
|
<ObsUidLink>
|
312
|
+
<OgrUid>
|
313
|
+
<txtName>DROITWICH LONGWAVE ANTENNA</txtName>
|
314
|
+
<geoLat>52.29639722N</geoLat>
|
315
|
+
<geoLong>002.10675278W</geoLong>
|
316
|
+
</OgrUid>
|
275
317
|
<geoLat>52.29639722N</geoLat>
|
276
318
|
<geoLong>002.10675278W</geoLong>
|
277
319
|
</ObsUidLink>
|