OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimMapProjectionInfo.h
Go to the documentation of this file.
1 //*******************************************************************
2 // Copyright (C) 2001 ImageLinks Inc.
3 //
4 // License: MIT
5 //
6 // See LICENSE.txt file in the top level directory for more details.
7 //
8 // Author: David Burken
9 //
10 // Description:
11 // Class for encapsulate projection info given a projection, datum, and
12 // output rectangle.
13 //
14 // NOTE:
15 // - Output rectangle should be relative to the center of pixels.
16 // Shifts will be made for "pixel is area" internally.
17 //
18 //*******************************************************************
19 // $Id: ossimMapProjectionInfo.h 11959 2007-10-31 19:22:56Z gpotts $
20 
21 #ifndef ossimMapProjectionInfo_HEADER
22 #define ossimMapProjectionInfo_HEADER
23 
24 #include <ossim/base/ossimObject.h>
26 #include <ossim/base/ossimGpt.h>
27 #include <ossim/base/ossimDpt.h>
28 #include <ossim/base/ossimDrect.h>
29 #include <ossim/base/ossimString.h>
30 
31 class ossimMapProjection;
32 class ossimImageChain;
33 
35 {
36 public:
37 
39  const ossimDrect& output_rect);
40 
41  virtual ~ossimMapProjectionInfo();
42 
46  bool errorStatus() const;
47 
52  void getGeom(ossimKeywordlist& kwl, const char* prefix=0)const;
53 
59  ossimDpt getMetersPerPixel() const;
60 
71  ossimDpt getUsSurveyFeetPerPixel() const;
72 
78  ossimDpt getDecimalDegreesPerPixel() const;
79 
84  ossimDpt ulEastingNorthingPt() const;
85 
90  ossimDpt urEastingNorthingPt() const;
91 
96  ossimDpt lrEastingNorthingPt() const;
97 
102  ossimDpt llEastingNorthingPt() const;
103 
109  ossimDpt ulEastingNorthingPtInFt() const;
110 
116  ossimDpt urEastingNorthingPtInFt() const;
117 
123  ossimDpt lrEastingNorthingPtInFt() const;
124 
130  ossimDpt llEastingNorthingPtInFt() const;
131 
135  ossimGpt ulGroundPt() const;
136 
140  ossimGpt urGroundPt() const;
141 
145  ossimGpt lrGroundPt() const;
146 
150  ossimGpt llGroundPt() const;
151 
155  ossimGpt centerGroundPt() const;
156 
158  ossimDpt centerEastingNorthingPt() const;
159 
161  ossim_int32 linesPerImage() const;
162 
164  ossim_int32 pixelsPerLine() const;
165 
169  std::ostream& print(std::ostream& os) const;
170 
179  void setPixelType (ossimPixelType type);
180 
189  ossimPixelType getPixelType () const;
190 
194  void setOutputFeetFlag (bool flag);
195 
200  bool unitsInFeet() const;
201 
205  ossimString getImageInfoString () const;
206 
211  void setImageInfoString (const ossimString& string);
212 
216  const ossimMapProjection* getProjection() const;
217 
218  //****
219  // Keywords for getStateFrom/saveStateTo.
220  //***
221  static const char* README_IMAGE_STRING_KW;
222  static const char* PIXEL_TYPE_KW;
223  static const char* OUTPUT_US_FT_INFO_KW;
224 
225  virtual bool loadState(const ossimKeywordlist& kwl,
226  const char* prefix = 0);
227 
228  virtual bool saveState(ossimKeywordlist& kwl,
229  const char* prefix = 0) const;
230 
231 private:
232 
233  // Do not permit construction with void args.
236 
237  void initializeMembers(const ossimDrect& output_rect);
238 
240  mutable bool theErrorStatus;
243  ossimGpt theCornerGroundPt[4];
244  ossimDpt theCornerEastingNorthingPt[4];
248 
256 
268 
274 };
275 
276 #endif /* End of #ifndef ossimMapProjectionInfo_HEADER */
#define OSSIMDLLEXPORT
Represents serializable keyword/value map.
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
Definition: ossimObject.cpp:95
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
const ossimMapProjection * theProjection
static const char * README_IMAGE_STRING_KW
virtual std::ostream & print(std::ostream &out) const
Generic print method.
ossimString theImageInfoString
"theImageInfoString" goes in the README file "Image:" field to identify the image.
ossimPixelType
ossimReferenced & operator=(const ossimReferenced &)
static const char * PIXEL_TYPE_KW
bool theOutputInfoInFeetFlag
If "theOutputInfoInFeetFlag" is true the readme file tie point info will be output in both meters and...
ossimPixelType thePixelType
"thePixelType" defines whether the tie point coordinates are relative to the center of the pixel(whic...
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23
int ossim_int32
static const char * OUTPUT_US_FT_INFO_KW