This file is indexed.

/usr/include/ossim/projection/ossimMapProjectionInfo.h is in libossim-dev 1.7.21-4.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
//*******************************************************************
// Copyright (C) 2001 ImageLinks Inc.
//
// License:  LGPL
//
// See LICENSE.txt file in the top level directory for more details.
//
// Author:  David Burken
//
// Description:
// Class for encapsulate projection info given a projection, datum, and
// output rectangle.
//
// NOTE:
// - Output rectangle should be relative to the center of pixels.
//   Shifts will be made for "pixel is area" internally.
//
//*******************************************************************
//  $Id: ossimMapProjectionInfo.h 11959 2007-10-31 19:22:56Z gpotts $

#ifndef ossimMapProjectionInfo_HEADER
#define ossimMapProjectionInfo_HEADER

#include <ossim/base/ossimObject.h>
#include <ossim/base/ossimConstants.h>
#include <ossim/base/ossimGpt.h>
#include <ossim/base/ossimDpt.h>
#include <ossim/base/ossimDrect.h>
#include <ossim/base/ossimString.h>

class ossimMapProjection;
class ossimImageChain;

class OSSIMDLLEXPORT ossimMapProjectionInfo : public ossimObject
{
public:

   ossimMapProjectionInfo(const ossimMapProjection* proj,
                          const ossimDrect& output_rect);

   virtual ~ossimMapProjectionInfo();

   /**
    *  Returns true on error false if ok.
    */
   bool errorStatus() const;

   /**
    * Adds tie point to keyword list.  This will be latitude, longitude if
    * projection is geographic; else, easting, northing.
    */
   void getGeom(ossimKeywordlist& kwl, const char* prefix=0)const;

   /**
    *  Returns the pixel size in meters.
    *  x = sample direction
    *  y = line direction
    */
   ossimDpt getMetersPerPixel() const;
   
   /**
    *  Returns the pixel size in U.S. Survey feet.
    *  x = sample direction
    *  y = line direction
    *
    *  NOTE:
    *  The US survey feet per meter converion (0.3048006096 feet per meter)
    *  is NOT the same as the standard feet per meter conversion
    *  (0.3048 feet per meter).
    */
   ossimDpt getUsSurveyFeetPerPixel() const;

   /**
    *  Returns the decimal degrees per pixel.
    *  x = sample direction
    *  y = line direction
    */
   ossimDpt getDecimalDegreesPerPixel() const;
   
   /**
    *  Returns the upper left easting and northing as a ossimDpt.
    *  The easting is "u" and the northing is "v". Units are in meters.
    */
   ossimDpt ulEastingNorthingPt() const;

   /**
    *  Returns the upper right easting and northing as a ossimDpt.
    *  The easting is "u" and the northing is "v". Units are in meters.
    */
   ossimDpt urEastingNorthingPt() const;

   /**
    *  Returns the lower right easting and northing as a ossimDpt.
    *  The easting is "u" and the northing is "v". Units are in meters.
    */
   ossimDpt lrEastingNorthingPt() const;

   /**
    *  Returns the lower left easting and northing as a ossimDpt.
    *  The easting is "u" and the northing is "v". Units are in meters.
    */
   ossimDpt llEastingNorthingPt() const;
   
   /**
    *  Returns the upper left easting and northing as a ossimDpt.
    *  The easting is "u" and the northing is "v".
    *  Units are in U.S. Survey feet.
    */
   ossimDpt ulEastingNorthingPtInFt() const;

   /**
    *  Returns the upper right easting and northing as a ossimDpt.
    *  The easting is "u" and the northing is "v".
    *  Units are in U.S. Survey feet.
    */
   ossimDpt urEastingNorthingPtInFt() const;

   /**
    *  Returns the lower right easting and northing as a ossimDpt.
    *  The easting is "u" and the northing is "v".
    *  Units are in U.S. Survey feet.
    */
   ossimDpt lrEastingNorthingPtInFt() const;

   /**
    *  Returns the lower left easting and northing as a ossimDpt.
    *  The easting is "u" and the northing is "v". 
    *  Units are in U.S. Survey feet.
    */
   ossimDpt llEastingNorthingPtInFt() const;
   
   /**
    * Returns the upper left ground point.
    */
   ossimGpt ulGroundPt() const;

   /**
    * Returns the upper right ground point.
    */
   ossimGpt urGroundPt() const;

   /**
    * Returns the lower right ground point.
    */
   ossimGpt lrGroundPt() const;
 
   /**
    * Returns the lower left ground point.
    */
   ossimGpt llGroundPt() const;

   /**
    * Returns the center ground point.
    */
   ossimGpt centerGroundPt() const;

   /** @return The center ground point. */
   ossimDpt centerEastingNorthingPt() const;

   /** @return The lines per image. */
   ossim_int32 linesPerImage() const;

   /** @return The pixels per line (samples). */
   ossim_int32 pixelsPerLine() const;

   /**
    * Formatted print of data members.  Used by operator <<.
    */
   std::ostream& print(std::ostream& os) const;

   /**
    *  Sets the data member "thePixelType".
    *  NOTE:
    *  PIXEL_IS_POINT (ennumerated to a "0"):
    *  Corner coordinates are relative to the center of pixel.
    *  PIXEL_IS_AREA (ennumerated to a "1"):
    *  Corner coordinates are relative to the outer edge of the pixel.
    */
   void setPixelType (ossimPixelType type);

   /**
    *  Returns data member "thePixelType".
    *  NOTE:
    *  OSSIM_PIXEL_IS_POINT (ennumerated to a "0"):
    *  Corner coordinates are relative to the center of pixel.
    *  OSSIM_PIXEL_IS_AREA (ennumerated to a "1"):
    *  Corner coordinates are relative to the outer of the pixel.
    */
   ossimPixelType  getPixelType () const;

   /**
    * Sets the data member "theOutputInfoInFeetFlag".
    */
   void setOutputFeetFlag (bool flag);

   /**
    *  Returns the data member "theOutputInfoInFeetFlag".
    *  True = feet, false = meters.
    */
   bool unitsInFeet() const;

   /**
    * Returns theImageInfoString.
    */
   ossimString getImageInfoString () const;

   /**
    *  Used to set data member "theImageInfoString".  This will be output
    *  in the "Image: " field of the README file.
    */
   void setImageInfoString (const ossimString& string);

   /**
    * Returns reference to "theProjection".
    */
   const ossimMapProjection* getProjection() const;

   //****
   // Keywords for getStateFrom/saveStateTo.
   //***
   static const char* README_IMAGE_STRING_KW;
   static const char* PIXEL_TYPE_KW;
   static const char* OUTPUT_US_FT_INFO_KW;
   
   virtual bool loadState(const ossimKeywordlist& kwl,
                          const char* prefix = 0);
   
   virtual bool saveState(ossimKeywordlist& kwl,
                          const char* prefix = 0) const;
   
private:

   // Do not permit construction with void args.
   ossimMapProjectionInfo();
   ossimMapProjectionInfo& operator=(const ossimMapProjectionInfo&);
   
   void initializeMembers(const ossimDrect& output_rect);
   
   const ossimMapProjection* theProjection;
   mutable bool              theErrorStatus;
   int                       theLinesPerImage;
   int                       thePixelsPerLine;
   ossimGpt                  theCornerGroundPt[4];
   ossimDpt                  theCornerEastingNorthingPt[4];
   ossimGpt                  theCenterGroundPt;
   ossimDpt                  theCenterEastingNorthingPt;
   ossimDrect                theBoundingRect;
   
   /**
    *   "thePixelType" defines whether the tie point coordinates are
    *   relative to the center of the pixel(which is PIXEL_IS_POINT) or
    *   the upper left corner of the pixel(PIXEL_IS_AREA).  The default
    *   pixle type is PIXEL_IS_POINT.
    */
   ossimPixelType                 thePixelType;

   /**
    *   If "theOutputInfoInFeetFlag" is true the readme file tie point
    *   info will be output in both meters and U.S. feet.
    *   NOTE:
    *   U.S. feet conversion is "meters/0.3048006096" not the standard
    *   "meters/0.3048".
    *   Reference for U.S. feet value:
    *   U.S.G.S. "Map Projections - A Working Manual" USGS Professional
    *   paper 1395 page 51.
    */
   bool                      theOutputInfoInFeetFlag;

   /**
    *   "theImageInfoString" goes in the README file "Image:" field
    *   to identify the image.
    */
   ossimString               theImageInfoString;
};

#endif /* End of #ifndef ossimMapProjectionInfo_HEADER */