GRASS Programmer's Manual  6.4.4(2014)-r
init_head.c File Reference

Vector library - init header of vector map. More...

#include <string.h>
#include <grass/gis.h>
#include <grass/Vect.h>
Include dependency graph for init_head.c:

Go to the source code of this file.

Functions

int Vect__init_head (struct Map_info *Map)
 Initialize head structure. More...
 
int Vect_copy_head_data (struct Map_info *from, struct Map_info *to)
 Copy header data from one to another map. More...
 

Detailed Description

Vector library - init header of vector map.

Higher level functions for reading/writing/manipulating vectors.

Initialize Head structure. To make sure that we are not writing out garbage to a file.

(C) 2001-2008 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 for details.

Author
Original author CERL, probably Dave Gerdes or Mike Higgins. Update to GRASS 5.7 Radim Blazek and David D. Gray.
Date
2001-2008

Definition in file init_head.c.

Function Documentation

int Vect__init_head ( struct Map_info *  Map)

Initialize head structure.

Parameters
Mapvector map
Returns
0

Definition at line 35 of file init_head.c.

References G_date(), G_whoami(), NULL, Vect_set_comment(), Vect_set_date(), Vect_set_map_date(), Vect_set_map_name(), Vect_set_organization(), Vect_set_person(), Vect_set_scale(), Vect_set_thresh(), and Vect_set_zone().

Referenced by Vect__open_old(), and Vect_open_new().

int Vect_copy_head_data ( struct Map_info *  from,
struct Map_info *  to 
)