OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimRadarSat2RPCModel.h
Go to the documentation of this file.
1 //----------------------------------------------------------------------------
2 //
3 // "Copyright Centre National d'Etudes Spatiales"
4 //
5 // License: LGPL
6 //
7 // See LICENSE.txt file in the top level directory for more details.
8 //
9 //----------------------------------------------------------------------------
10 // $Id$
11 
12 #ifndef ossimRadarSat2RPCModel_H
13 #define ossimRadarSat2RPCModel_H 1
14 
18 #include <ossim/base/ossimIpt.h>
20 #include <ossim/base/ossimGpt.h>
21 #include <ossim/base/ossimDpt.h>
22 #include <iostream>
23 #include <list>
24 #include <otb/PlatformPosition.h>
25 #include <otb/SensorParams.h>
26 #include <otb/RefPoint.h>
27 #include <otb/SarSensor.h>
28 
29 #include <otb/CivilDateTime.h>
30 
31 class ossimFilename;
32 class ossimString;
33 class ossimXmlDocument;
34 
35 namespace ossimplugins
36 {
37 
38 class ossimRadarSat2ProductDoc;
39 class SensorParams;
40 
46 {
47 public:
50 
53 
54  ossimRadarSat2RPCModel(const ossimFilename& RS2File);
55 
56 
58  virtual ~ossimRadarSat2RPCModel();
59 
64  virtual ossimString getClassName() const;
65 
69  virtual ossimObject* dup() const;
70 
71 
78  bool open(const ossimFilename& file);
79 
80 
87  virtual bool saveState(ossimKeywordlist& kwl,
88  const char* prefix=0) const;
89 
95  virtual bool loadState (const ossimKeywordlist &kwl, const char *prefix=0);
96 
101  virtual std::ostream& print(std::ostream& out) const;
102 
103 
110  virtual void worldToLineSample(const ossimGpt& world_point,
111  ossimDpt& image_point) const;
112 
119  virtual void lineSampleHeightToWorld(const ossimDpt& image_point,
120  const double& heightEllipsoid,
121  ossimGpt& worldPoint) const;
122 
123 
124 private:
125 
126 
127  bool InitSensorParams(const ossimKeywordlist &kwl,
128  const char *prefix);
129 
130 
131  bool initSensorParams(const ossimXmlDocument* xdoc,
132  const ossimRadarSat2ProductDoc& rsDoc);
133 
134 
140 
142 
143 
144 
146 
147 TYPE_DATA
148 
149 };
150 }
151 
152 #endif
Represents serializable keyword/value map.
Class to encapsulate parsing RadarSat2 product.xml file.
std::ostream & print(H5::H5File *file, std::ostream &out)
Print method.
Definition: ossimH5Util.cpp:41
This class handles the sensor parameters.
Definition: SensorParams.h:29
double ossim_float64
#define TYPE_DATA
Definition: ossimRtti.h:339
#define OSSIM_PLUGINS_DLL
This class allows for direct localisation and indirect localisation using the RadarSat2 sensor model...
const char * getClassName(int idx)
ossim_float64 theDecimation
Stored from header field "IMAG".
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23