Vector library - Building topology for native format. More...
#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 | 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) |
Build topology. |
Vector library - Building topology for native format.
(C) 2001-2008 by the GRASS Development Team
This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.
Definition in file build_nat.c.
int Vect_attach_centroids | ( | struct Map_info * | Map, |
BOUND_BOX * | box | ||
) |
(Re)Attach centroids to areas in given box
Map_info | vector map |
box | bounding box |
Definition at line 329 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().
int Vect_attach_isle | ( | struct Map_info * | Map, |
int | isle | ||
) |
(Re)Attach isle to area
Map_info | vector map |
isle | isle id |
Definition at line 258 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 | vector map |
box | bounding box |
Definition at line 295 of file build_nat.c.
References Vect_attach_isle(), Vect_new_list(), and Vect_select_isles_by_box().
Referenced by V2_delete_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 | vector map |
iline | line id |
side | side (GV_LEFT or GV_RIGHT) |
Definition at line 37 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(), and Vect_build_nat().
int Vect_build_nat | ( | struct Map_info * | Map, |
int | build | ||
) |
Build topology.
Map_info | vector map |
build | build level |
Definition at line 430 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(), 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 | vector map |
isle | isle id |
Definition at line 126 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().