Sha256: 0048386f840068a1f1c7c8b83bb8c89f3ce76748fa21d9e891c12764809b665a
Contents?: true
Size: 830 Bytes
Versions: 6
Compression:
Stored size: 830 Bytes
Contents
# unpack GeoJSON properties # Reader - ADIwg JSON V1 to internal data structure # History: # Stan Smith 2014-04-30 original script module Adiwg_GeoCoordSystem def self.unpack(hGeoCrs, intElement) intMetadataClass = InternalMetadata.new intSRS = intMetadataClass.newSRS # get coordinate reference system # null crs will default to CRS84 in writer if hGeoCrs.has_key?('properties') hCRSProp = hGeoCrs['properties'] if hCRSProp.has_key?('name') s = hCRSProp['name'] if s != '' intSRS[:srsName] = s end end if hCRSProp.has_key?('href') s = hCRSProp['href'] if s != '' intSRS[:srsHref] = s end end if hCRSProp.has_key?('type') s = hCRSProp['type'] if s != '' intSRS[:srsType] = s end end intElement[:elementSrs] = intSRS end end end
Version data entries
6 entries across 6 versions & 1 rubygems