GPS4Palm

Source Code Documentation


tranmerc.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define TRANMERC_NO_ERROR   0x0000
#define TRANMERC_LAT_ERROR   0x0001
#define TRANMERC_LON_ERROR   0x0002
#define TRANMERC_EASTING_ERROR   0x0004
#define TRANMERC_NORTHING_ERROR   0x0008
#define TRANMERC_ORIGIN_LAT_ERROR   0x0010
#define TRANMERC_CENT_MER_ERROR   0x0020
#define TRANMERC_A_ERROR   0x0040
#define TRANMERC_INV_F_ERROR   0x0080
#define TRANMERC_SCALE_FACTOR_ERROR   0x0100
#define TRANMERC_LON_WARNING   0x0200
#define TRANMERC_SECTION   __attribute__ ((section ("geo")))

Functions

long Set_Transverse_Mercator_Parameters (double a, double f, double Origin_Latitude, double Central_Meridian, double False_Easting, double False_Northing, double Scale_Factor) TRANMERC_SECTION
void Get_Transverse_Mercator_Parameters (double *a, double *f, double *Origin_Latitude, double *Central_Meridian, double *False_Easting, double *False_Northing, double *Scale_Factor) TRANMERC_SECTION
long Convert_Geodetic_To_Transverse_Mercator (double Latitude, double Longitude, double *Easting, double *Northing) TRANMERC_SECTION
long Convert_Transverse_Mercator_To_Geodetic (double Easting, double Northing, double *Latitude, double *Longitude) TRANMERC_SECTION


Define Documentation

#define TRANMERC_A_ERROR   0x0040
 

Definition at line 98 of file tranmerc.h.

Referenced by Set_Transverse_Mercator_Parameters().

#define TRANMERC_CENT_MER_ERROR   0x0020
 

Definition at line 97 of file tranmerc.h.

Referenced by Set_Transverse_Mercator_Parameters().

#define TRANMERC_EASTING_ERROR   0x0004
 

Definition at line 94 of file tranmerc.h.

Referenced by Convert_Transverse_Mercator_To_Geodetic().

#define TRANMERC_INV_F_ERROR   0x0080
 

Definition at line 99 of file tranmerc.h.

Referenced by Set_Transverse_Mercator_Parameters().

#define TRANMERC_LAT_ERROR   0x0001
 

Definition at line 92 of file tranmerc.h.

Referenced by Convert_Geodetic_To_Transverse_Mercator().

#define TRANMERC_LON_ERROR   0x0002
 

Definition at line 93 of file tranmerc.h.

Referenced by Convert_Geodetic_To_Transverse_Mercator().

#define TRANMERC_LON_WARNING   0x0200
 

Definition at line 101 of file tranmerc.h.

Referenced by Convert_Geodetic_To_Transverse_Mercator(), and Convert_Transverse_Mercator_To_Geodetic().

#define TRANMERC_NO_ERROR   0x0000
 

Definition at line 91 of file tranmerc.h.

Referenced by Convert_Geodetic_To_Transverse_Mercator(), Convert_Transverse_Mercator_To_Geodetic(), and Set_Transverse_Mercator_Parameters().

#define TRANMERC_NORTHING_ERROR   0x0008
 

Definition at line 95 of file tranmerc.h.

Referenced by Convert_Transverse_Mercator_To_Geodetic().

#define TRANMERC_ORIGIN_LAT_ERROR   0x0010
 

Definition at line 96 of file tranmerc.h.

Referenced by Set_Transverse_Mercator_Parameters().

#define TRANMERC_SCALE_FACTOR_ERROR   0x0100
 

Definition at line 100 of file tranmerc.h.

Referenced by Set_Transverse_Mercator_Parameters().

#define TRANMERC_SECTION   __attribute__ ((section ("geo")))
 

Definition at line 104 of file tranmerc.h.


Function Documentation

long Convert_Geodetic_To_Transverse_Mercator double  Latitude,
double  Longitude,
double *  Easting,
double *  Northing
 

Definition at line 308 of file tranmerc.c.

References cos(), fabs(), MAX_DELTA_LONG, MAX_LAT, PI, pow(), sin(), SPHSN, SPHTMD, tan(), TRANMERC_LAT_ERROR, TRANMERC_LON_ERROR, TRANMERC_LON_WARNING, and TRANMERC_NO_ERROR.

Referenced by Convert_Geodetic_To_UTM(), and Set_Transverse_Mercator_Parameters().

long Convert_Transverse_Mercator_To_Geodetic double  Easting,
double  Northing,
double *  Latitude,
double *  Longitude
 

Definition at line 463 of file tranmerc.c.

References cos(), fabs(), PI, pow(), sin(), SPHSN, SPHSR, SPHTMD, tan(), TRANMERC_EASTING_ERROR, TRANMERC_LON_WARNING, TRANMERC_NO_ERROR, and TRANMERC_NORTHING_ERROR.

Referenced by Convert_UTM_To_Geodetic().

void Get_Transverse_Mercator_Parameters double *  a,
double *  f,
double *  Origin_Latitude,
double *  Central_Meridian,
double *  False_Easting,
double *  False_Northing,
double *  Scale_Factor
 

Definition at line 272 of file tranmerc.c.

long Set_Transverse_Mercator_Parameters double  a,
double  f,
double  Origin_Latitude,
double  Central_Meridian,
double  False_Easting,
double  False_Northing,
double  Scale_Factor
 

Definition at line 165 of file tranmerc.c.

References Convert_Geodetic_To_Transverse_Mercator(), MAX_DELTA_LONG, MAX_LAT, MAX_SCALE_FACTOR, MIN_SCALE_FACTOR, PI, TRANMERC_A_ERROR, TRANMERC_CENT_MER_ERROR, TRANMERC_INV_F_ERROR, TRANMERC_NO_ERROR, TRANMERC_ORIGIN_LAT_ERROR, and TRANMERC_SCALE_FACTOR_ERROR.

Referenced by Convert_Geodetic_To_UTM(), and Convert_UTM_To_Geodetic().


Created: Mon, 08 Oct 2007 22:33:16 +0200
Copyright ©2004 M. Prinke