adiwg-mdtranslator 2.18.0rc5 → 2.18.0rc6
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a3f5fe99c20d7c62b29d9a94c86ce0ac908d0056d1de29742f70038a60ec6b7
|
4
|
+
data.tar.gz: 61f0bd460383e4c05d66d6e9fe825573c599c8365fdae4768f221dbfe5ec66ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a9f0b0eb912f6cea243cad62e23e099ecce6e42cf7acd0b11375e9d4f6e9ff765b9ed933635b65a20b62d3761ed49217e8a39835c50e96d7d3da42e4be96bbf
|
7
|
+
data.tar.gz: 9be5d5cd6ae7882bc7837fc8fc4a1f3b25bf9f1b9e6f99957798ffbed0a339b1572bb6777371209c07d6f144ecd95993564b8464ef384bd86fbc29b4657bc243
|
@@ -27,78 +27,80 @@ module ADIWG
|
|
27
27
|
|
28
28
|
hDataQuality = intObj.dig(:metadata, :dataQuality, 0)
|
29
29
|
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
30
|
+
if hDataQuality && hDataQuality[:report]
|
31
|
+
# data quality 2.1 (attracc) - attribute accuracy (not implemented)
|
32
|
+
attribute_completeness_report = hDataQuality[:report].find do |report|
|
33
|
+
report[:type] == 'DQ_NonQuantitativeAttributeCompleteness' &&
|
34
|
+
!report.dig(:descriptiveResult, 0, :statement).nil?
|
35
|
+
end
|
35
36
|
|
36
|
-
|
37
|
-
|
38
|
-
|
37
|
+
if attribute_completeness_report
|
38
|
+
@xml.tag!('attracc') do
|
39
|
+
@xml.tag!('attraccr', attribute_completeness_report[:descriptiveResult][0][:statement])
|
40
|
+
end
|
41
|
+
elsif @hResponseObj[:writerShowTags]
|
42
|
+
@xml.tag!('attracc', 'Not Reported')
|
39
43
|
end
|
40
|
-
elsif @hResponseObj[:writerShowTags]
|
41
|
-
@xml.tag!('attracc', 'Not Reported')
|
42
|
-
end
|
43
44
|
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
45
|
+
# data quality 2.2 (logic) - logical consistency (not implemented) (required)
|
46
|
+
logic_report = hDataQuality[:report].find do |report|
|
47
|
+
report[:type] == 'DQ_ConceptualConsistency' &&
|
48
|
+
!report.dig(:qualityMeasure, :description).nil?
|
49
|
+
end
|
49
50
|
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
51
|
+
if logic = logic_report&.dig(:qualityMeasure, :decription)
|
52
|
+
@xml.tag!('logic', logic)
|
53
|
+
else
|
54
|
+
@xml.tag!('logic', 'Not Reported')
|
55
|
+
end
|
55
56
|
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
57
|
+
# data quality 2.3 (complete) - completion report (not implemented) (required)
|
58
|
+
completeness_report = hDataQuality[:report].find do |report|
|
59
|
+
report[:type] == 'DQ_CompletenessOmission' &&
|
60
|
+
!report.dig(:descriptiveResult, 0, :statement).nil?
|
61
|
+
end
|
61
62
|
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
63
|
+
if complete = completeness_report&.dig(:descriptiveResult, 0, :statement)
|
64
|
+
@xml.tag!('complete', complete)
|
65
|
+
else
|
66
|
+
@xml.tag!('complete', 'Not Reported')
|
67
|
+
end
|
67
68
|
|
68
|
-
|
69
|
+
# data quality 2.4 (position) - positional accuracy (not implemented)
|
69
70
|
|
70
71
|
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
72
|
+
horizontal_positional_accuracy_report = hDataQuality[:report].find do |report|
|
73
|
+
report[:type] == 'DQ_AbsoluteExternalPositionalAccuracy' &&
|
74
|
+
report.dig(:qualityMeasure, :name) == 'Horizontal Positional Accuracy Report'
|
75
|
+
end
|
75
76
|
|
76
|
-
|
77
|
+
horizpar = horizontal_positional_accuracy_report&.dig(:evaluationMethod, :methodDescription)
|
77
78
|
|
78
79
|
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
80
|
+
vertical_positional_accuracy_report = hDataQuality[:report].find do |report|
|
81
|
+
report[:type] == 'DQ_AbsoluteExternalPositionalAccuracy' &&
|
82
|
+
report.dig(:qualityMeasure, :name) == 'Vertical Positional Accuracy Report'
|
83
|
+
end
|
83
84
|
|
84
|
-
|
85
|
+
vertaccr = vertical_positional_accuracy_report&.dig(:evaluationMethod, :methodDescription)
|
85
86
|
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
87
|
+
if horizpar || vertaccr
|
88
|
+
@xml.tag!('posacc') do
|
89
|
+
if horizpar
|
90
|
+
@xml.tag!('horizpa') do
|
91
|
+
@xml.tag!('horizpar', horizpar)
|
92
|
+
end
|
91
93
|
end
|
92
|
-
end
|
93
94
|
|
94
|
-
|
95
|
-
|
96
|
-
|
95
|
+
if vertaccr
|
96
|
+
@xml.tag!('vertacc') do
|
97
|
+
@xml.tag!('vertaccr', vertaccr)
|
98
|
+
end
|
97
99
|
end
|
98
100
|
end
|
101
|
+
elsif @hResponseObj[:writerShowTags]
|
102
|
+
@xml.tag!('position', 'Not Reported')
|
99
103
|
end
|
100
|
-
elsif @hResponseObj[:writerShowTags]
|
101
|
-
@xml.tag!('position', 'Not Reported')
|
102
104
|
end
|
103
105
|
|
104
106
|
# data quality 2.5 (lineage) - lineage (required)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: adiwg-mdtranslator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.18.
|
4
|
+
version: 2.18.0rc6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stan Smith
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-
|
12
|
+
date: 2023-02-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|