adiwg-mdtranslator 2.19.0.pre.beta.16 → 2.19.0.pre.beta.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +5 -5
- data/adiwg-mdtranslator.gemspec +2 -2
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_dataQuality.rb +2 -2
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_conformanceResult.rb +5 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_coverageResult.rb +4 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_descriptiveResult.rb +4 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_quantitativeResult.rb +4 -0
- data/lib/adiwg/mdtranslator/version.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_dataQuality.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/html/sections/html_dataQuality.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_conformanceResult.rb +6 -5
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_coverageResult.rb +1 -0
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_descriptiveResult.rb +1 -0
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_onlineResource.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_quantitativeResult.rb +6 -5
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_resourceInfo.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_dataQuality.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a543b2c79ce4911105d80a36ba2a70643013a92a26777179a27bf0f455fb0a4
|
4
|
+
data.tar.gz: b3938073b03abaa3326878d5c7f5844ed9edd38be6ccaa72ab5e4460f30f5a1f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a372b0e9151a3ed264c99490b87244904847e15422d3fb23f4fdc3f0e819d53a6c7766ae368715d19aba4d37dcfc5973cbd3a6adf95b872033a8eb77c409d15
|
7
|
+
data.tar.gz: 0a56d35e82c6fdf8ece4c4c9ca5ba36ff0d0e910bae5df01b33469111e79da36a7ebe66cdc190688827ef94a20e7011f3404f38afded8350bf317cba29ff6635
|
data/Gemfile.lock
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
adiwg-mdtranslator (2.19.0.pre.beta.
|
5
|
-
adiwg-mdcodes (= 2.9.4.pre.beta.
|
6
|
-
adiwg-mdjson_schemas (= 2.9.3.pre.beta.
|
4
|
+
adiwg-mdtranslator (2.19.0.pre.beta.19)
|
5
|
+
adiwg-mdcodes (= 2.9.4.pre.beta.4)
|
6
|
+
adiwg-mdjson_schemas (= 2.9.3.pre.beta.3)
|
7
7
|
builder (~> 3.2)
|
8
8
|
coderay (~> 1.1)
|
9
9
|
jbuilder (~> 2.5)
|
@@ -30,9 +30,9 @@ GEM
|
|
30
30
|
tzinfo (~> 1.1)
|
31
31
|
addressable (2.8.5)
|
32
32
|
public_suffix (>= 2.0.2, < 6.0)
|
33
|
-
adiwg-mdcodes (2.9.4.pre.beta.
|
33
|
+
adiwg-mdcodes (2.9.4.pre.beta.4)
|
34
34
|
json (~> 2.0)
|
35
|
-
adiwg-mdjson_schemas (2.9.3.pre.beta.
|
35
|
+
adiwg-mdjson_schemas (2.9.3.pre.beta.3)
|
36
36
|
builder (3.2.4)
|
37
37
|
coderay (1.1.3)
|
38
38
|
concurrent-ruby (1.2.2)
|
data/adiwg-mdtranslator.gemspec
CHANGED
@@ -34,8 +34,8 @@ Gem::Specification.new do |spec|
|
|
34
34
|
spec.add_runtime_dependency "thor", "~> 0.19"
|
35
35
|
spec.add_runtime_dependency "uuidtools", "~> 2.1"
|
36
36
|
spec.add_runtime_dependency "json-schema", "~> 2.7"
|
37
|
-
spec.add_runtime_dependency "adiwg-mdjson_schemas", "2.9.3.pre.beta.
|
38
|
-
spec.add_runtime_dependency "adiwg-mdcodes", "2.9.4.pre.beta.
|
37
|
+
spec.add_runtime_dependency "adiwg-mdjson_schemas", "2.9.3.pre.beta.3"
|
38
|
+
spec.add_runtime_dependency "adiwg-mdcodes", "2.9.4.pre.beta.4"
|
39
39
|
spec.add_runtime_dependency "jbuilder", "~> 2.5"
|
40
40
|
spec.add_runtime_dependency "kramdown", ">= 1.13", "< 3.0"
|
41
41
|
spec.add_runtime_dependency "coderay", "~> 1.1"
|
@@ -82,7 +82,7 @@ module ADIWG
|
|
82
82
|
xHorizontal = xPositionalAccuracy.xpath('./horizpa')
|
83
83
|
unless xHorizontal.empty?
|
84
84
|
report = intMetadataClass.newDataQualityReport
|
85
|
-
report[:type] = '
|
85
|
+
report[:type] = 'AbsolutePositionalAccuracy'
|
86
86
|
unless xHorizontal.xpath('qhorizpa/horizpae').empty?
|
87
87
|
report[:qualityMeasure] = intMetadataClass.newQualityMeasure
|
88
88
|
report[:qualityMeasure][:description] = xHorizontal.xpath('qhorizpa/horizpae').text
|
@@ -105,7 +105,7 @@ module ADIWG
|
|
105
105
|
xVertical = xPositionalAccuracy.xpath('./vertacc')
|
106
106
|
unless xVertical.empty?
|
107
107
|
report = intMetadataClass.newDataQualityReport
|
108
|
-
report[:type] = '
|
108
|
+
report[:type] = 'AbsolutePositionalAccuracy'
|
109
109
|
unless xVertical.xpath('qvertpa/vertacce').empty?
|
110
110
|
report[:qualityMeasure] = intMetadataClass.newQualityMeasure
|
111
111
|
report[:qualityMeasure][:description] = xVertical.xpath('qvertpa/vertacce').text
|
@@ -23,6 +23,11 @@ module ADIWG
|
|
23
23
|
intConformanceResult[:scope] = Scope.unpack(hConformanceResult['scope'], responseObj)
|
24
24
|
end
|
25
25
|
|
26
|
+
# name
|
27
|
+
if hConformanceResult.has_key?('name')
|
28
|
+
intConformanceResult[:name] = hConformanceResult['name']
|
29
|
+
end
|
30
|
+
|
26
31
|
#specification
|
27
32
|
if hConformanceResult.has_key?('specification')
|
28
33
|
intConformanceResult[:specification] = Citation.unpack(hConformanceResult['specification'], responseObj)
|
@@ -26,6 +26,10 @@ module ADIWG
|
|
26
26
|
intResult[:scope] = Scope.unpack(hResult['scope'], responseObj)
|
27
27
|
end
|
28
28
|
|
29
|
+
# name
|
30
|
+
if hResult.has_key?('name')
|
31
|
+
intResult[:name] = hResult['name']
|
32
|
+
end
|
29
33
|
|
30
34
|
# spatialRepresentationType
|
31
35
|
if hResult.has_key?('spatialRepresentationType')
|
@@ -25,6 +25,10 @@ module ADIWG
|
|
25
25
|
intResult[:scope] = Scope.unpack(hResult['scope'], responseObj)
|
26
26
|
end
|
27
27
|
|
28
|
+
if hResult.has_key?('name')
|
29
|
+
intResult[:name] = hResult['name']
|
30
|
+
end
|
31
|
+
|
28
32
|
if hResult.has_key?('statement')
|
29
33
|
intResult[:statement] = hResult['statement']
|
30
34
|
end
|
@@ -70,7 +70,7 @@ module ADIWG
|
|
70
70
|
|
71
71
|
|
72
72
|
horizontal_positional_accuracy_report = hDataQuality[:report].find do |report|
|
73
|
-
report[:type] == '
|
73
|
+
report[:type] == 'AbsolutePositionalAccuracy' &&
|
74
74
|
report.dig(:qualityMeasure, :nameOfMeasure)&.any? { |name|
|
75
75
|
name == 'Horizontal Positional Accuracy Report'
|
76
76
|
}
|
@@ -80,7 +80,7 @@ module ADIWG
|
|
80
80
|
|
81
81
|
|
82
82
|
vertical_positional_accuracy_report = hDataQuality[:report].find do |report|
|
83
|
-
report[:type] == '
|
83
|
+
report[:type] == 'AbsolutePositionalAccuracy' &&
|
84
84
|
report.dig(:qualityMeasure, :nameOfMeasure)&.any? { |name|
|
85
85
|
name == 'Vertical Positional Accuracy Report'
|
86
86
|
}
|
@@ -64,7 +64,7 @@ module ADIWG
|
|
64
64
|
hDataQuality[:report].each do |report|
|
65
65
|
@html.section(:class => 'block') do
|
66
66
|
@html.details do
|
67
|
-
@html.summary(
|
67
|
+
@html.summary(report[:type], {'class' => 'h5'})
|
68
68
|
dataQualityReportClass.writeHtml(report)
|
69
69
|
end
|
70
70
|
end
|
@@ -10,11 +10,12 @@ module ADIWG
|
|
10
10
|
module ConformanceResult
|
11
11
|
def self.build(hConformanceResult)
|
12
12
|
Jbuilder.new do |json|
|
13
|
-
json.dateTime hConformanceResult[:dateTime]
|
14
|
-
json.scope Scope.build(hConformanceResult[:scope])
|
15
|
-
json.
|
16
|
-
json.
|
17
|
-
json.
|
13
|
+
json.dateTime hConformanceResult[:dateTime] unless hConformanceResult[:dateTime].nil?
|
14
|
+
json.scope Scope.build(hConformanceResult[:scope]) unless hConformanceResult[:scope].empty?
|
15
|
+
json.name hConformanceResult[:name] unless hConformanceResult[:name].nil?
|
16
|
+
json.specification Citation.build(hConformanceResult[:specification]) unless hConformanceResult[:specification].empty?
|
17
|
+
json.explanation hConformanceResult[:explanation] unless hConformanceResult[:explanation].nil?
|
18
|
+
json.pass hConformanceResult[:pass] unless hConformanceResult[:pass].nil?
|
18
19
|
end
|
19
20
|
end
|
20
21
|
end
|
@@ -15,6 +15,7 @@ module ADIWG
|
|
15
15
|
Jbuilder.new do |json|
|
16
16
|
json.dateTime hCoverageResult[:dateTime]
|
17
17
|
json.scope Scope.build(hCoverageResult[:scope]) unless hCoverageResult[:scope].empty?
|
18
|
+
json.name hCoverageResult[:name] unless hCoverageResult[:name].nil?
|
18
19
|
json.spatialRepresentationType hCoverageResult[:spatialRepresentationType]
|
19
20
|
json.spatialRepresentation SpatialRepresentation.build(hCoverageResult[:spatialRepresentation]) unless hCoverageResult[:spatialRepresentation].empty?
|
20
21
|
json.resultContentDescription CoverageDescription.build(hCoverageResult[:resultContentDescription]) unless hCoverageResult[:resultContentDescription].empty?
|
@@ -11,6 +11,7 @@ module ADIWG
|
|
11
11
|
Jbuilder.new do |json|
|
12
12
|
json.dateTime hResult[:dateTime] unless hResult[:dateTime].nil?
|
13
13
|
json.scope Scope.build(hResult[:scope]) unless hResult[:scope].empty?
|
14
|
+
json.name hResult[:name] unless hResult[:name].nil?
|
14
15
|
json.statement hResult[:statement] unless hResult[:statement].nil?
|
15
16
|
end
|
16
17
|
end
|
@@ -19,10 +19,10 @@ module ADIWG
|
|
19
19
|
Jbuilder.new do |json|
|
20
20
|
json.uri hOlRes[:olResURI]
|
21
21
|
json.name hOlRes[:olResName]
|
22
|
+
json.protocol hOlRes[:olResProtocol]
|
22
23
|
json.description hOlRes[:olResDesc]
|
23
24
|
json.function hOlRes[:olResFunction]
|
24
25
|
json.applicationProfile hOlRes[:olResApplicationProfile]
|
25
|
-
json.protocol hOlRes[:olResProtocol]
|
26
26
|
json.protocolRequest hOlRes[:olResProtocolRequest]
|
27
27
|
end
|
28
28
|
|
@@ -9,11 +9,12 @@ module ADIWG
|
|
9
9
|
module QuantitativeResult
|
10
10
|
def self.build(hResult)
|
11
11
|
Jbuilder.new do |json|
|
12
|
-
json.dateTime hResult[:dateTime]
|
13
|
-
json.scope Scope.build(hResult[:scope])
|
14
|
-
json.
|
15
|
-
json.
|
16
|
-
json.
|
12
|
+
json.dateTime hResult[:dateTime] unless hResult[:dateTime].nil?
|
13
|
+
json.scope Scope.build(hResult[:scope]) unless hResult[:scope].empty?
|
14
|
+
json.name hResult[:name] unless hResult[:name].nil?
|
15
|
+
json.value hResult[:values] unless hResult[:values].empty?
|
16
|
+
json.valueUnits hResult[:valueUnits] unless hResult[:valueUnits].nil?
|
17
|
+
json.valueRecordType hResult[:valueRecordType] unless hResult[:valueRecordType].nil?
|
17
18
|
end
|
18
19
|
end
|
19
20
|
end
|
@@ -42,8 +42,8 @@ module ADIWG
|
|
42
42
|
json.abstract hResInfo[:abstract]
|
43
43
|
json.shortAbstract hResInfo[:shortAbstract]
|
44
44
|
json.purpose hResInfo[:purpose]
|
45
|
-
json.credit hResInfo[:credits] unless hResInfo[:credits].empty?
|
46
45
|
json.timePeriod TimePeriod.build(hResInfo[:timePeriod]) unless hResInfo[:timePeriod].empty?
|
46
|
+
json.credit hResInfo[:credits] unless hResInfo[:credits].empty?
|
47
47
|
json.status hResInfo[:status] unless hResInfo[:status].empty?
|
48
48
|
json.pointOfContact @Namespace.json_map(hResInfo[:pointOfContacts], ResponsibleParty)
|
49
49
|
json.spatialReferenceSystem @Namespace.json_map(hResInfo[:spatialReferenceSystems], SpatialReference)
|
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.19.0.pre.beta.
|
4
|
+
version: 2.19.0.pre.beta.19
|
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: 2024-05-
|
12
|
+
date: 2024-05-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -129,28 +129,28 @@ dependencies:
|
|
129
129
|
requirements:
|
130
130
|
- - '='
|
131
131
|
- !ruby/object:Gem::Version
|
132
|
-
version: 2.9.3.pre.beta.
|
132
|
+
version: 2.9.3.pre.beta.3
|
133
133
|
type: :runtime
|
134
134
|
prerelease: false
|
135
135
|
version_requirements: !ruby/object:Gem::Requirement
|
136
136
|
requirements:
|
137
137
|
- - '='
|
138
138
|
- !ruby/object:Gem::Version
|
139
|
-
version: 2.9.3.pre.beta.
|
139
|
+
version: 2.9.3.pre.beta.3
|
140
140
|
- !ruby/object:Gem::Dependency
|
141
141
|
name: adiwg-mdcodes
|
142
142
|
requirement: !ruby/object:Gem::Requirement
|
143
143
|
requirements:
|
144
144
|
- - '='
|
145
145
|
- !ruby/object:Gem::Version
|
146
|
-
version: 2.9.4.pre.beta.
|
146
|
+
version: 2.9.4.pre.beta.4
|
147
147
|
type: :runtime
|
148
148
|
prerelease: false
|
149
149
|
version_requirements: !ruby/object:Gem::Requirement
|
150
150
|
requirements:
|
151
151
|
- - '='
|
152
152
|
- !ruby/object:Gem::Version
|
153
|
-
version: 2.9.4.pre.beta.
|
153
|
+
version: 2.9.4.pre.beta.4
|
154
154
|
- !ruby/object:Gem::Dependency
|
155
155
|
name: jbuilder
|
156
156
|
requirement: !ruby/object:Gem::Requirement
|