adiwg-mdtranslator 2.13.3 → 2.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -3
- data/CHANGELOG.md +11 -4
- data/Rakefile +14 -14
- data/adiwg-mdtranslator.gemspec +3 -3
- data/lib/adiwg/mdtranslator/internal/internal_metadata_obj.rb +14 -14
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/gridSystems/grid_equalArcSecond.rb +69 -0
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/gridSystems/grid_other.rb +42 -0
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/gridSystems/grid_statePlane.rb +87 -0
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/gridSystems/grid_ups.rb +58 -0
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/gridSystems/grid_utm.rb +58 -0
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/mapProjections/projection_albers.rb +7 -7
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/mapProjections/projection_azimuthEquidistant.rb +6 -6
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/mapProjections/projection_common.rb +23 -22
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/mapProjections/projection_equidistantConic.rb +7 -7
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/mapProjections/projection_equirectangular.rb +6 -6
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/mapProjections/projection_generalVertical.rb +7 -7
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/mapProjections/projection_gnomonic.rb +6 -6
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/mapProjections/projection_lambertConic.rb +7 -7
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/mapProjections/projection_lambertEqualArea.rb +6 -6
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/mapProjections/projection_mercator.rb +7 -7
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/mapProjections/projection_millerCylinder.rb +5 -5
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/mapProjections/projection_modifiedAlaska.rb +4 -4
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/mapProjections/projection_obliqueMercator.rb +8 -8
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/mapProjections/projection_orthographic.rb +6 -6
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/mapProjections/projection_parameters.rb +20 -20
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/mapProjections/projection_polarStereo.rb +8 -8
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/mapProjections/projection_polyconic.rb +6 -6
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/mapProjections/projection_robinson.rb +5 -5
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/mapProjections/projection_sinusoidal.rb +5 -5
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/mapProjections/projection_spaceOblique.rb +6 -6
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/mapProjections/projection_stereographic.rb +6 -6
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/mapProjections/projection_transverseMercator.rb +7 -7
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/mapProjections/projection_vanDerGrinten.rb +5 -5
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_geodeticReference.rb +15 -7
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_geographicResolution.rb +6 -3
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_horizontalPlanar.rb +8 -6
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_horizontalReference.rb +1 -1
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/{module_mapLocalPlanar.rb → module_localPlanar.rb} +16 -8
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_localSystem.rb +23 -8
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_mapGridSystem.rb +21 -144
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_mapProjection.rb +48 -3
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/{module_mapCoordinateInfo.rb → module_planarCoordinateInfo.rb} +23 -11
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_taxonomy.rb +1 -1
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_verticalAltitude.rb +5 -2
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_verticalDepth.rb +6 -2
- data/lib/adiwg/mdtranslator/readers/mdJson/mdJson_reader_messages_eng.yml +20 -5
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_geodetic.rb +41 -8
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_localProjection.rb +57 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_obliqueLinePoint.rb +6 -6
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_projectionParameters.rb +36 -53
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_referenceSystemParameters.rb +1 -1
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_taxonomy.rb +39 -13
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_verticalDatum.rb +20 -8
- data/lib/adiwg/mdtranslator/version.rb +11 -1
- data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_geodeticReference.rb +8 -7
- data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_geographicResolution.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_localPlanar.rb +63 -0
- data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_localSystem.rb +30 -15
- data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_mapProjectionTags.rb +164 -109
- data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_planarGrid.rb +60 -61
- data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_planarInfo.rb +12 -12
- data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_planarMap.rb +87 -99
- data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_planarReference.rb +16 -41
- data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_spatialReference.rb +12 -11
- data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_taxonomy.rb +9 -4
- data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_taxonomySystem.rb +2 -3
- data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_verticalDatum.rb +8 -7
- data/lib/adiwg/mdtranslator/writers/fgdc/fgdc_writer_messages_eng.yml +13 -6
- data/lib/adiwg/mdtranslator/writers/html/sections/html_geodeticParameters.rb +16 -30
- data/lib/adiwg/mdtranslator/writers/html/sections/html_identifier.rb +8 -0
- data/lib/adiwg/mdtranslator/writers/html/sections/html_obliqueLinePoint.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/html/sections/html_projectionParameters.rb +68 -57
- data/lib/adiwg/mdtranslator/writers/html/sections/html_resourceInfo.rb +11 -6
- data/lib/adiwg/mdtranslator/writers/html/sections/html_spatialReference.rb +9 -0
- data/lib/adiwg/mdtranslator/writers/html/sections/html_taxonomy.rb +13 -12
- data/lib/adiwg/mdtranslator/writers/html/sections/html_usage.rb +3 -3
- data/lib/adiwg/mdtranslator/writers/html/sections/html_verticalDatumParameters.rb +9 -15
- data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_crs.rb +12 -15
- data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_dataIdentification.rb +9 -8
- data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_obliqueLinePoint.rb +6 -6
- data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_referenceSystem.rb +2 -1
- data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_taxonomy.rb +21 -10
- data/lib/adiwg/mdtranslator/writers/iso19115_2/iso19115_2_writer_messages_eng.yml +4 -0
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_geodeticParameters.rb +2 -3
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_identifier.rb +4 -2
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_localProjection.rb +31 -0
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_obliqueLinePoint.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_projectionParameters.rb +5 -9
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_taxonomy.rb +6 -5
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_verticalDatumParameters.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/sbJson/sbJson_writer.rb +10 -0
- data/lib/adiwg/mdtranslator/writers/sbJson/sections/sbJson_contact.rb +21 -0
- metadata +17 -10
- data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_planarLocal.rb +0 -42
@@ -2,6 +2,7 @@
|
|
2
2
|
# FGDC CSDGM writer output in XML
|
3
3
|
|
4
4
|
# History:
|
5
|
+
# Stan Smith 2018-10-09 refactor mdJson projection object
|
5
6
|
# Stan Smith 2018-03-21 original script
|
6
7
|
|
7
8
|
require_relative 'class_mapProjectionTags'
|
@@ -18,123 +19,121 @@ module ADIWG
|
|
18
19
|
@hResponseObj = hResponseObj
|
19
20
|
end
|
20
21
|
|
21
|
-
def writeXML(hProjection)
|
22
|
+
def writeXML(hProjection, inContext = nil)
|
22
23
|
|
23
24
|
# classes used
|
24
25
|
classTags = MapProjectionTags.new(@xml, @hResponseObj)
|
25
26
|
|
27
|
+
outContext = 'grid system'
|
28
|
+
outContext = inContext + ' ' + outContext unless inContext.nil?
|
29
|
+
|
26
30
|
# planar 4.1.2.2 (gridsys) - grid coordinate system
|
27
|
-
# <- hProjection.
|
28
|
-
|
31
|
+
# <- hProjection.gridIdentifier.identifier = oneOf ...
|
32
|
+
hGridId = hProjection[:gridIdentifier]
|
33
|
+
gridSystem = hGridId[:identifier]
|
34
|
+
gridName = nil
|
35
|
+
if hGridId.key?(:name)
|
36
|
+
gridName = hGridId[:name]
|
37
|
+
end
|
29
38
|
case gridSystem
|
30
39
|
when 'utm'
|
31
40
|
@xml.tag!('gridsys') do
|
32
|
-
if
|
33
|
-
|
34
|
-
else
|
35
|
-
classTags.write_gridName(hProjection[:gridSystemName])
|
36
|
-
end
|
41
|
+
gridName = 'Universal Transverse Mercator' if gridName.nil?
|
42
|
+
classTags.write_gridName(gridName)
|
37
43
|
@xml.tag!('utm') do
|
38
|
-
classTags.write_utmZone(hProjection)
|
44
|
+
classTags.write_utmZone(hProjection, outContext)
|
39
45
|
@xml.tag!('transmer') do
|
40
|
-
classTags.write_scaleFactorCM(hProjection)
|
41
|
-
classTags.write_longCM(hProjection)
|
42
|
-
classTags.write_latPO(hProjection)
|
43
|
-
classTags.write_falseNE(hProjection)
|
46
|
+
classTags.write_scaleFactorCM(hProjection, outContext)
|
47
|
+
classTags.write_longCM(hProjection, outContext)
|
48
|
+
classTags.write_latPO(hProjection, outContext)
|
49
|
+
classTags.write_falseNE(hProjection, outContext)
|
44
50
|
end
|
45
51
|
end
|
46
52
|
end
|
47
53
|
when 'ups'
|
48
54
|
@xml.tag!('gridsys') do
|
49
|
-
if
|
50
|
-
|
51
|
-
else
|
52
|
-
classTags.write_gridName(hProjection[:gridSystemName])
|
53
|
-
end
|
55
|
+
gridName = 'Universal Polar Stereographic' if gridName.nil?
|
56
|
+
classTags.write_gridName(gridName)
|
54
57
|
@xml.tag!('ups') do
|
55
|
-
classTags.write_upsZone(hProjection)
|
58
|
+
classTags.write_upsZone(hProjection, outContext)
|
56
59
|
@xml.tag!('polarst') do
|
57
|
-
classTags.write_straightFromPole(hProjection)
|
60
|
+
classTags.write_straightFromPole(hProjection, outContext)
|
58
61
|
if hProjection[:standardParallel1] || hProjection[:standardParallel2]
|
59
|
-
classTags.write_standParallel(hProjection)
|
62
|
+
classTags.write_standParallel(hProjection, outContext)
|
60
63
|
elsif hProjection[:scaleFactorAtProjectionOrigin]
|
61
|
-
classTags.write_scaleFactorPO(hProjection)
|
64
|
+
classTags.write_scaleFactorPO(hProjection, outContext)
|
62
65
|
end
|
63
|
-
classTags.write_falseNE(hProjection)
|
66
|
+
classTags.write_falseNE(hProjection, outContext)
|
64
67
|
end
|
65
68
|
end
|
66
69
|
end
|
67
70
|
when 'spcs'
|
68
71
|
@xml.tag!('gridsys') do
|
69
|
-
if
|
70
|
-
|
71
|
-
else
|
72
|
-
classTags.write_gridName(hProjection[:gridSystemName])
|
73
|
-
end
|
72
|
+
gridName = 'State Plane Coordinate System' if gridName.nil?
|
73
|
+
classTags.write_gridName(gridName)
|
74
74
|
@xml.tag!('spcs') do
|
75
|
-
classTags.write_spcsZone(hProjection)
|
75
|
+
classTags.write_spcsZone(hProjection, outContext)
|
76
76
|
if hProjection[:standardParallel1] || hProjection[:standardParallel2]
|
77
77
|
@xml.tag!('lambertc') do
|
78
|
-
classTags.write_standParallel(hProjection)
|
79
|
-
classTags.write_longCM(hProjection)
|
80
|
-
classTags.write_latPO(hProjection)
|
81
|
-
classTags.write_falseNE(hProjection)
|
78
|
+
classTags.write_standParallel(hProjection, outContext)
|
79
|
+
classTags.write_longCM(hProjection, outContext)
|
80
|
+
classTags.write_latPO(hProjection, outContext)
|
81
|
+
classTags.write_falseNE(hProjection, outContext)
|
82
82
|
end
|
83
83
|
elsif hProjection[:scaleFactorAtCenterLine]
|
84
84
|
@xml.tag!('obqmerc') do
|
85
|
-
classTags.write_scaleFactorCL(hProjection)
|
85
|
+
classTags.write_scaleFactorCL(hProjection, outContext)
|
86
86
|
if hProjection[:obliqueLinePoints].empty?
|
87
|
-
classTags.write_obliqueLineAzimuth(hProjection)
|
87
|
+
classTags.write_obliqueLineAzimuth(hProjection, outContext)
|
88
88
|
else
|
89
|
-
|
90
|
-
hProjection[:obliqueLinePoints].each do |hLinePt|
|
91
|
-
classTags.write_obliqueLinePoint(hLinePt)
|
92
|
-
end
|
93
|
-
end
|
89
|
+
classTags.write_obliqueLinePoint(hProjection, outContext)
|
94
90
|
end
|
95
|
-
classTags.write_latPO(hProjection)
|
96
|
-
classTags.write_falseNE(hProjection)
|
91
|
+
classTags.write_latPO(hProjection, outContext)
|
92
|
+
classTags.write_falseNE(hProjection, outContext)
|
97
93
|
end
|
98
94
|
elsif hProjection[:scaleFactorAtCentralMeridian]
|
99
95
|
@xml.tag!('transmer') do
|
100
|
-
classTags.write_scaleFactorCM(hProjection)
|
101
|
-
classTags.write_longCM(hProjection)
|
102
|
-
classTags.write_latPO(hProjection)
|
103
|
-
classTags.write_falseNE(hProjection)
|
96
|
+
classTags.write_scaleFactorCM(hProjection, outContext)
|
97
|
+
classTags.write_longCM(hProjection, outContext)
|
98
|
+
classTags.write_latPO(hProjection, outContext)
|
99
|
+
classTags.write_falseNE(hProjection, outContext)
|
104
100
|
end
|
105
101
|
else
|
106
102
|
@xml.tag!('polycon') do
|
107
|
-
classTags.write_longCM(hProjection)
|
108
|
-
classTags.write_latPO(hProjection)
|
109
|
-
classTags.write_falseNE(hProjection)
|
103
|
+
classTags.write_longCM(hProjection, outContext)
|
104
|
+
classTags.write_latPO(hProjection, outContext)
|
105
|
+
classTags.write_falseNE(hProjection, outContext)
|
110
106
|
end
|
111
107
|
end
|
112
108
|
end
|
113
109
|
end
|
114
110
|
when 'arcsys'
|
115
111
|
@xml.tag!('gridsys') do
|
116
|
-
if
|
117
|
-
|
118
|
-
else
|
119
|
-
classTags.write_gridName(hProjection[:gridSystemName])
|
120
|
-
end
|
112
|
+
gridName = 'Equal Arc-second Coordinate System' if gridName.nil?
|
113
|
+
classTags.write_gridName(gridName)
|
121
114
|
@xml.tag!('arcsys') do
|
122
|
-
classTags.write_arcZone(hProjection)
|
115
|
+
classTags.write_arcZone(hProjection, outContext)
|
123
116
|
if hProjection[:standardParallel1] || hProjection[:standardParallel2]
|
124
117
|
@xml.tag!('equirect') do
|
125
|
-
classTags.write_standParallel(hProjection)
|
126
|
-
classTags.write_longCM(hProjection)
|
127
|
-
classTags.write_falseNE(hProjection)
|
118
|
+
classTags.write_standParallel(hProjection, outContext)
|
119
|
+
classTags.write_longCM(hProjection, outContext)
|
120
|
+
classTags.write_falseNE(hProjection, outContext)
|
128
121
|
end
|
129
122
|
elsif hProjection[:latitudeOfProjectionOrigin]
|
130
123
|
@xml.tag!('azimequi') do
|
131
|
-
classTags.write_longCM(hProjection)
|
132
|
-
classTags.write_latPO(hProjection)
|
133
|
-
classTags.write_falseNE(hProjection)
|
124
|
+
classTags.write_longCM(hProjection, outContext)
|
125
|
+
classTags.write_latPO(hProjection, outContext)
|
126
|
+
classTags.write_falseNE(hProjection, outContext)
|
134
127
|
end
|
135
128
|
end
|
136
129
|
end
|
137
130
|
end
|
131
|
+
when 'other'
|
132
|
+
@xml.tag!('gridsys') do
|
133
|
+
gridName = 'Other Grid Coordinate System' if gridName.nil?
|
134
|
+
classTags.write_gridName(gridName)
|
135
|
+
classTags.write_otherGrid(hProjection, outContext)
|
136
|
+
end
|
138
137
|
end
|
139
138
|
|
140
139
|
end # writeXML
|
@@ -20,7 +20,7 @@ module ADIWG
|
|
20
20
|
@NameSpace = ADIWG::Mdtranslator::Writers::Fgdc
|
21
21
|
end
|
22
22
|
|
23
|
-
def writeXML(aRepTypes, aResolutions)
|
23
|
+
def writeXML(aRepTypes, aResolutions, inContext = nil)
|
24
24
|
|
25
25
|
# <- spatialReferencesTypes[] (encoding method) 4.1.2.4.1
|
26
26
|
# <- spatialResolution[].coordinateResolution (coordinate representation) 4.1.2.4.2
|
@@ -45,7 +45,7 @@ module ADIWG
|
|
45
45
|
@xml.tag!('plance', aRepTypes[0])
|
46
46
|
end
|
47
47
|
if aRepTypes.empty?
|
48
|
-
@NameSpace.issueWarning(260, 'plance')
|
48
|
+
@NameSpace.issueWarning(260, 'plance', inContext)
|
49
49
|
end
|
50
50
|
|
51
51
|
# <- spatialResolutions[] look for coordinateResolution or bearingDistanceResolution
|
@@ -62,7 +62,7 @@ module ADIWG
|
|
62
62
|
@xml.tag!('absres', hCoordRes[:abscissaResolutionX].to_f)
|
63
63
|
end
|
64
64
|
if hCoordRes[:abscissaResolutionX].nil?
|
65
|
-
@NameSpace.issueWarning(261, 'absres')
|
65
|
+
@NameSpace.issueWarning(261, 'absres', inContext)
|
66
66
|
end
|
67
67
|
|
68
68
|
# coordinate information 4.1.2.4.2.2 (ordres) - ordinate resolution (required)
|
@@ -70,7 +70,7 @@ module ADIWG
|
|
70
70
|
@xml.tag!('ordres', hCoordRes[:ordinateResolutionY].to_f)
|
71
71
|
end
|
72
72
|
if hCoordRes[:ordinateResolutionY].nil?
|
73
|
-
@NameSpace.issueWarning(262, 'ordres')
|
73
|
+
@NameSpace.issueWarning(262, 'ordres', inContext)
|
74
74
|
end
|
75
75
|
|
76
76
|
# coordinate information 4.1.2.4.4 (plandu) - distance unit of measure (required)
|
@@ -78,7 +78,7 @@ module ADIWG
|
|
78
78
|
unitOfMeasure = hCoordRes[:unitOfMeasure]
|
79
79
|
end
|
80
80
|
if hCoordRes[:unitOfMeasure].nil?
|
81
|
-
@NameSpace.issueWarning(263, 'plandu')
|
81
|
+
@NameSpace.issueWarning(263, 'plandu', inContext)
|
82
82
|
end
|
83
83
|
|
84
84
|
end
|
@@ -96,7 +96,7 @@ module ADIWG
|
|
96
96
|
@xml.tag!('distres', hBearRes[:distanceResolution].to_f)
|
97
97
|
end
|
98
98
|
if hBearRes[:distanceResolution].nil?
|
99
|
-
@NameSpace.issueWarning(264, 'distres')
|
99
|
+
@NameSpace.issueWarning(264, 'distres', inContext)
|
100
100
|
end
|
101
101
|
|
102
102
|
# coordinate information 4.1.2.4.3.2 (bearres) - bearing resolution (required)
|
@@ -104,7 +104,7 @@ module ADIWG
|
|
104
104
|
@xml.tag!('bearres', hBearRes[:bearingResolution])
|
105
105
|
end
|
106
106
|
if hBearRes[:bearingResolution].nil?
|
107
|
-
@NameSpace.issueWarning(265, 'bearres')
|
107
|
+
@NameSpace.issueWarning(265, 'bearres', inContext)
|
108
108
|
end
|
109
109
|
|
110
110
|
# coordinate information 4.1.2.4.3.3 (bearunit) - bearing units of measure (required)
|
@@ -112,7 +112,7 @@ module ADIWG
|
|
112
112
|
@xml.tag!('bearunit', hBearRes[:bearingUnitOfMeasure])
|
113
113
|
end
|
114
114
|
if hBearRes[:bearingUnitOfMeasure].nil?
|
115
|
-
@NameSpace.issueWarning(266, 'bearunit')
|
115
|
+
@NameSpace.issueWarning(266, 'bearunit', inContext)
|
116
116
|
end
|
117
117
|
|
118
118
|
# coordinate information 4.1.2.4.3.4 (bearrefd) - bearing units of measure (required)
|
@@ -120,7 +120,7 @@ module ADIWG
|
|
120
120
|
@xml.tag!('bearrefd', hBearRes[:bearingReferenceDirection])
|
121
121
|
end
|
122
122
|
if hBearRes[:bearingReferenceDirection].nil?
|
123
|
-
@NameSpace.issueWarning(267, 'bearrefd')
|
123
|
+
@NameSpace.issueWarning(267, 'bearrefd', inContext)
|
124
124
|
end
|
125
125
|
|
126
126
|
# coordinate information 4.1.2.4.3.5 (bearrefm) - bearing reference meridian (required)
|
@@ -128,7 +128,7 @@ module ADIWG
|
|
128
128
|
@xml.tag!('bearrefm', hBearRes[:bearingReferenceMeridian])
|
129
129
|
end
|
130
130
|
if hBearRes[:bearingReferenceMeridian].nil?
|
131
|
-
@NameSpace.issueWarning(268, 'bearrefm')
|
131
|
+
@NameSpace.issueWarning(268, 'bearrefm',inContext)
|
132
132
|
end
|
133
133
|
|
134
134
|
# coordinate information 4.1.2.4.4 (plandu) - distance unit of measure (required)
|
@@ -136,7 +136,7 @@ module ADIWG
|
|
136
136
|
unitOfMeasure = hBearRes[:distanceUnitOfMeasure]
|
137
137
|
end
|
138
138
|
if hBearRes[:distanceUnitOfMeasure].nil?
|
139
|
-
@NameSpace.issueWarning(269, 'plandu')
|
139
|
+
@NameSpace.issueWarning(269, 'plandu', inContext)
|
140
140
|
end
|
141
141
|
|
142
142
|
end
|
@@ -156,7 +156,7 @@ module ADIWG
|
|
156
156
|
|
157
157
|
# error message
|
158
158
|
unless haveCInfo
|
159
|
-
@NameSpace.issueWarning(270, nil)
|
159
|
+
@NameSpace.issueWarning(270, nil, inContext)
|
160
160
|
end
|
161
161
|
|
162
162
|
end # writeXML
|