/usr/include/ossim/base/ossimGeoidNgsHeader.h is in libossim-dev 1.8.16-4ubuntu1.
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 | //*******************************************************************
//
// License: See top level LICENSE.txt file.
//
// Author: Garrett Potts (gpotts@imagelinks.com)
//
// Description:
//
//*******************************************************************
// $Id: ossimGeoidNgsHeader.h 11496 2007-08-06 09:18:28Z dburken $
#ifndef ossimGeoidNgsHeader_HEADER
#define ossimGeoidNgsHeader_HEADER
#include <ossim/base/ossimFilename.h>
#include <iostream>
class OSSIMDLLEXPORT ossimGeoidNgsHeader
{
public:
friend std::ostream& operator << (std::ostream &out, const ossimGeoidNgsHeader &data);
ossimGeoidNgsHeader();
ossimGeoidNgsHeader(const ossimFilename &fileName,
ossimByteOrder byteOrder=OSSIM_LITTLE_ENDIAN);
bool initialize(const ossimFilename &fileName,
ossimByteOrder byteOrder=OSSIM_LITTLE_ENDIAN);
double southernMostLat()const{return theSouthernMostLatitude;}
double westernMostLon()const{return theWesternMostLongitude;}
double latDelta()const{return theLatDelta;}
double lonDelta()const{return theLonDelta;}
int rows()const{return theRows;}
int cols()const{return theCols;}
int dataType()const{return theDataType;}
bool pointWithin(double lat, double lon)const;
const ossimFilename& filename()const{return theFilename;}
int headerSize()const{return 44;}
int dataTypeSize()const{return theDataType==1?4:0;}
/** @return Height delta or ossim::nan() if not found. */
double getHeightDelta(double lat, double lon)const;
private:
ossimFilename theFilename;
ossimByteOrder theByteOrder;
double theSouthernMostLatitude;
/*!
* Important: The geoid.bin files expresses this as a possitive value.
*
* example: -90.0 is 270 degrees.
*/
double theWesternMostLongitude;
/*!
* Specifies the spacing of the latitude direction.
*/
double theLatDelta;
/*!
* longitude spacing.
*/
double theLonDelta;
/*!
* theRows specifies the number of lat increments
*/
int theRows;
/*!
* theCols specifies the number of lon increments
*/
int theCols;
/*!
* Specifies the datatype. if this is 1 then the data that follows
* is 4 byte floats.
*/
int theDataType;
};
#endif
|