level_two.c File Reference

#include <grass/gis.h>
#include <grass/Vect.h>
#include <stdlib.h>

Include dependency graph for level_two.c:

Go to the source code of this file.

Functions

int Vect_get_num_nodes (struct Map_info *map)
 get number of nodes
int Vect_get_num_primitives (struct Map_info *map, int type)
 get number of primitives
int Vect_get_num_lines (struct Map_info *map)
 get number of lines
int Vect_get_num_areas (struct Map_info *map)
 get number of areas
int Vect_get_num_faces (struct Map_info *map)
 get number of faces
int Vect_get_num_islands (struct Map_info *map)
 get number of islands
int Vect_get_num_dblinks (struct Map_info *map)
 get number of defined dblinks
int Vect_get_num_updated_lines (struct Map_info *map)
 get number of updated lines
int Vect_get_updated_line (struct Map_info *map, int idx)
 get updated line by index
int Vect_get_num_updated_nodes (struct Map_info *map)
 get number of updated nodes
int Vect_get_updated_node (struct Map_info *map, int idx)
 get updated node by index
int Vect_get_node_coor (struct Map_info *map, int num, double *x, double *y, double *z)
 get 2D/3D coordinates of node
int Vect_get_line_nodes (struct Map_info *Map, int line, int *n1, int *n2)
 get starting and ending node of line
int Vect_get_line_areas (struct Map_info *Map, int line, int *left, int *right)
 get areas/isles on the left and right
int Vect_get_node_n_lines (struct Map_info *Map, int node)
 returns number of lines for node
int Vect_get_node_line (struct Map_info *Map, int node, int line)
 returns line number for node line index
float Vect_get_node_line_angle (struct Map_info *Map, int node, int line)
 angle of segment of the line connected to the node
int Vect_get_centroid_area (struct Map_info *Map, int centroid)
 returns number of area the centroid is within


Function Documentation

int Vect_get_centroid_area ( struct Map_info *  Map,
int  centroid 
)

returns number of area the centroid is within

Returns:
number of area the node is within, 0 for not in area, negative number of area if duplicate
Parameters:
Map_info structure, centroid number

Definition at line 289 of file level_two.c.

int Vect_get_line_areas ( struct Map_info *  Map,
int  line,
int *  left,
int *  right 
)

get areas/isles on the left and right

Returns:
numbers of areas/isles on the left and right
Parameters:
Map_info structure, line number, numbers of areas/isles on the left and right

Definition at line 216 of file level_two.c.

Referenced by remove_bridges(), Vect_remove_small_areas(), and Vect_select_areas_by_polygon().

int Vect_get_line_nodes ( struct Map_info *  Map,
int  line,
int *  n1,
int *  n2 
)

get starting and ending node of line

Returns:
numbers of line nodes
Parameters:
Map_info structure, line number, numbers of line nodes

Definition at line 194 of file level_two.c.

Referenced by remove_bridges(), remove_dangles(), Vect_break_lines(), Vect_net_build_graph(), and Vect_net_nearest_nodes().

int Vect_get_node_coor ( struct Map_info *  map,
int  num,
double *  x,
double *  y,
double *  z 
)

get 2D/3D coordinates of node

Returns:
2D/3D coordinates of node
Parameters:
Map_info structure, node number, xyz coordinates values

Definition at line 173 of file level_two.c.

Referenced by Vect_break_lines(), Vect_clean_small_angles_at_nodes(), and Vect_find_node().

int Vect_get_node_line ( struct Map_info *  Map,
int  node,
int  line 
)

returns line number for node line index

Returns:
line number for node line index
Parameters:
Map vector map
node node number
line line index, range : 0 - Vect_get_node_n_lines()

Definition at line 257 of file level_two.c.

Referenced by remove_dangles(), Vect_clean_small_angles_at_nodes(), Vect_net_build_graph(), and Vect_overlay_and().

int Vect_get_node_line_angle ( struct Map_info *  Map,
int  node,
int  line 
)

angle of segment of the line connected to the node

Returns:
angle of segment of the line connected to the node
Parameters:
Map vector map
node node number
line line index, range : 0 - Vect_get_node_n_lines()

Definition at line 274 of file level_two.c.

Referenced by Vect_clean_small_angles_at_nodes().

int Vect_get_node_n_lines ( struct Map_info *  Map,
int  node 
)

returns number of lines for node

Returns:
numbers of line for a node ??
Parameters:
Map_info structure, node number

Definition at line 238 of file level_two.c.

Referenced by remove_dangles(), Vect_clean_small_angles_at_nodes(), Vect_net_build_graph(), and Vect_overlay_and().

int Vect_get_num_areas ( struct Map_info *  map  ) 

get number of areas

Returns:
number of areas
Parameters:
Map_info structure

Definition at line 76 of file level_two.c.

Referenced by Vect_build_partial(), Vect_remove_small_areas(), Vect_set_varray_from_cat_list(), and Vect_set_varray_from_db().

int Vect_get_num_dblinks ( struct Map_info *  map  ) 

get number of defined dblinks

Returns:
number of dblinks
Parameters:
Map_info structure

Definition at line 113 of file level_two.c.

Referenced by Vect_copy(), Vect_copy_tables(), Vect_delete(), Vect_get_column_names(), Vect_get_column_names_types(), Vect_get_column_types(), and Vect_rename().

int Vect_get_num_faces ( struct Map_info *  map  ) 

get number of faces

Returns:
number of faces
Parameters:
Map_info structure

Definition at line 89 of file level_two.c.

int Vect_get_num_islands ( struct Map_info *  map  ) 

get number of islands

Returns:
number of islands
Parameters:
Map_info structure

Definition at line 101 of file level_two.c.

int Vect_get_num_lines ( struct Map_info *  map  ) 

int Vect_get_num_nodes ( struct Map_info *  map  ) 

get number of nodes

Returns:
number of nodes
Parameters:
Map_info structure

Definition at line 31 of file level_two.c.

Referenced by remove_dangles(), Vect_clean_small_angles_at_nodes(), and Vect_net_build_graph().

int Vect_get_num_primitives ( struct Map_info *  map,
int  type 
)

get number of primitives

Returns:
number of primitives of given type
Parameters:
Map_info structure

Definition at line 43 of file level_two.c.

int Vect_get_num_updated_lines ( struct Map_info *  map  ) 

get number of updated lines

Returns:
number of updated lines
Parameters:
Map_info structure

Definition at line 125 of file level_two.c.

int Vect_get_num_updated_nodes ( struct Map_info *  map  ) 

get number of updated nodes

Returns:
number of updated nodes
Parameters:
Map_info structure

Definition at line 149 of file level_two.c.

int Vect_get_updated_line ( struct Map_info *  map,
int  idx 
)

get updated line by index

Returns:
updated line
Parameters:
Map_info structure

Definition at line 137 of file level_two.c.

int Vect_get_updated_node ( struct Map_info *  map,
int  idx 
)

get updated node by index

Returns:
updated node
Parameters:
Map_info structure

Definition at line 161 of file level_two.c.


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