Skip to content

Commit

Permalink
Fix FGDC Reader
Browse files Browse the repository at this point in the history
quantitativeResult was being set to the qualityMeasure and using the qualityMeasure object. Fixed to use the correct object and location.
  • Loading branch information
jwaspin committed Feb 7, 2024
1 parent cb2b508 commit c27277c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/adiwg/mdtranslator/readers/fgdc/modules/module_quality.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ def self.unpack(xDataQual, hMetadata, hDataQuality, hResponseObj)
unless xQuantitativeAccuracy.xpath('./attraccv').empty?
report = intMetadataClass.newDataQualityReport
report[:type] = 'DQ_QuantitativeAttributeAccuracy'
quantitativeResult = intMetadataClass.newQualityMeasure
quantitativeResult = intMetadataClass.newQuantitativeResult
value = xQuantitativeAccuracy.xpath('./attraccv').text
quantitativeResult[:values] << value
report[:qualityMeasure] << quantitativeResult
report[:quantitativeResult] << quantitativeResult
hDataQuality[:report] << report
end

Expand Down

0 comments on commit c27277c

Please sign in to comment.