Sha256: 37b9f89b469177484048bdd226bf0a6cff0ff87c95325e516d729e5e5f8fdefa
Contents?: true
Size: 1.29 KB
Versions: 11
Compression:
Stored size: 1.29 KB
Contents
# Reader - fgdc to internal data structure # unpack fgdc data quality # History: # Stan Smith 2017-08-15 original script require 'nokogiri' require 'adiwg/mdtranslator/internal/internal_metadata_obj' require_relative 'module_lineage' module ADIWG module Mdtranslator module Readers module Fgdc module Quality def self.unpack(xDataQual, hMetadata, hResponseObj) hResourceInfo = hMetadata[:resourceInfo] # data quality 2.1 (attracc) - attribute accuracy (not implemented) # data quality 2.2 (logic) - logical consistency (not implemented) # data quality 2.3 (complete) - completion report (not implemented) # data quality 2.4 (position) - positional accuracy (not implemented) # data quality 2.5 (lineage) - lineage xLineage = xDataQual.xpath('./lineage') unless xLineage.empty? hLineage = Lineage.unpack(xLineage, hResourceInfo, hResponseObj) unless hLineage.nil? hMetadata[:lineageInfo] << hLineage end end return hMetadata end end end end end end
Version data entries
11 entries across 11 versions & 1 rubygems