#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <grass/glocale.h>
#include <grass/gis.h>
#include <grass/Vect.h>
Go to the source code of this file.
Functions | |
int | prnmsg (char *msg,...) |
int | Vect_build_line_area (struct Map_info *Map, int iline, int side) |
build area on given side of line ( GV_LEFT or GV_RIGHT ) | |
int | Vect_isle_find_area (struct Map_info *Map, int isle) |
find area outside island | |
int | Vect_attach_isle (struct Map_info *Map, int isle) |
(Re)Attach isle to area | |
int | Vect_attach_isles (struct Map_info *Map, BOUND_BOX *box) |
(Re)Attach isles to areas in given box | |
int | Vect_attach_centroids (struct Map_info *Map, BOUND_BOX *box) |
(Re)Attach centroids to areas in given box | |
int | Vect_build_nat (struct Map_info *Map, int build, FILE *msgout) |
Variables | |
FILE * | Msgout |
int prnmsg | ( | char * | msg, | |
... | ||||
) |
Definition at line 43 of file build.c.
References Msgout.
Referenced by Vect_build_nat(), and Vect_build_partial().
int Vect_attach_centroids | ( | struct Map_info * | Map, | |
BOUND_BOX * | box | |||
) |
(Re)Attach centroids to areas in given box
Map_info | structure, BOUND_BOX |
Definition at line 299 of file build_nat.c.
References dig_line_add_updated(), Vect_find_area(), Vect_new_list(), and Vect_select_lines_by_box().
Referenced by V2_delete_line_nat(), and V2_write_line_nat().
int Vect_attach_isle | ( | struct Map_info * | Map, | |
int | isle | |||
) |
(Re)Attach isle to area
Map_info | structure, isle number |
Definition at line 233 of file build_nat.c.
References dig_area_add_isle(), and Vect_isle_find_area().
Referenced by Vect_attach_isles(), and Vect_build_nat().
int Vect_attach_isles | ( | struct Map_info * | Map, | |
BOUND_BOX * | box | |||
) |
(Re)Attach isles to areas in given box
Map_info | structure, BOUND_BOX |
Definition at line 266 of file build_nat.c.
References Vect_attach_isle(), Vect_new_list(), and Vect_select_isles_by_box().
Referenced by V2_delete_line_nat(), and V2_write_line_nat().
int Vect_build_line_area | ( | struct Map_info * | Map, | |
int | iline, | |||
int | side | |||
) |
build area on given side of line ( GV_LEFT or GV_RIGHT )
Map_info | structure, line number ?, side (left? right?) |
Definition at line 35 of file build_nat.c.
References dig_add_area(), dig_add_isle(), dig_build_area_with_line(), dig_find_area_poly(), dig_line_get_area(), Vect_append_points(), Vect_close(), Vect_new_line_struct(), Vect_read_line(), and Vect_reset_line().
Referenced by V2_delete_line_nat(), V2_write_line_nat(), and Vect_build_nat().
int Vect_build_nat | ( | struct Map_info * | Map, | |
int | build, | |||
FILE * | msgout | |||
) |
Definition at line 386 of file build_nat.c.
References dig_add_line(), dig_cidx_add_cat(), dig_free_plus_areas(), dig_free_plus_isles(), dig_free_plus_lines(), dig_free_plus_nodes(), dig_line_box(), dig_spidx_free_areas(), dig_spidx_free_isles(), dig_spidx_free_lines(), dig_spidx_free_nodes(), Msgout, prnmsg(), Vect_attach_isle(), Vect_box_copy(), Vect_box_extend(), Vect_build_line_area(), Vect_find_area(), Vect_get_num_lines(), Vect_new_cats_struct(), Vect_new_line_struct(), Vect_new_list(), Vect_read_line(), Vect_read_next_line(), and Vect_rewind().
int Vect_isle_find_area | ( | struct Map_info * | Map, | |
int | isle | |||
) |
find area outside island
Map_info | structure, isle number |
Definition at line 116 of file build_nat.c.
References Vect_get_area_box(), Vect_get_area_points(), Vect_get_isle_box(), Vect_new_line_struct(), Vect_new_list(), Vect_point_in_area_outer_ring(), and Vect_select_areas_by_box().
Referenced by Vect_attach_isle().
FILE* Msgout |
Definition at line 40 of file build.c.
Referenced by prnmsg(), Vect_build_nat(), and Vect_build_partial().