OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimUpspt.cpp
Go to the documentation of this file.
1 //*******************************************************************
2 //
3 // License: See top level LICENSE.txt file.
4 //
5 // Author: Garrett Potts (gpotts@imagelinks.com)
6 //
7 // Description:
8 //
9 // This is the Universal Polar Stereographic (UPS) point. Allows
10 // easy onversion between different coordinates.
11 //*******************************************************************
12 // $Id: ossimUpspt.cpp 9963 2006-11-28 21:11:01Z gpotts $
16 
17 #include <ossim/base/ossimGpt.h>
20 #include <ossim/base/ossimDatum.h>
21 
23 {
25 }
26 
28 {
30 }
31 
32 
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
void convertFromGeodetic(const ossimGpt &aPt)
Definition: ossimUpspt.cpp:33
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
ossimUpspt(const ossimGpt &aPt)
Definition: ossimUpspt.cpp:22
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)