1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
/*
* Written by the GRASS Team, 02/16/90, -mh .
*/
/******************
* INCLUDES: *
*******************/
#include <stdio.h>
/******************
* DEFINES: *
*******************/
#define TRANS_MATRIX 0
#define TRANS_SHIFT 1
#define IDX_XSHIFT 0
#define IDX_YSHIFT 1
#define IDX_ZSHIFT 2
#define IDX_XSCALE 3
#define IDX_YSCALE 4
#define IDX_ZSCALE 5
#define IDX_ZROT 6
/******************
* GLOBALS: *
*******************/
/**
* The coordinates of the points from the map that is to be converted
* are placed in ax[] and ay[].
* Those corresponding points in the other coordinate system
* are placed in bx[], by[].
*
* The use[] contains a true if that point is to be used by the transform
* library or a false (0) if it is not to be used.
* The residuals each set of points contributes is placed in residuals[].
*
* Yah, I made them global. So shoot me.
**/
/******************
* STRUCTS: *
*******************/
/* For GRASS data files */
struct file_info {
FILE *fp;
char *mapset;
char name[GPATH_MAX];
};
|