/usr/include/ossim/projection/ossimCadrgProjection.h is in libossim-dev 1.7.21-4.
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 86 87 | //*******************************************************************
//
// License: LGPL
//
// See LICENSE.txt file in the top level directory for more details.
//
// Author: Garrett Potts
//
//*******************************************************************
// $Id: ossimCadrgProjection.h 14608 2009-05-26 19:47:20Z dburken $
#ifndef ossimCadrgProjection_HEADER
#define ossimCadrgProjection_HEADER
#include <ossim/projection/ossimMapProjection.h>
class OSSIM_DLL ossimCadrgProjection : public ossimMapProjection
{
public:
ossimCadrgProjection();
virtual ~ossimCadrgProjection();
virtual ossimObject *dup()const;
virtual ossimGpt inverse(const ossimDpt &eastingNorthing)const;
virtual ossimDpt forward(const ossimGpt &latLon)const;
virtual ossimDpt worldToLineSample(const ossimGpt &worldPoint) const;
virtual ossimGpt lineSampleToWorld(const ossimDpt &projectedPoint)const;
virtual void worldToLineSample(const ossimGpt &worldPoint,
ossimDpt& lineSample)const;
virtual void lineSampleToWorld(const ossimDpt &projectedPoint,
ossimGpt& gpt)const;
double computeXPixConstant(double scale, long zone)const;
double computeYPixConstant(double scale)const;
/*!
* Method to save the state of an object to a keyword list.
* Return true if ok or false on error.
*/
virtual bool saveState(ossimKeywordlist& kwl,
const char* prefix=0)const;
/*!
* Method to the load (recreate) the state of an object from a keyword
* list. Return true if ok or false on error.
*/
virtual bool loadState(const ossimKeywordlist& kwl,
const char* prefix=0);
ossimString getProjectionName()const
{
return getClassName();
}
protected:
/*
* Are from the ADRG Mil spec for 1:1,000,000 and
* are scales for each zone.
*/
static double theCadrgArcA[8];
static double theOldZoneExtents[10];
static double theNorthLimit;
static double theSouthLimit;
ossim_int32 theCadrgZone;
ossimDpt thePixelConstant;
double theMapScale;
double theWidth;
double theHeight;
ossimDpt theUlLineSample;
ossimGpt theUlGpt;
ossimGpt theLlGpt;
ossimGpt theLrGpt;
ossimGpt theUrGpt;
void computeParameters();
TYPE_DATA
};
#endif
|