Sha256: 3b593ba10b1a23e484ae43706f0fd85f33da737182e72d0fdc7c977bcac3d2de

Contents?: true

Size: 991 Bytes

Versions: 2

Compression:

Stored size: 991 Bytes

Contents

# ISO <<Class>> MD_ReferenceSystem
# writer
# output for ISO 19115-2 XML

# History:
# 	Stan Smith 2014-09-03 original script
#   Stan Smith 2014-12-12 refactored to handle namespacing readers and writers

require 'class_referenceIdentifier'

module ADIWG
    module Mdtranslator
        module Writers
            module Iso

                class MD_ReferenceSystem

                    def initialize(xml)
                        @xml = xml
                    end

                    def writeXML(refSystem, refType)

                        # classes used
                        refIdClass = $WriterNS::RS_Identifier.new(@xml)

                        @xml.tag!('gmd:MD_ReferenceSystem') do
                            @xml.tag!('gmd:referenceSystemIdentifier') do
                                refIdClass.writeXML(refSystem, refType)
                            end
                        end

                    end

                end

            end
        end
    end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
adiwg-mdtranslator-0.12.1 lib/adiwg/mdtranslator/writers/iso/classes/class_referenceSystem.rb
adiwg-mdtranslator-0.12.0 lib/adiwg/mdtranslator/writers/iso/classes/class_referenceSystem.rb