This file is indexed.

/usr/include/ossim/imaging/ossimTilingPoly.h is in libossim-dev 2.2.2-1.

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
//*******************************************************************
//
// License:  MIT
// 
// See LICENSE.txt file in the top level directory for more details.
//
// Author: Mingjie Su
// 
// Description: implementation for image generator
//
//*************************************************************************
// $Id: ossimTilingPoly.h 2725 2011-06-15 18:13:07Z david.burken $
#ifndef ossimTilingPoly_HEADER
#define ossimTilingPoly_HEADER 1

#include <ossim/imaging/ossimTilingRect.h>
#include <ossim/base/ossimRefPtr.h>
#include <ossim/imaging/ossimGeoPolyCutter.h>

class OSSIM_DLL ossimTilingPoly : public ossimTilingRect
{
public:

   ossimTilingPoly();

   virtual ~ossimTilingPoly();

   virtual bool initialize(const ossimMapProjection& proj,
                           const ossimIrect& boundingRect);

   virtual bool next(ossimRefPtr<ossimMapProjection>& resultProjection,
                     ossimIrect& resultingBounds,
                     ossimString& resultingName);

   virtual bool saveState(ossimKeywordlist& kwl,
      const char* prefix=0)const;

   virtual bool loadState(const ossimKeywordlist& kwl,
      const char* prefix=0);

   bool useMbr() const;

   /** return true if exterior cut is initialized. */
   bool hasExteriorCut() const;

   /** return true if interior cut is initialized. */
   bool hasInteriorCut() const;
   
   ossimRefPtr<ossimGeoPolyCutter>& getExteriorCut();
   
   ossimRefPtr<ossimGeoPolyCutter>& getInteriorCut();

   bool isFeatureBoundingIntersect() const;

protected:

   struct ossimShpFeature
   {
      ossimShpFeature(ossim_int32 fid,
         ossim_int32 polyType,
         std::vector<ossimGpt> polygon,
         std::vector<ossimGeoPolygon> multiPolys)

         :m_fid(fid),
         m_polyType(polyType),
         m_polygon(polygon),
         m_multiPolys(multiPolys)
      {}

      ossim_int32 m_fid;
      ossim_int32 m_polyType;
      std::vector<ossimGpt> m_polygon;
      std::vector<ossimGeoPolygon> m_multiPolys;
   };

   bool parseShpFile();

   bool nextFeature();

   void setRect();

   ossimFilename          m_shpFilename;
   bool                   m_useMbr;
   ossim_float64          m_bufferDistance;
   
   ossimRefPtr<ossimGeoPolyCutter> m_exteriorCut;
   ossimRefPtr<ossimGeoPolyCutter> m_interiorCut;
   
   std::vector<ossimShpFeature> m_features;
   bool m_featureBoundingIntersect;
                    
TYPE_DATA
};

#endif