OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimAuxXmlSupportData.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: David Burken
8 //
9 // Description: See class description below.
10 //
11 //----------------------------------------------------------------------------
12 // $Id$
13 
14 #ifndef ossimAuxXmlSupportData_HEADER
15 #define ossimAuxXmlSupportData_HEADER 1
16 
17 #include <ossim/base/ossimRefPtr.h>
18 #include <iosfwd>
19 #include <string>
20 
21 // Forward class declarations:
22 class ossimDrect;
23 class ossimFilename;
24 class ossimProjection;
25 class ossimString;
26 class ossimXmlDocument;
27 
35 {
36 public:
37 
40 
42  virtual ~ossimAuxXmlSupportData();
43 
50  ossimRefPtr<ossimProjection> getProjection(const ossimFilename& file) const;
51 
52 private:
53 
62  bool getPath( const ossimString& path,
63  const ossimXmlDocument& xdoc,
64  ossimString& s ) const;
65 
72  bool initializeProjection( const ossimXmlDocument xdoc,
73  const std::string& wkt,
74  ossimProjection* proj ) const;
75 
82  bool getProjcsName( const std::string& wkt, std::string& name ) const;
83 
89  ossimUnitType getUnits( const std::string& wkt ) const;
90 
91 };
92 
93 #endif /* End of "#ifndef ossimAuxXmlSupportData_HEADER" */
ossimUnitType
Utility/support data class to extract the projection from a dot aux dot xml file commonly found with ...
#define OSSIM_DLL
bool getPath(const ossimString &path, const ossimXmlDocument *xdoc, ossimString &s)
Gets path from doc and initializes string.