24 #define ECK6_NO_ERROR 0x0000 25 #define ECK6_LAT_ERROR 0x0001 26 #define ECK6_LON_ERROR 0x0002 27 #define ECK6_EASTING_ERROR 0x0004 28 #define ECK6_NORTHING_ERROR 0x0008 29 #define ECK6_CENT_MER_ERROR 0x0020 30 #define ECK6_A_ERROR 0x0040 31 #define ECK6_B_ERROR 0x0080 32 #define ECK6_A_LESS_B_ERROR 0x0100 35 # define PI_OVER_2 ( M_PI / 2.0) 38 # define TWO_PI (2.0 * M_PI) 41 #define MAX_LAT ( (M_PI * 90.0) / 180.0 ) 101 double easting = 0.0;
102 double northing = 0.0;
134 double falseNorthing)
190 double Central_Meridian,
191 double False_Easting,
192 double False_Northing)
234 Ra =
Eck6_a * (1.0 -
es2 / 6.0 - 17.0 *
es4 / 360.0 - 67.0 *
es6 /3024.0);
265 double *Central_Meridian,
266 double *False_Easting,
267 double *False_Northing)
const 296 double *Northing)
const 312 double slat = sin(Latitude);
314 double theta = Latitude;
315 double delta_theta = 1.0;
316 double dt_tolerance = 4.85e-10;
341 while (fabs(delta_theta) > dt_tolerance)
344 slat) / (1.0 + cos(theta));
345 theta += delta_theta;
360 double *Longitude)
const virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
Method to the load (recreate) the state of an object from a keyword list.
long Set_Eckert6_Parameters(double a, double f, double Central_Meridian, double False_Easting, double False_Northing)
long Convert_Eckert6_To_Geodetic(double Easting, double Northing, double *Latitude, double *Longitude) const
Represents serializable keyword/value map.
ossimEckert6Projection(const ossimEllipsoid &ellipsoid=ossimEllipsoid(), const ossimGpt &origin=ossimGpt())
const char * find(const char *key) const
virtual const ossimString & code() const
double Eck6_False_Northing
void setFalseNorthing(double falseNorthing)
long Convert_Geodetic_To_Eckert6(double Latitude, double Longitude, double *Easting, double *Northing) const
double Inv_Ra_Over_Sqrt_Two_Plus_PI
static const char * TYPE_KW
void changeDatum(const ossimDatum *datum)
This will actually perform a shift.
#define STATIC_TYPE_NAME(T)
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
const ossimDatum * datum() const
datum().
double Eck6_Delta_Northing
const double & getA() const
double lonr() const
Returns the longitude in radian measure.
void Get_Eckert6_Parameters(double *a, double *f, double *Central_Meridian, double *False_Easting, double *False_Northing) const
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
Method to save the state of an object to a keyword list.
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
double Eck6_False_Easting
double Ra_Over_Sqrt_Two_Plus_PI
double latr() const
latr().
const double one_PLUS_PI_OVER_2
const double & getFlattening() const
ossimEllipsoid theEllipsoid
This method verifies that the projection parameters match the current pcs code.
#define RTTI_DEF1(cls, name, b1)
ossimDpt theFalseEastingNorthing
Hold the false easting northing.
virtual ossimGpt inverse(const ossimDpt &eastingNorthing) const
Will take a point in meters and convert it to ground.
void setFalseEastingNorthing(double falseEasting, double falseNorthing)
void setFalseEasting(double falseEasting)
void setCentralMeridian(double centralMeridian)
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.