Sha256: ba8a7794477303579dc94744d63a23fc37e86e0dc9d6ffb108a244278b02e269

Contents?: true

Size: 1.04 KB

Versions: 11

Compression:

Stored size: 1.04 KB

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
#   Stan Smith 2014-12-15 refactored to handle namespacing readers and writers

require $ReaderNS.readerModule('module_coordinates')

module ADIWG
    module Mdtranslator
        module Readers
            module MdJson

                module LineString

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

                        intLine[:geoType] = geoType
                        intLine[:geometry] = aCoords
                        intLine[:dimension] = $ReaderNS::Coordinates.getDimension(aCoords)

                        return intLine
                    end

                end

            end
        end
    end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
adiwg-mdtranslator-1.2.1 lib/adiwg/mdtranslator/readers/mdJson/modules_1.0/module_lineString.rb
adiwg-mdtranslator-1.2.0 lib/adiwg/mdtranslator/readers/mdJson/modules_1.0/module_lineString.rb
adiwg-mdtranslator-1.1.1 lib/adiwg/mdtranslator/readers/mdJson/modules_1.0/module_lineString.rb
adiwg-mdtranslator-1.1.0 lib/adiwg/mdtranslator/readers/mdJson/modules_1.0/module_lineString.rb
adiwg-mdtranslator-1.0.0 lib/adiwg/mdtranslator/readers/mdJson/modules_1.0/module_lineString.rb
adiwg-mdtranslator-1.0.0rc4 lib/adiwg/mdtranslator/readers/mdJson/modules_1.0/module_lineString.rb
adiwg-mdtranslator-1.0.0rc3 lib/adiwg/mdtranslator/readers/mdJson/modules_1.0/module_lineString.rb
adiwg-mdtranslator-1.0.0rc2 lib/adiwg/mdtranslator/readers/mdJson/modules_1.0/module_lineString.rb
adiwg-mdtranslator-1.0.0rc1 lib/adiwg/mdtranslator/readers/mdJson/modules_1.0/module_lineString.rb
adiwg-mdtranslator-0.12.1 lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_lineString.rb
adiwg-mdtranslator-0.12.0 lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_lineString.rb