dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
tranmerc.h File Reference

Go to the source code of this file.

Macros

#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
 

Functions

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

Macro Definition Documentation

#define TRANMERC_A_ERROR   0x0040

Definition at line 98 of file tranmerc.h.

#define TRANMERC_CENT_MER_ERROR   0x0020

Definition at line 97 of file tranmerc.h.

#define TRANMERC_EASTING_ERROR   0x0004

Definition at line 94 of file tranmerc.h.

#define TRANMERC_INV_F_ERROR   0x0080

Definition at line 99 of file tranmerc.h.

#define TRANMERC_LAT_ERROR   0x0001

Definition at line 92 of file tranmerc.h.

#define TRANMERC_LON_ERROR   0x0002

Definition at line 93 of file tranmerc.h.

#define TRANMERC_LON_WARNING   0x0200

Definition at line 101 of file tranmerc.h.

#define TRANMERC_NO_ERROR   0x0000

Definition at line 91 of file tranmerc.h.

#define TRANMERC_NORTHING_ERROR   0x0008

Definition at line 95 of file tranmerc.h.

#define TRANMERC_ORIGIN_LAT_ERROR   0x0010

Definition at line 96 of file tranmerc.h.

#define TRANMERC_SCALE_FACTOR_ERROR   0x0100

Definition at line 100 of file tranmerc.h.

Function Documentation

int Convert_Geodetic_To_Transverse_Mercator ( double  Latitude,
double  longitude,
double *  Easting,
double *  Northing 
)

Definition at line 302 of file tranmerc.c.

int Convert_Transverse_Mercator_To_Geodetic ( double  Easting,
double  Northing,
double *  Latitude,
double *  longitude 
)

Definition at line 457 of file tranmerc.c.

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 266 of file tranmerc.c.

int 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 161 of file tranmerc.c.