GRASS Programmer's Manual
6.4.2(2012)
|
#include <stdio.h>
#include <grass/gis.h>
#include <grass/imagery.h>
#include <grass/glocale.h>
Go to the source code of this file.
Functions | |
int | I_get_target (const char *group, char *location, char *mapset) |
read target information | |
int | I_put_target (const char *group, const char *location, const char *mapset) |
write target information |
int I_get_target | ( | const char * | group, |
char * | location, | ||
char * | mapset | ||
) |
read target information
Reads the target location and mapset from the TARGET file for the specified group. Returns 1 if successful; 0 otherwise (and prints a diagnostic error). This routine is used by i.points and i.rectify and probably should not be used by other programs. Note. This routine does not validate the target information.
group | |
location | |
mapset |
Definition at line 22 of file target.c.
References G_suppress_warnings(), G_warning(), I_fopen_group_file_old(), and NULL.
int I_put_target | ( | const char * | group, |
const char * | location, | ||
const char * | mapset | ||
) |
write target information
Writes the target location and mapset to the TARGET file for the specified group. Returns 1 if successful; 0 otherwise (but no error messages are printed). This routine is used by i.target and probably should not be used by other programs. Note. This routine does not validate the target information.
group | |
location | |
mapset |
Definition at line 62 of file target.c.
References I_fopen_group_file_new(), and NULL.