10
11
12
13
14
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# File 'lib/adiwg/mdtranslator/readers/mdJson/modules/module_coverageResult.rb', line 10
def self.unpack(hResult, responseObj, inContext)
intMetadataClass = InternalMetadata.new
intResult = intMetadataClass.newCoverageResult
if hResult.has_key?('dateTime')
intResult[:dateTime] = hResult['dateTime']
end
if hResult.has_key?('scope')
intResult[:scope] = Scope.unpack(hResult['scope'], responseObj)
end
if hResult.has_key?('spatialRepresentationType')
intResult[:spatialRepresentationType] = hResult['spatialRepresentationType']
end
if hResult.has_key?('spatialRepresentation')
intResult[:spatialRepresentation] = SpatialRepresentation.unpack(hResult['spatialRepresentation'], responseObj)
end
if hResult.has_key?('resultContent')
intResult[:resultContent] = hResult['resultContent']
end
if hResult.has_key?('resourceFormat')
intResult[:resourceFormat] = hResult['resourceFormat']
end
resultFile
if hResult.has_key?('resultFile')
intResult[:resultFile] = hResult['resultFile']
end
return intResult
end
|