clean_nodes.c File Reference

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

Include dependency graph for clean_nodes.c:

Go to the source code of this file.

Functions

int Vect_clean_small_angles_at_nodes (struct Map_info *Map, int otype, struct Map_info *Err, FILE *msgout)
 It may happen that even if the angle between 2 boundaries at node is very small, the calculated angle is 0 because of representation error. The map must be built at least on level GV_BUILD_BASE.


Function Documentation

void Vect_clean_small_angles_at_nodes ( struct Map_info *  Map,
int  type,
struct Map_info *  Err,
FILE *  msgout 
)

It may happen that even if the angle between 2 boundaries at node is very small, the calculated angle is 0 because of representation error. The map must be built at least on level GV_BUILD_BASE.

Parameters:
Map input map
Err vector map where error line segments are written
msgout file pointer where messages will be written or NULL
Returns:
number of line modifications

Definition at line 33 of file clean_nodes.c.

References Vect_append_point(), Vect_cat_set(), Vect_delete_line(), Vect_get_node_coor(), Vect_get_node_line(), Vect_get_node_line_angle(), Vect_get_node_n_lines(), Vect_get_num_nodes(), Vect_line_delete_point(), Vect_line_prune(), Vect_new_cats_struct(), Vect_new_line_struct(), Vect_node_alive(), Vect_points_distance(), Vect_read_line(), Vect_reset_cats(), Vect_reset_line(), Vect_rewrite_line(), and Vect_write_line().


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