OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ossimUpspt Class Reference

#include <ossimUpspt.h>

Public Member Functions

 ossimUpspt (const ossimGpt &aPt)
 
 ossimUpspt (const ossimEcefPoint &aPt)
 
char hemisphere () const
 
double easting () const
 
double northing () const
 
const ossimDatumdatum () const
 

Private Member Functions

void convertFromGeodetic (const ossimGpt &aPt)
 

Private Attributes

char theHemisphere
 
double theEasting
 
double theNorthing
 
ossimDatumtheDatum
 

Detailed Description

Definition at line 24 of file ossimUpspt.h.

Constructor & Destructor Documentation

◆ ossimUpspt() [1/2]

ossimUpspt::ossimUpspt ( const ossimGpt aPt)

Definition at line 22 of file ossimUpspt.cpp.

References convertFromGeodetic().

23 {
25 }
void convertFromGeodetic(const ossimGpt &aPt)
Definition: ossimUpspt.cpp:33

◆ ossimUpspt() [2/2]

ossimUpspt::ossimUpspt ( const ossimEcefPoint aPt)

Definition at line 27 of file ossimUpspt.cpp.

References convertFromGeodetic().

28 {
30 }
void convertFromGeodetic(const ossimGpt &aPt)
Definition: ossimUpspt.cpp:33

Member Function Documentation

◆ convertFromGeodetic()

void ossimUpspt::convertFromGeodetic ( const ossimGpt aPt)
private

Definition at line 33 of file ossimUpspt.cpp.

References ossimEllipsoid::a(), ossimEllipsoid::b(), Convert_Geodetic_To_UPS(), ossimGpt::datum(), ossimDatum::ellipsoid(), ossimGpt::latr(), ossimGpt::lonr(), Set_UPS_Parameters(), theDatum, theEasting, theHemisphere, and theNorthing.

Referenced by ossimUpspt().

34 {
35  const ossimDatum *aDatum = aPt.datum();
36 
37  if(aDatum)
38  {
39  Set_UPS_Parameters(aDatum->ellipsoid()->a(),
40  aDatum->ellipsoid()->b());
41 
43  aPt.lonr(),
45  &theEasting,
46  &theNorthing);
47  theDatum = const_cast<ossimDatum*>(aDatum);
48  }
49  else
50  {
51  //ERROR: should never happen
52  }
53 }
double theEasting
Definition: ossimUpspt.h:37
const double & b() const
const ossimDatum * datum() const
datum().
Definition: ossimGpt.h:196
const double & a() const
double lonr() const
Returns the longitude in radian measure.
Definition: ossimGpt.h:76
virtual const ossimEllipsoid * ellipsoid() const
Definition: ossimDatum.h:60
char theHemisphere
Definition: ossimUpspt.h:36
long Convert_Geodetic_To_UPS(double Latitude, double Longitude, char *Hemisphere, double *Easting, double *Northing)
ossimDatum * theDatum
Definition: ossimUpspt.h:39
double latr() const
latr().
Definition: ossimGpt.h:66
double theNorthing
Definition: ossimUpspt.h:38
long Set_UPS_Parameters(double a, double f)

◆ datum()

const ossimDatum* ossimUpspt::datum ( ) const
inline

Definition at line 33 of file ossimUpspt.h.

33 {return theDatum;}
ossimDatum * theDatum
Definition: ossimUpspt.h:39

◆ easting()

double ossimUpspt::easting ( ) const
inline

Definition at line 31 of file ossimUpspt.h.

31 {return theEasting;}
double theEasting
Definition: ossimUpspt.h:37

◆ hemisphere()

char ossimUpspt::hemisphere ( ) const
inline

Definition at line 30 of file ossimUpspt.h.

30 {return theHemisphere;}
char theHemisphere
Definition: ossimUpspt.h:36

◆ northing()

double ossimUpspt::northing ( ) const
inline

Definition at line 32 of file ossimUpspt.h.

32 {return theNorthing;}
double theNorthing
Definition: ossimUpspt.h:38

Member Data Documentation

◆ theDatum

ossimDatum* ossimUpspt::theDatum
private

Definition at line 39 of file ossimUpspt.h.

Referenced by convertFromGeodetic().

◆ theEasting

double ossimUpspt::theEasting
private

Definition at line 37 of file ossimUpspt.h.

Referenced by convertFromGeodetic().

◆ theHemisphere

char ossimUpspt::theHemisphere
private

Definition at line 36 of file ossimUpspt.h.

Referenced by convertFromGeodetic().

◆ theNorthing

double ossimUpspt::theNorthing
private

Definition at line 38 of file ossimUpspt.h.

Referenced by convertFromGeodetic().


The documentation for this class was generated from the following files: