OpenCPN Partial API docs
|
OpenCPN Georef utility. More...
#include <stdio.h>
#include <string.h>
#include <ctype.h>
Go to the source code of this file.
Classes | |
struct | DATUM |
struct | ELLIPSOID |
struct | GeoRef |
Structure containing georeferencing information for transforming between geographic and projected/pixel coordinate systems. More... | |
struct | lm_control_type |
struct | lm_data_type |
Macros | |
#define | PI 3.1415926535897931160E0 /* pi */ |
#define | DEGREE (PI / 180.0) |
#define | RADIAN (180.0 / PI) |
#define | DATUM_INDEX_WGS84 101 |
#define | DATUM_INDEX_UNKNOWN -1 |
Typedefs | |
typedef void() | lm_evaluate_ftype(double *par, int m_dat, double *fvec, void *data, int *info) |
typedef void() | lm_print_ftype(int n_par, double *par, int m_dat, double *fvec, void *data, int iflag, int iter, int nfev) |
Functions | |
void | datumParams (short datum, double *a, double *es) |
void | toDMS (double a, char *bufp, int bufplen) |
void | toDMM (double a, char *bufp, int bufplen) |
int | GetDatumIndex (const char *str) |
void | MolodenskyTransform (double lat, double lon, double *to_lat, double *to_lon, int from_datum_index, int to_datum_index) |
double | lat_gc_crosses_meridian (double lat1, double lon1, double lat2, double lon2, double lon) |
double | lat_rl_crosses_meridian (double lat1, double lon1, double lat2, double lon2, double lon) |
void | lm_evaluate_default (double *par, int m_dat, double *fvec, void *data, int *info) |
void | lm_print_default (int n_par, double *par, int m_dat, double *fvec, void *data, int iflag, int iter, int nfev) |
void | lm_initialize_control (lm_control_type *control) |
================================================================================= | |
void | lm_minimize (int m_dat, int n_par, double *par, lm_evaluate_ftype *evaluate, lm_print_ftype *printout, void *data, lm_control_type *control) |
double | lm_enorm (int, double *) |
void | lm_lmdif (int m, int n, double *x, double *fvec, double ftol, double xtol, double gtol, int maxfev, double epsfcn, double *diag, int mode, double factor, int *info, int *nfev, double *fjac, int *ipvt, double *qtf, double *wa1, double *wa2, double *wa3, double *wa4, lm_evaluate_ftype *evaluate, lm_print_ftype *printout, void *data) |
Variables | |
const char * | lm_infmsg [] |
const char * | lm_shortmsg [] |
OpenCPN Georef utility.
Parts of this file were adapted from source code found in John F. Waers (jfwae.nosp@m.rs@c.nosp@m.sn.ne.nosp@m.t) public domain program MacGPS45
Definition in file georef.h.
typedef void() lm_evaluate_ftype(double *par, int m_dat, double *fvec, void *data, int *info) |
typedef void() lm_print_ftype(int n_par, double *par, int m_dat, double *fvec, void *data, int iflag, int iter, int nfev) |
void datumParams | ( | short | datum, |
double * | a, | ||
double * | es | ||
) |
Definition at line 232 of file georef.cpp.
int GetDatumIndex | ( | const char * | str | ) |
Definition at line 276 of file georef.cpp.
double lat_gc_crosses_meridian | ( | double | lat1, |
double | lon1, | ||
double | lat2, | ||
double | lon2, | ||
double | lon | ||
) |
Definition at line 2854 of file georef.cpp.
double lat_rl_crosses_meridian | ( | double | lat1, |
double | lon1, | ||
double | lat2, | ||
double | lon2, | ||
double | lon | ||
) |
Definition at line 2872 of file georef.cpp.
double lm_enorm | ( | int | n, |
double * | x | ||
) |
Definition at line 2788 of file georef.cpp.
void lm_evaluate_default | ( | double * | par, |
int | m_dat, | ||
double * | fvec, | ||
void * | data, | ||
int * | info | ||
) |
Definition at line 1667 of file georef.cpp.
void lm_initialize_control | ( | lm_control_type * | control | ) |
=================================================================================
Definition at line 1743 of file georef.cpp.
void lm_lmdif | ( | int | m, |
int | n, | ||
double * | x, | ||
double * | fvec, | ||
double | ftol, | ||
double | xtol, | ||
double | gtol, | ||
int | maxfev, | ||
double | epsfcn, | ||
double * | diag, | ||
int | mode, | ||
double | factor, | ||
int * | info, | ||
int * | nfev, | ||
double * | fjac, | ||
int * | ipvt, | ||
double * | qtf, | ||
double * | wa1, | ||
double * | wa2, | ||
double * | wa3, | ||
double * | wa4, | ||
lm_evaluate_ftype * | evaluate, | ||
lm_print_ftype * | printout, | ||
void * | data | ||
) |
Definition at line 1838 of file georef.cpp.
void lm_minimize | ( | int | m_dat, |
int | n_par, | ||
double * | par, | ||
lm_evaluate_ftype * | evaluate, | ||
lm_print_ftype * | printout, | ||
void * | data, | ||
lm_control_type * | control | ||
) |
Definition at line 1752 of file georef.cpp.
void lm_print_default | ( | int | n_par, |
double * | par, | ||
int | m_dat, | ||
double * | fvec, | ||
void * | data, | ||
int | iflag, | ||
int | iter, | ||
int | nfev | ||
) |
Definition at line 1696 of file georef.cpp.
void MolodenskyTransform | ( | double | lat, |
double | lon, | ||
double * | to_lat, | ||
double * | to_lon, | ||
int | from_datum_index, | ||
int | to_datum_index | ||
) |
Definition at line 906 of file georef.cpp.
void toDMM | ( | double | a, |
char * | bufp, | ||
int | bufplen | ||
) |
Definition at line 341 of file georef.cpp.
void toDMS | ( | double | a, |
char * | bufp, | ||
int | bufplen | ||
) |
Definition at line 291 of file georef.cpp.
|
extern |
Definition at line 1784 of file georef.cpp.
|
extern |
Definition at line 1797 of file georef.cpp.