Sha256: 1b693d684c07a3ec2418bdb9d6a1ff4f5779d545d78eadc5d20b5b3dad16a406

Contents?: true

Size: 413 Bytes

Versions: 7

Compression:

Stored size: 413 Bytes

Contents

# ISO <<Class>> MD_Constraints
# writer output in XML

# History:
# 	Stan Smith 2013-10-31 original script

class MD_Constraints

	def initialize(xml)
		@xml = xml
	end

	def writeXML(aUseCons)

		@xml.tag!('gmd:MD_Constraints') do

			aUseCons.each do |useCon|

				# use constraints - required
				@xml.tag!('gmd:useLimitation') do
						@xml.tag!('gco:CharacterString',useCon)
				end

			end

		end

	end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
adiwg-mdtranslator-0.10.2 lib/adiwg/mdtranslator/writers/iso/classes/class_useConstraints.rb
adiwg-mdtranslator-0.9.0 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_useConstraints.rb
adiwg-mdtranslator-0.8.6 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_useConstraints.rb
adiwg-mdtranslator-0.8.5 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_useConstraints.rb
adiwg-mdtranslator-0.8.2 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_useConstraints.rb
adiwg-mdtranslator-0.8.1 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_useConstraints.rb
adiwg-mdtranslator-0.8.0 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_useConstraints.rb