2
/**********************************************************
3
* I_get_group_camera (group, &Cam_Ref);
4
* I_put_group_camera (group, &Cam_Ref);
5
**********************************************************/
6
#include "orthophoto.h"
7
#include <grass/ortholib.h>
8
#include <grass/glocale.h>
10
/* Put the "camera" name into the group file "CAMERA" */
11
int I_put_group_camera(char *group, char *camera)
15
G_suppress_warnings(1);
16
fd = I_fopen_group_camera_new(group);
17
G_suppress_warnings(0);
21
fprintf(fd, "%s\n", camera);
26
/* Return the camera name from the group file CAMERA */
27
int I_get_group_camera(char *group, char *camera)
32
G_suppress_warnings(1);
33
fd = I_fopen_group_camera_old(group);
34
G_suppress_warnings(0);
37
_("Unable to open camera file for group <%s> in mapset <%s>"),
42
G_getl2(buf, sizeof(buf), fd);
43
sscanf(buf, "%s", camera);