1 #include "csf.h"
2 #include "csfimpl.h"
3 
4 /* put the gis file id
5  * returns
6  * the "gis file id" field or MV_UINT4
7  * in case of an error
8  *
9  * Merrno
10  * NOACCESS
11  */
12 UINT4 MputGisFileId(
13 	MAP *map,          /* map handle */
14 	UINT4 gisFileId)   /*  new gis file id */
15 {
16 
17 	CHECKHANDLE_GOTO(map, error);
18 	if(! WRITE_ENABLE(map))
19 	{
20 		M_ERROR(NOACCESS);
21 		goto error;
22 	}
23 	map->main.gisFileId = gisFileId;
24 	return(gisFileId);
25 error:	return(MV_UINT4);
26 }
27