OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Macros | Functions
ossimMgrs.h File Reference
#include <ossim/base/ossimConstants.h>

Go to the source code of this file.

Macros

#define OSSIM_MGRS_NO_ERROR   0x0000
 
#define OSSIM_MGRS_LAT_ERROR   0x0001
 
#define OSSIM_MGRS_LON_ERROR   0x0002
 
#define OSSIM_MGRS_STRING_ERROR   0x0004
 
#define OSSIM_MGRS_PRECISION_ERROR   0x0008
 
#define OSSIM_MGRS_A_ERROR   0x0010
 
#define OSSIM_MGRS_INV_F_ERROR   0x0020
 
#define OSSIM_MGRS_EASTING_ERROR   0x0040
 
#define OSSIM_MGRS_NORTHING_ERROR   0x0080
 
#define OSSIM_MGRS_ZONE_ERROR   0x0100
 
#define OSSIM_MGRS_HEMISPHERE_ERROR   0x0200
 

Functions

OSSIM_DLL long Set_OSSIM_MGRS_Parameters (double a, double f, const char *Ellipsoid_Code)
 
OSSIM_DLL void Get_OSSIM_MGRS_Parameters (double *a, double *f, char *Ellipsoid_Code)
 
OSSIM_DLL long Convert_Geodetic_To_OSSIM_MGRS (double Latitude, double Longitude, long Precision, char *MGRS)
 
OSSIM_DLL long Convert_OSSIM_MGRS_To_Geodetic (const char *MGRS, double *Latitude, double *Longitude)
 
OSSIM_DLL long Convert_UTM_To_OSSIM_MGRS (long Zone, char Hemisphere, double Easting, double Northing, long Precision, char *MGRS)
 
OSSIM_DLL long Convert_OSSIM_MGRS_To_UTM (const char *MGRS, long *Zone, char *Hemisphere, double *Easting, double *Northing)
 
OSSIM_DLL long Convert_UPS_To_OSSIM_MGRS (char Hemisphere, double Easting, double Northing, long Precision, char *MGRS)
 
OSSIM_DLL long Convert_OSSIM_MGRS_To_UPS (const char *MGRS, char *Hemisphere, double *Easting, double *Northing)
 

Macro Definition Documentation

◆ OSSIM_MGRS_A_ERROR

#define OSSIM_MGRS_A_ERROR   0x0010

Definition at line 89 of file ossimMgrs.h.

◆ OSSIM_MGRS_EASTING_ERROR

#define OSSIM_MGRS_EASTING_ERROR   0x0040

Definition at line 91 of file ossimMgrs.h.

◆ OSSIM_MGRS_HEMISPHERE_ERROR

#define OSSIM_MGRS_HEMISPHERE_ERROR   0x0200

Definition at line 94 of file ossimMgrs.h.

◆ OSSIM_MGRS_INV_F_ERROR

#define OSSIM_MGRS_INV_F_ERROR   0x0020

Definition at line 90 of file ossimMgrs.h.

◆ OSSIM_MGRS_LAT_ERROR

#define OSSIM_MGRS_LAT_ERROR   0x0001

Definition at line 85 of file ossimMgrs.h.

◆ OSSIM_MGRS_LON_ERROR

#define OSSIM_MGRS_LON_ERROR   0x0002

Definition at line 86 of file ossimMgrs.h.

◆ OSSIM_MGRS_NO_ERROR

#define OSSIM_MGRS_NO_ERROR   0x0000

Definition at line 84 of file ossimMgrs.h.

◆ OSSIM_MGRS_NORTHING_ERROR

#define OSSIM_MGRS_NORTHING_ERROR   0x0080

Definition at line 92 of file ossimMgrs.h.

◆ OSSIM_MGRS_PRECISION_ERROR

#define OSSIM_MGRS_PRECISION_ERROR   0x0008

Definition at line 88 of file ossimMgrs.h.

◆ OSSIM_MGRS_STRING_ERROR

#define OSSIM_MGRS_STRING_ERROR   0x0004

Definition at line 87 of file ossimMgrs.h.

◆ OSSIM_MGRS_ZONE_ERROR

#define OSSIM_MGRS_ZONE_ERROR   0x0100

Definition at line 93 of file ossimMgrs.h.

Function Documentation

◆ Convert_Geodetic_To_OSSIM_MGRS()

OSSIM_DLL long Convert_Geodetic_To_OSSIM_MGRS ( double  Latitude,
double  Longitude,
long  Precision,
char *  MGRS 
)

◆ Convert_OSSIM_MGRS_To_Geodetic()

OSSIM_DLL long Convert_OSSIM_MGRS_To_Geodetic ( const char *  MGRS,
double *  Latitude,
double *  Longitude 
)

◆ Convert_OSSIM_MGRS_To_UPS()

OSSIM_DLL long Convert_OSSIM_MGRS_To_UPS ( const char *  MGRS,
char *  Hemisphere,
double *  Easting,
double *  Northing 
)

◆ Convert_OSSIM_MGRS_To_UTM()

OSSIM_DLL long Convert_OSSIM_MGRS_To_UTM ( const char *  MGRS,
long *  Zone,
char *  Hemisphere,
double *  Easting,
double *  Northing 
)

◆ Convert_UPS_To_OSSIM_MGRS()

OSSIM_DLL long Convert_UPS_To_OSSIM_MGRS ( char  Hemisphere,
double  Easting,
double  Northing,
long  Precision,
char *  MGRS 
)

◆ Convert_UTM_To_OSSIM_MGRS()

OSSIM_DLL long Convert_UTM_To_OSSIM_MGRS ( long  Zone,
char  Hemisphere,
double  Easting,
double  Northing,
long  Precision,
char *  MGRS 
)

◆ Get_OSSIM_MGRS_Parameters()

OSSIM_DLL void Get_OSSIM_MGRS_Parameters ( double *  a,
double *  f,
char *  Ellipsoid_Code 
)

◆ Set_OSSIM_MGRS_Parameters()

OSSIM_DLL long Set_OSSIM_MGRS_Parameters ( double  a,
double  f,
const char *  Ellipsoid_Code 
)