/usr/include/ossim/base/ossimThreeParamDatum.h is in libossim-dev 2.2.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 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 | //*******************************************************************
//
// License: See top level LICENSE.txt file.
//
// Author: Garrett Potts (gpotts@imagelinks.com)
//
// Description:
//
// ossimThreeParamDatum. This is a base class for all
// three param datums.
//*******************************************************************
// $Id: ossimThreeParamDatum.h 19795 2011-06-30 15:04:48Z gpotts $
#ifndef ossimThreeParamDatum_HEADER
#define ossimThreeParamDatum_HEADER
#include <ossim/base/ossimDatum.h>
class OSSIMDLLEXPORT ossimThreeParamDatum : public ossimDatum
{
public:
/**
* @param code new datum code. (input)
* @param name Name of the new datum (input)
* @param SigmaX Standard error in X in meters (input)
* @param SigmaY Standard error in Y in meters (input)
* @param SigmaZ Standard error in Z in meters (input)
* @param southLatitude Southern edge of validity rectangle in radians(input)
* @param northLatitude Northern edge of validity rectangle in radians(input)
* @param westLongitude Western edge of validity rectangle in radians (input)
* @param eastLongitude Eastern edge of validity rectangle in radians (input)
* @param param1 X translation
* @param param2 Y translation
* @param param3 Z translation
*/
ossimThreeParamDatum(const ossimString &code, const ossimString &name,
const ossimEllipsoid* anEllipsoid,
ossim_float64 sigmaX,
ossim_float64 sigmaY,
ossim_float64 sigmaZ,
ossim_float64 westLongitude,
ossim_float64 eastLongitude,
ossim_float64 southLatitude,
ossim_float64 northLatitude,
ossim_float64 param1,
ossim_float64 param2,
ossim_float64 param3)
: ossimDatum(code, name, anEllipsoid,
sigmaX, sigmaY, sigmaZ,
westLongitude, eastLongitude,
southLatitude, northLatitude),
theParam1(param1),
theParam2(param2),
theParam3(param3)
{}
virtual ~ossimThreeParamDatum(){}
/*!
* Will shift a ground point to this datum. If they are the same
* datum then nothing happens.
*/
virtual ossimGpt shift(const ossimGpt &aPt)const;
virtual ossimGpt shiftToWgs84(const ossimGpt &aPt)const;
virtual ossimGpt shiftFromWgs84(const ossimGpt &aPt)const;
virtual ossim_float64 param1()const{return theParam1;}
virtual ossim_float64 param2()const{return theParam2;}
virtual ossim_float64 param3()const{return theParam3;}
virtual ossim_float64 param4()const{return 0.0;}
virtual ossim_float64 param5()const{return 0.0;}
virtual ossim_float64 param6()const{return 0.0;}
virtual ossim_float64 param7()const{return 1.0;}
virtual bool isEqualTo(const ossimObject& obj, ossimCompareType compareType=OSSIM_COMPARE_FULL)const;
protected:
ossim_float64 theParam1;
ossim_float64 theParam2;
ossim_float64 theParam3;
TYPE_DATA;
};
#endif
|