MCPcopy Create free account
hub / github.com/PDAL/PDAL / georeferenceWgs84

Function georeferenceWgs84

pdal/util/Georeference.cpp:76–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74
75
76Xyz georeferenceWgs84(double range, double scanAngle,
77 const RotationMatrix& boresightMatrix,
78 const RotationMatrix& imuMatrix, const Xyz& gpsPoint)
79{
80 Xyz pSocs = Xyz(range * std::sin(scanAngle), 0, -range * std::cos(scanAngle));
81
82 Xyz pSocsAligned = rotate(pSocs, boresightMatrix);
83 Xyz pLocalLevel = rotate(pSocsAligned, imuMatrix);
84 Xyz pCurvilinear = cartesianToCurvilinear(pLocalLevel, gpsPoint.Y);
85
86 return Xyz(gpsPoint.X + pCurvilinear.X, gpsPoint.Y + pCurvilinear.Y,
87 gpsPoint.Z + pCurvilinear.Z);
88}
89}
90}

Callers 2

readMethod · 0.85
TESTFunction · 0.85

Calls 3

XyzClass · 0.85
cartesianToCurvilinearFunction · 0.85
rotateFunction · 0.70

Tested by 1

TESTFunction · 0.68