Sha256: 215a8cc698b495d294825139da637fb24a31990de0b922791d246fe4251341ba
Contents?: true
Size: 1.19 KB
Versions: 43
Compression:
Stored size: 1.19 KB
Contents
# Reader - fgdc to internal data structure # unpack fgdc spatial data reference # History: # Stan Smith 2017-08-15 original script require 'nokogiri' require 'adiwg/mdtranslator/internal/internal_metadata_obj' require_relative 'module_horizontalReference' require_relative 'module_verticalDatum' module ADIWG module Mdtranslator module Readers module Fgdc module SpatialReference def self.unpack(xSpatialRef, hResourceInfo, hResponseObj) # spatial reference 4.1 (horizsys) - horizontal coordinate system xHorizontalRef = xSpatialRef.xpath('./horizsys') unless xHorizontalRef.empty? HorizontalReference.unpack(xHorizontalRef, hResourceInfo, hResponseObj) end # spatial reference 4.2 (vertdef) - vertical coordinate system xVerticalRef = xSpatialRef.xpath('./vertdef') unless xVerticalRef.empty? VerticalReference.unpack(xVerticalRef, hResourceInfo, hResponseObj) end return hResourceInfo end end end end end end
Version data entries
43 entries across 43 versions & 1 rubygems