Sha256: 1d2541014d09f14b47f4a1f82c3d7f40bdd760dd82549c07e5220dd639c366ae

Contents?: true

Size: 681 Bytes

Versions: 1

Compression:

Stored size: 681 Bytes

Contents

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

# History:
# 	Stan Smith 2013-11-07 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_Point

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

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

		return intPoint
	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_point.rb