header.c File Reference

#include <stdlib.h>
#include <string.h>
#include <grass/gis.h>
#include <grass/Vect.h>
#include <grass/glocale.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)
 get map name
char * Vect_get_mapset (struct Map_info *Map)
 get mapset name
char * Vect_get_full_name (struct Map_info *Map)
 get full name
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_get_proj (struct Map_info *Map)
 get projection from map header
char * Vect_get_proj_name (struct Map_info *Map)
 query cartographic projection name of vector map
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  ) 

int Vect__write_head ( struct Map_info *  Map  ) 

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 383 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 254 of file header.c.

Referenced by Vect__write_head(), and Vect_copy_head_data().

char * Vect_get_full_name ( struct Map_info *  Map  ) 

get full name

Returns:
on success
Parameters:
Map_info structure

Definition at line 184 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 332 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 306 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  ) 

get mapset name

Returns:
on success
Parameters:
Map_info structure

Definition at line 172 of file header.c.

char * Vect_get_name ( struct Map_info *  Map  ) 

get map name

Returns:
on success
Parameters:
Map_info structure

Definition at line 160 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 226 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 280 of file header.c.

Referenced by Vect__write_head(), and Vect_copy_head_data().

int Vect_get_proj ( struct Map_info *  Map  ) 

get projection from map header

Parameters:
Map_info structure
Returns:
Returns the projection type of map PROJECTION_XY 0 - x,y (Raw imagery), PROJECTION_UTM 1 - UTM Universal Transverse Mercator, PROJECTION_SP 2 - State Plane (in feet), PROJECTION_LL 3 - Latitude-Longitude

Definition at line 425 of file header.c.

Referenced by Vect_get_proj_name().

char * Vect_get_proj_name ( struct Map_info *  Map  ) 

query cartographic projection name of vector map

Returns a pointer to a string which is a printable name for projection code proj (as returned by Vect_get_proj()). Returns NULL if proj is not a valid projection.

Parameters:
proj 
Returns:
char *

Definition at line 443 of file header.c.

References Vect_get_proj().

int Vect_get_scale ( struct Map_info *  Map  ) 

get map scale from map header

Returns:
map scale
Parameters:
Map_info structure

Definition at line 357 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 484 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

get threshold used for digitization from map header

Returns:
projection zone
Parameters:
Map_info structure
Returns:
threshold used for digitization
Parameters:
Map_info structure

Definition at line 409 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 200 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 35 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 369 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 239 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 318 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 292 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 212 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 266 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 344 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 470 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 395 of file header.c.

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


Generated on Sun Apr 6 17:32:48 2008 for GRASS by  doxygen 1.5.5