OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimCadrgProjection.h
Go to the documentation of this file.
1 //*******************************************************************
2 //
3 // License: MIT
4 //
5 // See LICENSE.txt file in the top level directory for more details.
6 //
7 // Author: Garrett Potts
8 //
9 //*******************************************************************
10 // $Id: ossimCadrgProjection.h 17815 2010-08-03 13:23:14Z dburken $
11 #ifndef ossimCadrgProjection_HEADER
12 #define ossimCadrgProjection_HEADER
14 
16 {
17 public:
19 
20 
21  virtual ossimObject *dup()const;
22  virtual ossimGpt inverse(const ossimDpt &eastingNorthing)const;
23  virtual ossimDpt forward(const ossimGpt &latLon)const;
24 
25  virtual ossimDpt worldToLineSample(const ossimGpt &worldPoint) const;
26  virtual ossimGpt lineSampleToWorld(const ossimDpt &projectedPoint)const;
27  virtual void worldToLineSample(const ossimGpt &worldPoint,
28  ossimDpt& lineSample)const;
29  virtual void lineSampleToWorld(const ossimDpt &projectedPoint,
30  ossimGpt& gpt)const;
31 
32  double computeXPixConstant(double scale, long zone)const;
33  double computeYPixConstant(double scale)const;
38  virtual bool saveState(ossimKeywordlist& kwl,
39  const char* prefix=0)const;
40 
45  virtual bool loadState(const ossimKeywordlist& kwl,
46  const char* prefix=0);
47 
48 
50  {
51  return getClassName();
52  }
53 
55  virtual bool operator==(const ossimProjection& projection) const;
56 
57 protected:
58  virtual ~ossimCadrgProjection();
59  /*
60  * Are from the ADRG Mil spec for 1:1,000,000 and
61  * are scales for each zone.
62  */
63  static double theCadrgArcA[8];
64 
65 
66  static double theOldZoneExtents[10];
67 
68  static double theNorthLimit;
69  static double theSouthLimit;
70 
72 
74  double theMapScale;
75 
76  double theWidth;
77  double theHeight;
78 
80 
85 
86  void computeParameters();
88 };
89 
90 #endif
virtual ossimObject * dup() const =0
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
Method to the load (recreate) the state of an object from a keyword list.
Represents serializable keyword/value map.
virtual ossimDpt worldToLineSample(const ossimGpt &worldPoint) const
virtual ossimString getClassName() const
Definition: ossimObject.cpp:64
virtual ossimGpt inverse(const ossimDpt &projectedPoint) const =0
Will take a point in meters and convert it to ground.
virtual ossimGpt lineSampleToWorld(const ossimDpt &projectedPoint) const
virtual bool operator==(const ossimProjection &projection) const
Compares this to arg projection and returns TRUE if the same.
#define TYPE_DATA
Definition: ossimRtti.h:339
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
Method to save the state of an object to a keyword list.
virtual ossimDpt forward(const ossimGpt &worldPoint) const =0
All map projections will convert the world coordinate to an easting northing (Meters).
#define OSSIM_DLL
ossimString getProjectionName() const
Returns the projection name.
int ossim_int32