GPS4Palm

Source Code Documentation


utm.c File Reference

#include "tranmerc.h"
#include "utm.h"

Include dependency graph for utm.c:

Go to the source code of this file.

Defines

#define PI   3.14159265358979323e0
#define MIN_LAT   ( (-80.5 * PI) / 180.0 )
#define MAX_LAT   ( (84.5 * PI) / 180.0 )
#define MIN_EASTING   100000
#define MAX_EASTING   900000
#define MIN_NORTHING   0
#define MAX_NORTHING   10000000

Functions

long Set_UTM_Parameters (double a, double f, long override)
void Get_UTM_Parameters (double *a, double *f, long *override)
long Convert_Geodetic_To_UTM (double Latitude, double Longitude, long *Zone, char *Hemisphere, double *Easting, double *Northing)
long Convert_UTM_To_Geodetic (long Zone, char Hemisphere, double Easting, double Northing, double *Latitude, double *Longitude)


Define Documentation

#define MAX_EASTING   900000
 

Definition at line 93 of file utm.c.

Referenced by Convert_Geodetic_To_UTM(), and Convert_UTM_To_Geodetic().

#define MAX_LAT   ( (84.5 * PI) / 180.0 )
 

Definition at line 91 of file utm.c.

#define MAX_NORTHING   10000000
 

Definition at line 95 of file utm.c.

Referenced by Convert_Geodetic_To_UTM(), and Convert_UTM_To_Geodetic().

#define MIN_EASTING   100000
 

Definition at line 92 of file utm.c.

Referenced by Convert_Geodetic_To_UTM(), and Convert_UTM_To_Geodetic().

#define MIN_LAT   ( (-80.5 * PI) / 180.0 )
 

Definition at line 90 of file utm.c.

Referenced by Convert_Geodetic_To_UTM(), and Convert_UTM_To_Geodetic().

#define MIN_NORTHING   0
 

Definition at line 94 of file utm.c.

Referenced by Convert_Geodetic_To_UTM(), and Convert_UTM_To_Geodetic().

#define PI   3.14159265358979323e0
 

Definition at line 89 of file utm.c.


Function Documentation

long Convert_Geodetic_To_UTM double  Latitude,
double  Longitude,
long *  Zone,
char *  Hemisphere,
double *  Easting,
double *  Northing
 

Definition at line 172 of file utm.c.

References Convert_Geodetic_To_Transverse_Mercator(), MAX_EASTING, MAX_LAT, MAX_NORTHING, MIN_EASTING, MIN_LAT, MIN_NORTHING, PI, Set_Transverse_Mercator_Parameters(), UTM_EASTING_ERROR, UTM_LAT_ERROR, UTM_LON_ERROR, UTM_NO_ERROR, UTM_NORTHING_ERROR, and UTM_ZONE_OVERRIDE_ERROR.

Referenced by deg_to_str().

long Convert_UTM_To_Geodetic long  Zone,
char  Hemisphere,
double  Easting,
double  Northing,
double *  Latitude,
double *  Longitude
 

Definition at line 280 of file utm.c.

References Convert_Transverse_Mercator_To_Geodetic(), MAX_EASTING, MAX_LAT, MAX_NORTHING, MIN_EASTING, MIN_LAT, MIN_NORTHING, PI, Set_Transverse_Mercator_Parameters(), UTM_EASTING_ERROR, UTM_HEMISPHERE_ERROR, UTM_NO_ERROR, UTM_NORTHING_ERROR, and UTM_ZONE_ERROR.

Referenced by WayptEditFormHandleEvent().

void Get_UTM_Parameters double *  a,
double *  f,
long *  override
 

Definition at line 153 of file utm.c.

long Set_UTM_Parameters double  a,
double  f,
long  override
 

Definition at line 113 of file utm.c.

References UTM_A_ERROR, UTM_INV_F_ERROR, UTM_NO_ERROR, and UTM_ZONE_OVERRIDE_ERROR.


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