header.c File Reference

#include <stdlib.h>
#include <string.h>
#include "gis.h"
#include "Vect.h"

Include dependency graph for header.c:

Go to the source code of this file.

Functions

int Vect_print_header (struct Map_info *Map)
 print vector map header
int Vect__write_head (struct Map_info *Map)
int Vect__read_head (struct Map_info *Map)
char * Vect_get_name (struct Map_info *Map)
char * Vect_get_mapset (struct Map_info *Map)
char * Vect_get_full_name (struct Map_info *Map)
int Vect_is_3d (struct Map_info *Map)
 check if vector map is 3D (with z)
int Vect_set_organization (struct Map_info *Map, char *str)
 set organization string in map header
char * Vect_get_organization (struct Map_info *Map)
 get organization string from map header
int Vect_set_date (struct Map_info *Map, char *str)
 set date of digitization string in map header
char * Vect_get_date (struct Map_info *Map)
 get date of digitization string from map header
int Vect_set_person (struct Map_info *Map, char *str)
 set user name string who digitized the map in map header
char * Vect_get_person (struct Map_info *Map)
 get user name string who digitized the map from map header
int Vect_set_map_name (struct Map_info *Map, char *str)
 set map name string in map header
char * Vect_get_map_name (struct Map_info *Map)
 get map name string in map header
int Vect_set_map_date (struct Map_info *Map, char *str)
 set date string when the source map was originally produced in map header
char * Vect_get_map_date (struct Map_info *Map)
 get date string when the source map was originally produced in map header
int Vect_set_scale (struct Map_info *Map, int scale)
 set map scale in map header
int Vect_get_scale (struct Map_info *Map)
 get map scale from map header
int Vect_set_comment (struct Map_info *Map, char *str)
 set comment or other info string in map header
char * Vect_get_comment (struct Map_info *Map)
 get comment or other info string from map header
int Vect_set_zone (struct Map_info *Map, int zone)
 set projection zone in map header
int Vect_get_zone (struct Map_info *Map)
 get projection zone from map header
int Vect_set_thresh (struct Map_info *Map, double thresh)
 set threshold used for digitization in map header
double Vect_get_thresh (struct Map_info *Map)


Function Documentation

int Vect__read_head ( struct Map_info *  Map  ) 

Definition at line 79 of file header.c.

References 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().

int Vect__write_head ( struct Map_info *  Map  ) 

Definition at line 46 of file header.c.

References Vect_get_comment(), Vect_get_date(), Vect_get_map_date(), Vect_get_map_name(), Vect_get_organization(), Vect_get_person(), Vect_get_scale(), Vect_get_thresh(), and Vect_get_zone().

Referenced by V1_close_nat(), V1_close_ogr(), and V1_open_new_nat().

char * Vect_get_comment ( struct Map_info *  Map  ) 

get comment or other info string from map header

Returns:
comment or other info string
Parameters:
Map_info structure

Definition at line 346 of file header.c.

Referenced by Vect__write_head(), and Vect_copy_head_data().

char * Vect_get_date ( struct Map_info *  Map  ) 

get date of digitization string from map header

Returns:
date of digitization string
Parameters:
Map_info structure

Definition at line 217 of file header.c.

Referenced by Vect__write_head(), and Vect_copy_head_data().

char* Vect_get_full_name ( struct Map_info *  Map  ) 

Definition at line 147 of file header.c.

Referenced by Vect__open_old(), Vect_close(), and Vect_open_new().

char * Vect_get_map_date ( struct Map_info *  Map  ) 

get date string when the source map was originally produced in map header

Returns:
date when the source map was originally produced string
Parameters:
Map_info structure

Definition at line 295 of file header.c.

Referenced by Vect__write_head(), Vect_copy_head_data(), and Vect_print_header().

char * Vect_get_map_name ( struct Map_info *  Map  ) 

get map name string in map header

Returns:
map name string
Parameters:
Map_info structure

Definition at line 269 of file header.c.

Referenced by Vect__write_head(), Vect_copy_head_data(), and Vect_print_header().

char* Vect_get_mapset ( struct Map_info *  Map  ) 

Definition at line 141 of file header.c.

char* Vect_get_name ( struct Map_info *  Map  ) 

Definition at line 135 of file header.c.

char * Vect_get_organization ( struct Map_info *  Map  ) 

get organization string from map header

Returns:
organization string
Parameters:
Map_info structure

Definition at line 189 of file header.c.

Referenced by Vect__write_head(), Vect_copy_head_data(), and Vect_print_header().

char * Vect_get_person ( struct Map_info *  Map  ) 

get user name string who digitized the map from map header

Returns:
user name string
Parameters:
Map_info structure

Definition at line 243 of file header.c.

Referenced by Vect__write_head(), and Vect_copy_head_data().

int Vect_get_scale ( struct Map_info *  Map  ) 

get map scale from map header

Returns:
map scale
Parameters:
Map_info structure

Definition at line 320 of file header.c.

Referenced by Vect__write_head(), Vect_copy_head_data(), and Vect_print_header().

double Vect_get_thresh ( struct Map_info *  Map  ) 

Definition at line 397 of file header.c.

Referenced by Vect__write_head(), and Vect_copy_head_data().

double Vect_get_zone ( struct Map_info *  Map  ) 

get projection zone from map header

Returns:
projection zone
Parameters:
Map_info structure

Definition at line 371 of file header.c.

Referenced by Vect__write_head(), and Vect_copy_head_data().

int Vect_is_3d ( struct Map_info *  Map  ) 

check if vector map is 3D (with z)

Returns:
1 on success, 0 of not 3D
Parameters:
Map_info structure

Definition at line 163 of file header.c.

Referenced by Vect_break_lines().

int Vect_print_header ( struct Map_info *  Map  ) 

print vector map header

Returns:
0 on success
Parameters:
Map_info structure

Definition at line 30 of file header.c.

References Vect_get_map_date(), Vect_get_map_name(), Vect_get_organization(), and Vect_get_scale().

int Vect_set_comment ( struct Map_info *  Map,
char *  str 
)

set comment or other info string in map header

Returns:
0 on success
Parameters:
Map_info structure, comment or other info string

Definition at line 332 of file header.c.

Referenced by Vect__init_head(), Vect__read_head(), and Vect_copy_head_data().

int Vect_set_date ( struct Map_info *  Map,
char *  str 
)

set date of digitization string in map header

Returns:
0 on success
Parameters:
Map_info structure, date of digitization string

Definition at line 202 of file header.c.

Referenced by Vect__init_head(), Vect__read_head(), and Vect_copy_head_data().

int Vect_set_map_date ( struct Map_info *  Map,
char *  str 
)

set date string when the source map was originally produced in map header

Returns:
0 on success
Parameters:
Map_info structure, date when the source map was originally produced string

Definition at line 281 of file header.c.

Referenced by Vect__init_head(), Vect__read_head(), and Vect_copy_head_data().

int Vect_set_map_name ( struct Map_info *  Map,
char *  str 
)

set map name string in map header

Returns:
0 on success
Parameters:
Map_info structure, map name string

Definition at line 255 of file header.c.

Referenced by Vect__init_head(), Vect__read_head(), and Vect_copy_head_data().

int Vect_set_organization ( struct Map_info *  Map,
char *  str 
)

set organization string in map header

Returns:
0 on success
Parameters:
Map_info structure, organization string

Definition at line 175 of file header.c.

Referenced by Vect__init_head(), Vect__read_head(), and Vect_copy_head_data().

int Vect_set_person ( struct Map_info *  Map,
char *  str 
)

set user name string who digitized the map in map header

Returns:
0 on success
Parameters:
Map_info structure, user name string

Definition at line 229 of file header.c.

Referenced by Vect__init_head(), Vect__read_head(), and Vect_copy_head_data().

int Vect_set_scale ( struct Map_info *  Map,
int  scale 
)

set map scale in map header

Returns:
0 on success
Parameters:
Map_info structure, map scale

Definition at line 307 of file header.c.

Referenced by Vect__init_head(), Vect__read_head(), and Vect_copy_head_data().

int Vect_set_thresh ( struct Map_info *  Map,
double  thresh 
)

set threshold used for digitization in map header

Returns:
0 on success
Parameters:
Map_info structure, threshold used for digitization

Definition at line 383 of file header.c.

Referenced by Vect__init_head(), Vect__read_head(), and Vect_copy_head_data().

int Vect_set_zone ( struct Map_info *  Map,
int  zone 
)

set projection zone in map header

Returns:
0 on success
Parameters:
Map_info structure, projection zone

Definition at line 358 of file header.c.

Referenced by Vect__init_head(), Vect__read_head(), and Vect_copy_head_data().


Generated on Sat Jul 22 22:06:00 2006 for GRASS by  doxygen 1.4.7