/usr/include/ossim/base/ossimGeoref.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 | #ifndef ossimGeoref_HEADER
#define ossimGeoref_HEADER
#include <ossim/base/ossimString.h>
#include <ossim/base/ossimGpt.h>
class OSSIMDLLEXPORT ossimGeoref
{
public:
ossimGeoref(const ossimString &georefString,
long precision);
ossimGeoref(const ossimGpt &groundPt);
ossimGeoref();
/*!
* This function converts Geodetic (latitude and longitude in radians)
* coordinates to a GEOREF coordinate string. Precision specifies the
* number of digits in the GEOREF string for latitude and longitude:
* 0 for nearest degree
* 1 for nearest 10 minutes
* 2 for nearest minute
* 3 for nearest tenth of a minute
* 4 for nearest hundredth of a minute
* 5 for nearest thousandth of a minute
*
* Precision : level of precision specified by the user (input)
* ossimGeoref : GEOREF coordinate string (return)
*/
ossimString toString(long precision);
private:
ossimGpt thePt;
// This code belongs to Geotrans
/*!
* This function converts Geodetic (latitude and longitude in radians)
* coordinates to a GEOREF coordinate string. Precision specifies the
* number of digits in the GEOREF string for latitude and longitude:
* 0 for nearest degree
* 1 for nearest 10 minutes
* 2 for nearest minute
* 3 for nearest tenth of a minute
* 4 for nearest hundredth of a minute
* 5 for nearest thousandth of a minute
*
* Latitude : Latitude in radians (input)
* Longitude : Longitude in radians (input)
* Precision : level of precision specified by the user (input)
* ossimGeoref : GEOREF coordinate string (output)
*/
long Convert_Geodetic_To_GEOREF (double Latitude,
double Longitude,
long Precision,
char *georef);
/*!
* This function converts a GEOREF coordinate string to Geodetic (latitude
* and longitude in radians) coordinates.
*
* ossimGeoref : GEOREF coordinate string (input)
* Latitude : Latitude in radians (output)
* Longitude : Longitude in radians (output)
*/
long Convert_GEOREF_To_Geodetic (char *georef,
double *Latitude,
double *Longitude);
};
#endif
|