/usr/include/ossim/projection/ossimUtmpt.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 | //*******************************************************************
// Copyright (C) 2000 ImageLinks Inc.
//
// License: MIT
//
// See LICENSE.txt file in the top level directory for more details.
//
// Author: Garrett Potts
//
// Description:
//
// This is the Universal Transverse Mercator (UTM) point. Allows
// easy onversion between different coordinates.
//*******************************************************************
// $Id: ossimUtmpt.h 9094 2006-06-13 19:12:40Z dburken $
#ifndef ossimUtmpt_HEADER
#define ossimUtmpt_HEADER
#include <ossim/base/ossimConstants.h>
class ossimGpt;
class ossimEcefPoint;
class ossimUpspt;
class ossimDatum;
class OSSIMDLLEXPORT ossimUtmpt
{
public:
ossimUtmpt(const ossimGpt &aPt);
ossimUtmpt(const ossimEcefPoint &aPt);
ossimUtmpt(long zone,
char hemisphere, // N or S
double easting,
double northing,
const ossimDatum* datum);
// ossimUtmpt(const ossimUpspt &aPt);
/**
* Return the zone for this utm point.
*/
ossim_int32 zone() const { return theZone; }
/**
* Return the hemisphere ( Northern or Southern).
* We store this as a char value N or S. We store it
* like this because we are interfacing to geotrans
* and geotrans stores their values in this manner.
*/
char hemisphere() const { return theHemisphere; }
/**
* return the easting value in meters.
*/
double easting() const { return theEasting; }
/**
* return the northing value in meters.
*/
double northing() const { return theNorthing; }
/**
* return the reference datum for this point.
*/
const ossimDatum* datum() const { return theDatum; }
/**
* Initializes this point to utm coordinates for the ground point.
*
* @param aPt Ground point to initialize from.
*/
void convertFromGround(const ossimGpt &aPt);
/**
* Initializes the ground point from the utm coordinates of this point.
*
* @param aPt Ground point to initialize.
*/
void convertToGround(ossimGpt &aPt);
private:
long theZone;
char theHemisphere;
double theEasting;
double theNorthing;
const ossimDatum* theDatum;
};
#endif
|