|
@@ -15,7 +15,7 @@
|
|
|
* PURPOSE: calculate a transformation matrix and then convert x,y cell
|
|
|
* coordinates to standard map coordinates for each pixel in the
|
|
|
* image (control points can come from i.points or i.vpoints)
|
|
|
- * COPYRIGHT: (C) 2002-2006 by the GRASS Development Team
|
|
|
+ * COPYRIGHT: (C) 2002-2011 by the GRASS Development Team
|
|
|
*
|
|
|
* This program is free software under the GNU General Public
|
|
|
* License (>=v2). Read the file COPYING that comes with GRASS
|
|
@@ -54,8 +54,6 @@ double E21[10], N21[10];
|
|
|
*/
|
|
|
struct Cell_head target_window;
|
|
|
|
|
|
-#define NFILES 15 /* ??? */
|
|
|
-
|
|
|
void err_exit(char *, char *);
|
|
|
|
|
|
/* modify this table to add new methods */
|
|
@@ -75,7 +73,6 @@ static char *make_ipol_list(void);
|
|
|
int main(int argc, char *argv[])
|
|
|
{
|
|
|
char group[INAME_LEN], extension[INAME_LEN];
|
|
|
- char result[NFILES][15];
|
|
|
int order; /* ADDED WITH CRS MODIFICATIONS */
|
|
|
char *ipolname; /* name of interpolation method */
|
|
|
int method;
|
|
@@ -95,9 +92,6 @@ int main(int argc, char *argv[])
|
|
|
struct Flag *c, *a;
|
|
|
struct GModule *module;
|
|
|
|
|
|
- setbuf(stdout, NULL);
|
|
|
- setbuf(stderr, NULL);
|
|
|
-
|
|
|
G_gisinit(argv[0]);
|
|
|
|
|
|
module = G_define_module();
|
|
@@ -211,9 +205,6 @@ int main(int argc, char *argv[])
|
|
|
exit(EXIT_SUCCESS);
|
|
|
}
|
|
|
|
|
|
- for (i = 0; i < NFILES; i++)
|
|
|
- result[i][0] = 0;
|
|
|
-
|
|
|
ref_list = (int *)G_malloc(ref.nfiles * sizeof(int));
|
|
|
new_name = (char **)G_malloc(ref.nfiles * sizeof(char *));
|
|
|
|