Module: ADIWG::Mdtranslator::Readers::Fgdc::ProjectionParameters

Defined in:
lib/adiwg/mdtranslator/readers/fgdc/modules/mapProjections/projection_parameters.rb

Class Method Summary collapse

Class Method Details

.unpack(xParams, hProjection, hResponseObj) ⇒ Object



19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# File 'lib/adiwg/mdtranslator/readers/fgdc/modules/mapProjections/projection_parameters.rb', line 19

def self.unpack(xParams, hProjection, hResponseObj)

   # map projection 4.1.2.1.23 (mapprojp) - projection parameter set
   unless xParams.empty?

      # -> ReferenceSystemParameters.projection.standardParallel1
      # -> ReferenceSystemParameters.projection.standardParallel2
      ProjectionCommon.unpackStandParallel(xParams, hProjection)

      # -> ReferenceSystemParameters.projection.longitudeOfCentralMeridian
      ProjectionCommon.unpackLongCM(xParams, hProjection)

      # -> ReferenceSystemParameters.projection.latitudeOfProjectionOrigin
      ProjectionCommon.unpackLatPO(xParams, hProjection)

      # -> ReferenceSystemParameters.projection.falseEasting
      # -> ReferenceSystemParameters.projection.falseNorthing
      ProjectionCommon.unpackFalseNE(xParams, hProjection)

      # -> ReferenceSystemParameters.projection.heightOfProspectivePointAboveSurface
      ProjectionCommon.unpackHeightAS(xParams, hProjection)

      # -> ReferenceSystemParameters.projection.longitudeOfProjectionCenter
      ProjectionCommon.unpackLongPC(xParams, hProjection)

      # -> ReferenceSystemParameters.projection.latitudeOfProjectionCenter
      ProjectionCommon.unpackLatPC(xParams, hProjection)

      # -> ReferenceSystemParameters.projection.scaleFactorAtEquator
      ProjectionCommon.unpackSFEquator(xParams, hProjection)

      # -> ReferenceSystemParameters.projection.scaleFactorAtCenterLine
      ProjectionCommon.unpackSFCenter(xParams, hProjection)

      # -> ReferenceSystemParameters.projection.scaleFactorAtCentralMeridian
      ProjectionCommon.unpackSFCM(xParams, hProjection)

      # -> ReferenceSystemParameters.projection.scaleFactorAtProjectionOrigin
      ProjectionCommon.unpackSFPO(xParams, hProjection)

      # -> oblique line azimuth ( azimuthAngle && azimuthMeasurePointLongitude )
      # -> ReferenceSystemParameters.projection.azimuthAngle
      # -> ReferenceSystemParameters.projection.azimuthMeasurePointLongitude
      ProjectionCommon.unpackObliqueLA(xParams, hProjection)

      # -> oblique line point 2( obliqueLinePoint{} )
      ProjectionCommon.unpackObliqueLP(xParams, hProjection)

      # -> ReferenceSystemParameters.projection.straightVerticalLongitudeFromPole
      ProjectionCommon.unpackVSLong(xParams, hProjection)

      # -> ReferenceSystemParameters.projection.landsatNumber
      ProjectionCommon.unpackLandSat(xParams, hProjection)

      # -> ReferenceSystemParameters.projection.landsatPath
      ProjectionCommon.unpackLandSatPath(xParams, hProjection)

      # -> ReferenceSystemParameters.projection.projectionIdentifier.description
      ProjectionCommon.unpackOtherProjection(xParams, hProjection)

      return hProjection

   end

   return nil

end