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

Go to the source code of this file.

Macros

#define USE_DLL
 
#define MGRS_NO_ERROR   0x0000
 
#define MGRS_LAT_ERROR   0x0001
 
#define MGRS_LON_ERROR   0x0002
 
#define MGRS_STRING_ERROR   0x0004
 
#define MGRS_PRECISION_ERROR   0x0008
 
#define MGRS_A_ERROR   0x0010
 
#define MGRS_INV_F_ERROR   0x0020
 
#define MGRS_EASTING_ERROR   0x0040
 
#define MGRS_NORTHING_ERROR   0x0080
 
#define MGRS_ZONE_ERROR   0x0100
 
#define MGRS_HEMISPHERE_ERROR   0x0200
 
#define MGRS_LAT_WARNING   0x0400
 

Functions

int USE_DLL Set_MGRS_Parameters (double a, double f, char *Ellipsoid_Code)
 
void USE_DLL Get_MGRS_Parameters (double *a, double *f, char *Ellipsoid_Code)
 
int USE_DLL Convert_Geodetic_To_MGRS (double Latitude, double Longitude, int Precision, char *MGRS)
 
int USE_DLL Convert_MGRS_To_Geodetic (char *MGRS, double *Latitude, double *Longitude)
 
int USE_DLL Convert_UTM_To_MGRS (int Zone, char Hemisphere, double Easting, double Northing, int Precision, char *MGRS)
 
int USE_DLL Convert_MGRS_To_UTM (char *MGRS, int *Zone, char *Hemisphere, double *Easting, double *Northing)
 
int USE_DLL Convert_UPS_To_MGRS (char Hemisphere, double Easting, double Northing, int Precision, char *MGRS)
 
int USE_DLL Convert_MGRS_To_UPS (char *MGRS, char *Hemisphere, double *Easting, double *Northing)
 

Macro Definition Documentation

#define MGRS_A_ERROR   0x0010

Definition at line 96 of file mgrs.h.

#define MGRS_EASTING_ERROR   0x0040

Definition at line 98 of file mgrs.h.

#define MGRS_HEMISPHERE_ERROR   0x0200

Definition at line 101 of file mgrs.h.

#define MGRS_INV_F_ERROR   0x0020

Definition at line 97 of file mgrs.h.

#define MGRS_LAT_ERROR   0x0001

Definition at line 92 of file mgrs.h.

#define MGRS_LAT_WARNING   0x0400

Definition at line 102 of file mgrs.h.

#define MGRS_LON_ERROR   0x0002

Definition at line 93 of file mgrs.h.

#define MGRS_NO_ERROR   0x0000

Definition at line 91 of file mgrs.h.

#define MGRS_NORTHING_ERROR   0x0080

Definition at line 99 of file mgrs.h.

#define MGRS_PRECISION_ERROR   0x0008

Definition at line 95 of file mgrs.h.

#define MGRS_STRING_ERROR   0x0004

Definition at line 94 of file mgrs.h.

#define MGRS_ZONE_ERROR   0x0100

Definition at line 100 of file mgrs.h.

#define USE_DLL

Definition at line 8 of file mgrs.h.

Function Documentation

int USE_DLL Convert_Geodetic_To_MGRS ( double  Latitude,
double  Longitude,
int  Precision,
char *  MGRS 
)

Definition at line 775 of file mgrs.c.

int USE_DLL Convert_MGRS_To_Geodetic ( char *  MGRS,
double *  Latitude,
double *  Longitude 
)

Definition at line 874 of file mgrs.c.

int USE_DLL Convert_MGRS_To_UPS ( char *  MGRS,
char *  Hemisphere,
double *  Easting,
double *  Northing 
)

Definition at line 1259 of file mgrs.c.

int USE_DLL Convert_MGRS_To_UTM ( char *  MGRS,
int *  Zone,
char *  Hemisphere,
double *  Easting,
double *  Northing 
)

Definition at line 1018 of file mgrs.c.

int USE_DLL Convert_UPS_To_MGRS ( char  Hemisphere,
double  Easting,
double  Northing,
int  Precision,
char *  MGRS 
)

Definition at line 1152 of file mgrs.c.

int USE_DLL Convert_UTM_To_MGRS ( int  Zone,
char  Hemisphere,
double  Easting,
double  Northing,
int  Precision,
char *  MGRS 
)

Definition at line 963 of file mgrs.c.

void USE_DLL Get_MGRS_Parameters ( double *  a,
double *  f,
char *  Ellipsoid_Code 
)

Definition at line 756 of file mgrs.c.

int USE_DLL Set_MGRS_Parameters ( double  a,
double  f,
char *  Ellipsoid_Code 
)

Definition at line 721 of file mgrs.c.