13 #define PI 3.14159265358979323e0 14 #define PI_OVER (PI/2.0e0) 15 #define MAX_LAT ((PI * 90)/180.0) 16 #define MAX_ORIGIN_LAT ((81.114528 * PI) / 180.0) 17 #define MIN_NORTH_LAT (83.5*PI/180.0) 18 #define MIN_SOUTH_LAT (-79.5*PI/180.0) 19 #define MIN_EAST_NORTH 0 20 #define MAX_EAST_NORTH 4000000 22 #define UPS_NO_ERROR 0x0000 23 #define UPS_LAT_ERROR 0x0001 24 #define UPS_LON_ERROR 0x0002 25 #define UPS_HEMISPHERE_ERROR 0x0004 26 #define UPS_EASTING_ERROR 0x0008 27 #define UPS_NORTHING_ERROR 0x0010 28 #define UPS_A_ERROR 0x0020 29 #define UPS_INV_F_ERROR 0x0040 88 double northing = 0.0;
124 const char* prefix)
const 201 double *Northing)
const 217 double tempEasting, tempNorthing;
275 double *Longitude)
const 300 if (Hemisphere ==
'N')
302 if (Hemisphere ==
'S')
335 if (!ossimMapProjection::operator==(proj))
339 if (!p)
return false;
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
Method to the load (recreate) the state of an object from a keyword list.
Represents serializable keyword/value map.
long Set_Polar_Stereographic_Parameters(double a, double f, double Latitude_of_True_Scale, double Longitude_Down_from_Pole, double False_Easting, double False_Northing)
long Convert_Geodetic_To_UPS(double Latitude, double Longitude, char *Hemisphere, double *Easting, double *Northing) const
double UPS_False_Northing
virtual const ossimString & code() const
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
double UPS_Origin_Latitude
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
double latd() const
Will convert the radian measure to degrees.
void changeDatum(const ossimDatum *datum)
This will actually perform a shift.
const ossimDatum * datum() const
datum().
void Get_UPS_Parameters(double *a, double *f) const
RTTI_DEF1(ossimUpsProjection, "ossimUpsProjection", ossimMapProjection)
const double & getA() const
double lonr() const
Returns the longitude in radian measure.
long Set_UPS_Parameters(double a, double f)
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
Method to save the state of an object to a keyword list.
virtual ossimGpt inverse(const ossimDpt &eastingNorthing) const
Will take a point in meters and convert it to ground.
long Convert_Geodetic_To_Polar_Stereographic(double Latitude, double Longitude, double *Easting, double *Northing)
virtual bool operator==(const ossimProjection &projection) const
Returns TRUE if principal parameters are within epsilon tolerance.
double latr() const
latr().
void setHemisphere(char hemisphere)
const double & getFlattening() const
ossimEllipsoid theEllipsoid
This method verifies that the projection parameters match the current pcs code.
long Convert_Polar_Stereographic_To_Geodetic(double Easting, double Northing, double *Latitude, double *Longitude)
double UPS_Origin_Longitude
ossimDpt theFalseEastingNorthing
Hold the false easting northing.
long Convert_UPS_To_Geodetic(char Hemisphere, double Easting, double Northing, double *Latitude, double *Longitude) const
ossimUpsProjection(const ossimEllipsoid &ellipsoid=ossimEllipsoid(), const ossimGpt &origin=ossimGpt())
virtual ossimDpt forward(const ossimGpt &latLon) const
All map projections will convert the world coordinate to an easting northing (Meters).
const ossimDatum * theDatum
This is only set if we want to have built in datum shifting.