Sha256: 7bb55767daf1bfa856784278032e9ad3ef04107e6bf0993405767f0153170282

Contents?: true

Size: 694 Bytes

Versions: 1

Compression:

Stored size: 694 Bytes

Contents

# unpack line string
# line string is coded in GeoJSON
# Reader - ADIwg JSON V1 to internal data structure

# History:
# 	Stan Smith 2013-11-13 original script
#   Stan Smith 2014-04-30 reorganized for json schema 0.3.0
#   Stan Smith 2014-07-07 resolve require statements using Mdtranslator.reader_module

require ADIWG::Mdtranslator.reader_module('module_coordinates', $response[:readerVersionUsed])

module Md_LineString

	def self.unpack(aCoords, geoType)
		intMetadataClass = InternalMetadata.new
		intLine = intMetadataClass.newGeometry

		intLine[:geoType] = geoType
		intLine[:geometry] = aCoords
		intLine[:dimension] = Md_Coordinates.getDimension(aCoords)

		return intLine
	end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
adiwg-mdtranslator-0.10.2 lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_lineString.rb