GRASS GIS 8 Programmer's Manual  8.2.2dev(2023)-3d2c704037
georef.c File Reference
#include <stdlib.h>
#include <math.h>
#include <grass/gis.h>
#include <grass/imagery.h>
#include <signal.h>
Include dependency graph for georef.c:

Go to the source code of this file.

Macros

#define M(row, col)   m->v[(((row)-1)*(m->n))+(col)-1]
 
#define MSUCCESS   1 /* SUCCESS */
 
#define MNPTERR   0 /* NOT ENOUGH POINTS */
 
#define MUNSOLVABLE   -1 /* NOT SOLVABLE */
 
#define MMEMERR   -2 /* NOT ENOUGH MEMORY */
 
#define MPARMERR   -3 /* PARAMETER ERROR */
 
#define MINTERR   -4 /* INTERNAL ERROR */
 
#define MAXORDER   3 /* HIGHEST SUPPORTED ORDER OF TRANSFORMATION */
 

Functions

int I_georef (double e1, double n1, double *e, double *n, double E[], double N[], int order)
 
int I_compute_georef_equations (struct Control_Points *cp, double E12[], double N12[], double E21[], double N21[], int order)
 

Macro Definition Documentation

◆ M

#define M (   row,
  col 
)    m->v[(((row)-1)*(m->n))+(col)-1]

Definition at line 49 of file georef.c.

◆ MAXORDER

#define MAXORDER   3 /* HIGHEST SUPPORTED ORDER OF TRANSFORMATION */

Definition at line 58 of file georef.c.

Referenced by I_compute_georef_equations().

◆ MINTERR

#define MINTERR   -4 /* INTERNAL ERROR */

Definition at line 56 of file georef.c.

◆ MMEMERR

#define MMEMERR   -2 /* NOT ENOUGH MEMORY */

Definition at line 54 of file georef.c.

◆ MNPTERR

#define MNPTERR   0 /* NOT ENOUGH POINTS */

Definition at line 52 of file georef.c.

◆ MPARMERR

#define MPARMERR   -3 /* PARAMETER ERROR */

Definition at line 55 of file georef.c.

Referenced by I_compute_georef_equations(), and I_georef().

◆ MSUCCESS

#define MSUCCESS   1 /* SUCCESS */

Definition at line 51 of file georef.c.

Referenced by I_georef().

◆ MUNSOLVABLE

#define MUNSOLVABLE   -1 /* NOT SOLVABLE */

Definition at line 53 of file georef.c.

Function Documentation

◆ I_compute_georef_equations()

int I_compute_georef_equations ( struct Control_Points cp,
double  E12[],
double  N12[],
double  E21[],
double  N21[],
int  order 
)

Definition at line 140 of file georef.c.

References MAXORDER, and MPARMERR.

◆ I_georef()

int I_georef ( double  e1,
double  n1,
double *  e,
double *  n,
double  E[],
double  N[],
int  order 
)

Definition at line 80 of file georef.c.

References MPARMERR, and MSUCCESS.