15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# File 'lib/adiwg/mdtranslator/readers/mdJson/modules/module_obliqueLinePoint.rb', line 15
def self.unpack(hLinePt, responseObj, inContext = nil)
@MessagePath = ADIWG::Mdtranslator::Readers::MdJson::MdJson
if hLinePt.empty?
@MessagePath.issueWarning(590, responseObj, inContext)
return nil
end
intMetadataClass = InternalMetadata.new
intLinePoint = intMetadataClass.newObliqueLinePoint
if hLinePt.has_key?('obliqueLineLatitude')
intLinePoint[:obliqueLineLatitude] = hLinePt['obliqueLineLatitude']
end
if intLinePoint[:obliqueLineLatitude].nil? || intLinePoint[:obliqueLineLatitude] == ''
@MessagePath.issueError(591, responseObj, inContext)
end
if hLinePt.has_key?('obliqueLineLongitude')
intLinePoint[:obliqueLineLongitude] = hLinePt['obliqueLineLongitude']
end
if intLinePoint[:obliqueLineLongitude].nil? || intLinePoint[:obliqueLineLongitude] == ''
@MessagePath.issueError(592, responseObj, inContext)
end
return intLinePoint
end
|