OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ErsSarMapProjectionData.cpp
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 
13 
14 namespace ossimplugins
15 {
16 
18  {
19  }
20 
22  {
23  }
24 
26  {
27  os << "map_proj_des:" << data._map_proj_des.c_str() << std::endl;
28 
29  os << "num_pix_in_line:" << data._num_pix_in_line << std::endl;
30 
31  os << "num_lines:" << data._num_lines << std::endl;
32 
33  os << "nom_interpixel_dist:" << data._nom_interpixel_dist << std::endl;
34 
35  os << "nom_interline_dist:" << data._nom_interline_dist << std::endl;
36 
37  os << "orientation_at_center:" << data._orientation_at_center << std::endl;
38 
39  os << "orbit_incl:" << data._orbit_incl << std::endl;
40 
41  os << "asc_node_long:" << data._asc_node_long << std::endl;
42 
43  os << "platform_heading:" << data._platform_heading << std::endl;
44 
45  os << "name_of_ref_ellipsoid:" << data._name_of_ref_ellipsoid.c_str() << std::endl;
46 
47  os << "semi_maj_axis:" << data._semi_maj_axis << std::endl;
48 
49  os << "semi_min_axis:" << data._semi_min_axis << std::endl;
50 
51  os << "first_line_first_pixel_lat:" << data._first_line_first_pixel_lat << std::endl;
52 
53  os << "first_line_first_pixel_lon:" << data._first_line_first_pixel_lon << std::endl;
54 
55  os << "first_line_last_pixel_lat:" << data._first_line_last_pixel_lat << std::endl;
56 
57  os << "first_line_last_pixel_lon:" << data._first_line_last_pixel_lon << std::endl;
58 
59  os << "last_line_last_pixel_lat:" << data._last_line_last_pixel_lat << std::endl;
60 
61  os << "last_line_last_pixel_lon:" << data._last_line_last_pixel_lon << std::endl;
62 
63  os << "last_line_first_pixel_lat:" << data._last_line_first_pixel_lat << std::endl;
64 
65  os << "last_line_first_pixel_lon:" << data._last_line_first_pixel_lon << std::endl;
66 
67  return os;
68 
69  }
70 
72  {
73  char buf16[17];
74  buf16[16] = '\0';
75  char buf32[33];
76  buf32[32] = '\0';
77  // char buf8[9];
78  // buf8[8] = '\0';
79  // char buf4[5];
80  // buf4[4] = '\0';
81 
82  is.read(buf16, 16);
83 
84  is.read(buf32, 32);
85  data._map_proj_des = buf32;
86 
87  is.read(buf16, 16);
88  data._num_pix_in_line = atoi(buf16);
89 
90  is.read(buf16, 16);
91  data._num_lines = atoi(buf16);
92 
93  is.read(buf16, 16);
94  data._nom_interpixel_dist = atof(buf16);
95 
96  is.read(buf16, 16);
97  data._nom_interline_dist = atof(buf16);
98 
99  is.read(buf16, 16);
100  data._orientation_at_center = atof(buf16);
101 
102  is.read(buf16, 16);
103  data._orbit_incl = atof(buf16);
104 
105  is.read(buf16, 16);
106  data._asc_node_long = atof(buf16);
107 
108  is.read(buf16, 16);
109 
110  is.read(buf16, 16);
111 
112  is.read(buf16, 16);
113 
114  is.read(buf16, 16);
115  data._platform_heading = atof(buf16);
116 
117  is.read(buf32, 32);
118  data._name_of_ref_ellipsoid = buf32;
119 
120  is.read(buf16, 16);
121  data._semi_maj_axis = atof(buf16);
122 
123  is.read(buf16, 16);
124  data._semi_min_axis = atof(buf16);
125 
126  char buf772[772];
127  is.read(buf772, 772);
128 
129  is.read(buf16, 16);
130  data._first_line_first_pixel_lat = atof(buf16);
131 
132  is.read(buf16, 16);
133  data._first_line_first_pixel_lon = atof(buf16);
134 
135  is.read(buf16, 16);
136  data._first_line_last_pixel_lat = atof(buf16);
137 
138  is.read(buf16, 16);
139  data._first_line_last_pixel_lon = atof(buf16);
140 
141  is.read(buf16, 16);
142  data._last_line_last_pixel_lat = atof(buf16);
143 
144  is.read(buf16, 16);
145  data._last_line_last_pixel_lon = atof(buf16);
146 
147  is.read(buf16, 16);
148  data._last_line_first_pixel_lat = atof(buf16);
149 
150  is.read(buf16, 16);
151  data._last_line_first_pixel_lon = atof(buf16);
152 
153  char buf420[420];
154  is.read(buf420, 420);
155 
156  return is;
157  }
158 
159 
161  ErsSarRecord(rhs),
162  _map_proj_des(rhs._map_proj_des),
163  _num_pix_in_line(rhs._num_pix_in_line),
164  _num_lines(rhs._num_lines),
165  _nom_interpixel_dist(rhs._nom_interpixel_dist),
166  _nom_interline_dist(rhs._nom_interline_dist),
167  _orientation_at_center(rhs._orientation_at_center),
168  _orbit_incl(rhs._orbit_incl),
169  _asc_node_long(rhs._asc_node_long),
170  _platform_heading(rhs._platform_heading),
171  _name_of_ref_ellipsoid(rhs._name_of_ref_ellipsoid),
172  _semi_maj_axis(rhs._semi_maj_axis),
173  _semi_min_axis(rhs._semi_min_axis),
174  _first_line_first_pixel_lat(rhs._first_line_first_pixel_lat),
175  _first_line_first_pixel_lon(rhs._first_line_first_pixel_lon),
176  _first_line_last_pixel_lat(rhs._first_line_last_pixel_lat),
177  _first_line_last_pixel_lon(rhs._first_line_last_pixel_lon),
178  _last_line_last_pixel_lat(rhs._last_line_last_pixel_lat),
179  _last_line_last_pixel_lon(rhs._last_line_last_pixel_lon),
180  _last_line_first_pixel_lat(rhs._last_line_first_pixel_lat),
181  _last_line_first_pixel_lon(rhs._last_line_first_pixel_lon)
182  {}
183 
185  {
188  _num_lines = rhs._num_lines;
192  _orbit_incl = rhs._orbit_incl;
206 
207  return *this;
208  }
209 }
double _last_line_first_pixel_lat
last_line_first_pixel_lat
double _first_line_first_pixel_lat
first_line_first_pixel_lat
double _last_line_last_pixel_lon
last_line_last_pixel_lon
This class is able to read the SAR leader data set summary record of the leader file.
double _orientation_at_center
orientation_at_center
double _last_line_first_pixel_lon
last_line_first_pixel_lon
std::ostream & operator<<(std::ostream &os, const AlosPalsarData &data)
double _first_line_last_pixel_lon
first_line_last_pixel_lon
This class is the base class of all the record classes.
Definition: ErsSarRecord.h:27
std::istream & operator>>(std::istream &is, AlosPalsarData &data)
std::basic_istream< char > istream
Base class for char input streams.
Definition: ossimIosFwd.h:20
double _nom_interpixel_dist
nom_interpixel_dist
ErsSarMapProjectionData & operator=(const ErsSarMapProjectionData &rhs)
Copy operator.
double _first_line_last_pixel_lat
first_line_last_pixel_lat
std::string _name_of_ref_ellipsoid
name_of_ref_ellipsoid
double _first_line_first_pixel_lon
first_line_first_pixel_lon
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23
double _last_line_last_pixel_lat
last_line_last_pixel_lat