OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimQuickbirdTile.h
Go to the documentation of this file.
1 //*******************************************************************
2 //
3 // License: See top level LICENSE.txt file.
4 //
5 // Author: Garrett Potts
6 //
7 // Description:
8 //
9 //*******************************************************************
10 // $Id: ossimQuickbirdTile.h 19682 2011-05-31 14:21:20Z dburken $
11 #ifndef ossimQuickbirdTil_HEADER
12 #define ossimQuickbirdTil_HEADER
13 #include <map>
14 #include <fstream>
16 #include <ossim/base/ossimString.h>
18 #include <ossim/base/ossimCommon.h>
19 
21 {
22 public:
24  {
25  return out;
26  }
27  bool operator ==(const ossimString& rhs)const
28  {
29  return theFilename == rhs;
30  }
31  bool operator <(const ossimString& rhs)const
32  {
33  return theFilename < rhs;
34  }
35  bool operator >(const ossimString& rhs)const
36  {
37  return theFilename > rhs;
38  }
39  bool operator ==(const ossimQuickbirdTileInfo& rhs)const
40  {
41  return theFilename == rhs.theFilename;
42  }
43  bool operator <(const ossimQuickbirdTileInfo& rhs)const
44  {
45  return theFilename < rhs.theFilename;
46  }
47  bool operator >(const ossimQuickbirdTileInfo& rhs)const
48  {
49  return theFilename > rhs.theFilename;
50  }
51 
53  {
54  initialize();
55  }
56 
57  void initialize()
58  {
59  theTileGroup = "";
60  theFilename = "";
69 
70  theUlLon = ossim::nan();
71  theUlLat = ossim::nan();
72  theUrLon = ossim::nan();
73  theUrLat = ossim::nan();
74  theLrLon = ossim::nan();
75  theLrLat = ossim::nan();
76  theLlLon = ossim::nan();
77  theLlLat = ossim::nan();
78  }
97 };
98 
100 {
101 public:
103  bool open(const ossimFilename tileFile);
104 
105  bool getInfo(ossimQuickbirdTileInfo& result,
106  const ossimFilename& filename)const;
107 
108  const std::map<std::string, ossimQuickbirdTileInfo>& getMap() const { return theTileMap; }
109 
110  typedef std::map<std::string, ossimQuickbirdTileInfo> TileMap;
111 
112 protected:
113 
117 
118  void parseTileGroup(std::istream& in,
119  const ossimString& tileName);
120  void parseNameValue(ossimString& name,
121  ossimString& value,
122  const ossimString& line)const;
123 
124 
125 };
126 
127 #endif
void parseTileGroup(std::istream &in, const ossimString &tileName)
bool operator<(const ossimString &rhs) const
bool open(const ossimFilename tileFile)
double nan()
Method to return ieee floating point double precision NAN.
Definition: ossimCommon.h:135
ossim_int32 theNumberOfTiles
#define OSSIM_INT_NAN
const std::map< std::string, ossimQuickbirdTileInfo > & getMap() const
void parseNameValue(ossimString &name, ossimString &value, const ossimString &line) const
bool operator==(const ossimString &rhs) const
double ossim_float64
bool getInfo(ossimQuickbirdTileInfo &result, const ossimFilename &filename) const
std::map< std::string, ossimQuickbirdTileInfo > TileMap
std::basic_istream< char > istream
Base class for char input streams.
Definition: ossimIosFwd.h:20
bool operator>(const ossimString &rhs) const
friend std::ostream & operator<<(std::ostream &out, const ossimQuickbirdTileInfo &)
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23
int ossim_int32