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

Version Path
adiwg-mdtranslator-2.19.0.pre.beta.31 lib/adiwg/mdtranslator/readers/fgdc/modules/module_spatialReference.rb
adiwg-mdtranslator-2.19.0.pre.beta.30 lib/adiwg/mdtranslator/readers/fgdc/modules/module_spatialReference.rb
adiwg-mdtranslator-2.19.0.pre.beta.29 lib/adiwg/mdtranslator/readers/fgdc/modules/module_spatialReference.rb
adiwg-mdtranslator-2.19.0.pre.beta.28 lib/adiwg/mdtranslator/readers/fgdc/modules/module_spatialReference.rb
adiwg-mdtranslator-2.19.0.pre.beta.27 lib/adiwg/mdtranslator/readers/fgdc/modules/module_spatialReference.rb
adiwg-mdtranslator-2.19.0.pre.beta.26 lib/adiwg/mdtranslator/readers/fgdc/modules/module_spatialReference.rb
adiwg-mdtranslator-2.19.0.pre.beta.13 lib/adiwg/mdtranslator/readers/fgdc/modules/module_spatialReference.rb
adiwg-mdtranslator-2.19.0.pre.beta.12 lib/adiwg/mdtranslator/readers/fgdc/modules/module_spatialReference.rb
adiwg-mdtranslator-2.19.0.pre.beta.11 lib/adiwg/mdtranslator/readers/fgdc/modules/module_spatialReference.rb
adiwg-mdtranslator-2.19.0.pre.beta.10 lib/adiwg/mdtranslator/readers/fgdc/modules/module_spatialReference.rb
adiwg-mdtranslator-2.19.0.pre.beta.9 lib/adiwg/mdtranslator/readers/fgdc/modules/module_spatialReference.rb
adiwg-mdtranslator-2.19.0.pre.beta.8 lib/adiwg/mdtranslator/readers/fgdc/modules/module_spatialReference.rb
adiwg-mdtranslator-2.19.0.pre.beta.7 lib/adiwg/mdtranslator/readers/fgdc/modules/module_spatialReference.rb
adiwg-mdtranslator-2.18.4 lib/adiwg/mdtranslator/readers/fgdc/modules/module_spatialReference.rb
adiwg-mdtranslator-2.18.2 lib/adiwg/mdtranslator/readers/fgdc/modules/module_spatialReference.rb
adiwg-mdtranslator-2.18.1 lib/adiwg/mdtranslator/readers/fgdc/modules/module_spatialReference.rb
adiwg-mdtranslator-2.18.0 lib/adiwg/mdtranslator/readers/fgdc/modules/module_spatialReference.rb
adiwg-mdtranslator-2.18.0rc9 lib/adiwg/mdtranslator/readers/fgdc/modules/module_spatialReference.rb
adiwg-mdtranslator-2.18.0rc8 lib/adiwg/mdtranslator/readers/fgdc/modules/module_spatialReference.rb
adiwg-mdtranslator-2.18.0rc7 lib/adiwg/mdtranslator/readers/fgdc/modules/module_spatialReference.rb