16 # define PI_OVER_2 ( M_PI / 2.0) 19 # define TWO_PI (2.0 * M_PI) 22 #define GNOM_NO_ERROR 0x0000 23 #define GNOM_LAT_ERROR 0x0001 24 #define GNOM_LON_ERROR 0x0002 25 #define GNOM_EASTING_ERROR 0x0004 26 #define GNOM_NORTHING_ERROR 0x0008 27 #define GNOM_ORIGIN_LAT_ERROR 0x0010 28 #define GNOM_CENT_MER_ERROR 0x0020 29 #define GNOM_A_ERROR 0x0040 30 #define GNOM_INV_F_ERROR 0x0080 113 double easting = 0.0;
114 double northing = 0.0;
166 double Origin_Latitude,
167 double Central_Meridian,
168 double False_Easting,
169 double False_Northing)
189 double es2, es4, es6;
217 Ra =
Gnom_a * (1.0 - es2 / 6.0 - 17.0 * es4 / 360.0 - 67.0 * es6 / 3024.0);
234 double *Origin_Latitude,
235 double *Central_Meridian,
236 double *False_Easting,
237 double *False_Northing)
const 269 double *Northing)
const 288 double slat = sin(Latitude);
289 double clat = cos(Latitude);
291 double sin_dlam, cos_dlam;
292 double temp_Easting, temp_Northing;
304 sin_dlam = sin(dlam);
305 cos_dlam = cos(dlam);
307 if (cos_c <= 1.0e-10)
324 Ra_cotlat =
Ra * (clat / slat);
325 temp_Easting = Ra_cotlat * sin_dlam;
326 temp_Northing = Ra_cotlat * cos_dlam;
346 Ra_kprime =
Ra * k_prime;
358 double *Longitude)
const 394 rho = sqrt(dx * dx + dy * dy);
395 if (fabs(rho) <= 1.0e-10)
405 dy_sinc = dy * sin_c;
void setFalseEasting(double falseEasting)
double Gnom_False_Northing
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
Method to the load (recreate) the state of an object from a keyword list.
double abs_Gnom_Origin_Lat
void setFalseEastingNorthing(double falseEasting, double falseNorthing)
Represents serializable keyword/value map.
const char * find(const char *key) const
double Sin_Gnom_Origin_Lat
virtual const ossimString & code() const
virtual ossimGpt inverse(const ossimDpt &eastingNorthing) const
Will take a point in meters and convert it to ground.
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
static const char * TYPE_KW
void changeDatum(const ossimDatum *datum)
This will actually perform a shift.
#define STATIC_TYPE_NAME(T)
const ossimDatum * datum() const
datum().
long Set_Gnomonic_Parameters(double a, double f, double Origin_Latitude, double Central_Meridian, double False_Easting, double False_Northing)
ossimGnomonicProjection(const ossimEllipsoid &ellipsoid=ossimEllipsoid(), const ossimGpt &origin=ossimGpt())
long Convert_Geodetic_To_Gnomonic(double Latitude, double Longitude, double *Easting, double *Northing) const
const double & getA() const
double lonr() const
Returns the longitude in radian measure.
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
Method to save the state of an object to a keyword list.
double Cos_Gnom_Origin_Lat
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
void Get_Gnomonic_Parameters(double *a, double *f, double *Origin_Latitude, double *Central_Meridian, double *False_Easting, double *False_Northing) const
virtual ossimDpt forward(const ossimGpt &latLon) const
All map projections will convert the world coordinate to an easting northing (Meters).
void setFalseNorthing(double falseNorthing)
double latr() const
latr().
long Convert_Gnomonic_To_Geodetic(double Easting, double Northing, double *Latitude, double *Longitude) const
double Gnom_Delta_Easting
double Gnom_Delta_Northing
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.
double Gnom_False_Easting
const ossimDatum * theDatum
This is only set if we want to have built in datum shifting.