#include <stdlib.h>
#include <grass/gis.h>
#include <grass/Vect.h>
Go to the source code of this file.
Functions | |
int | Vect_select_lines_by_box (struct Map_info *Map, BOUND_BOX *Box, int type, struct ilist *list) |
Select lines by box. Select lines whose boxes overlap specified box!!! It means that selected line may or may not overlap the box. | |
int | Vect_select_areas_by_box (struct Map_info *Map, BOUND_BOX *Box, struct ilist *list) |
Select areas by box. Select areas whose boxes overlap specified box!!! It means that selected area may or may not overlap the box. | |
int | Vect_select_isles_by_box (struct Map_info *Map, BOUND_BOX *Box, struct ilist *list) |
Select isles by box. Select isles whose boxes overlap specified box!!! It means that selected isle may or may not overlap the box. | |
int | Vect_select_nodes_by_box (struct Map_info *Map, BOUND_BOX *Box, struct ilist *list) |
Select nodes by box. | |
int | Vect_select_lines_by_polygon (struct Map_info *Map, struct line_pnts *Polygon, int nisles, struct line_pnts **Isles, int type, struct ilist *List) |
Select lines by Polygon with optional isles. Polygons should be closed, i.e. first and last points must be identical. | |
int | Vect_select_areas_by_polygon (struct Map_info *Map, struct line_pnts *Polygon, int nisles, struct line_pnts **Isles, struct ilist *List) |
Select areas by Polygon with optional isles. Polygons should be closed, i.e. first and last points must be identical. Warning : values in list may be duplicate! |
int Vect_select_areas_by_box | ( | struct Map_info * | Map, | |
BOUND_BOX * | Box, | |||
struct ilist * | list | |||
) |
Select areas by box. Select areas whose boxes overlap specified box!!! It means that selected area may or may not overlap the box.
Map | ||
Box | ||
output | list, must be initialized |
Definition at line 81 of file select.c.
References dig_select_areas(), and Vect_build_sidx_from_topo().
Referenced by Vect_find_area(), and Vect_isle_find_area().
int Vect_select_areas_by_polygon | ( | struct Map_info * | Map, | |
struct line_pnts * | Polygon, | |||
int | nisles, | |||
struct line_pnts ** | Isles, | |||
struct ilist * | list | |||
) |
Select areas by Polygon with optional isles. Polygons should be closed, i.e. first and last points must be identical. Warning : values in list may be duplicate!
Map | ||
Polygon | outer ring | |
nisles | number of islands or 0 | |
Isles | array of islands or NULL | |
list | output list, must be initialised |
Definition at line 268 of file select.c.
References dig_list_add(), Vect_find_area(), Vect_get_isle_area(), Vect_get_line_areas(), Vect_new_list(), and Vect_select_lines_by_polygon().
int Vect_select_isles_by_box | ( | struct Map_info * | Map, | |
BOUND_BOX * | Box, | |||
struct ilist * | list | |||
) |
Select isles by box. Select isles whose boxes overlap specified box!!! It means that selected isle may or may not overlap the box.
Map | ||
Box | ||
output | list, must be initialized |
Definition at line 115 of file select.c.
References dig_select_isles(), and Vect_build_sidx_from_topo().
Referenced by Vect_attach_isles(), and Vect_find_island().
int Vect_select_lines_by_box | ( | struct Map_info * | Map, | |
BOUND_BOX * | Box, | |||
int | type, | |||
struct ilist * | list | |||
) |
Select lines by box. Select lines whose boxes overlap specified box!!! It means that selected line may or may not overlap the box.
Map | ||
Box | ||
type | line type | |
output | list, must be initialized |
Definition at line 33 of file select.c.
References dig_list_add(), dig_select_lines(), Vect_build_sidx_from_topo(), and Vect_new_list().
Referenced by Vect_attach_centroids(), Vect_break_lines(), Vect_find_line(), Vect_remove_duplicates(), and Vect_select_lines_by_polygon().
int Vect_select_lines_by_polygon | ( | struct Map_info * | Map, | |
struct line_pnts * | Polygon, | |||
int | nisles, | |||
struct line_pnts ** | Isles, | |||
int | type, | |||
struct ilist * | list | |||
) |
Select lines by Polygon with optional isles. Polygons should be closed, i.e. first and last points must be identical.
Map | ||
Polygon | outer ring | |
nisles | number of islands or 0 | |
Isles | array of islands or NULL | |
type | line type | |
list | output list, must be initialised |
Definition at line 178 of file select.c.
References dig_line_box(), dig_list_add(), Vect_line_check_intersection(), Vect_new_line_struct(), Vect_new_list(), Vect_point_in_poly(), Vect_read_line(), and Vect_select_lines_by_box().
Referenced by Vect_select_areas_by_polygon().
int Vect_select_nodes_by_box | ( | struct Map_info * | Map, | |
BOUND_BOX * | Box, | |||
struct ilist * | list | |||
) |
Select nodes by box.
Map | ||
Box | ||
output | list, must be initialized |
Definition at line 141 of file select.c.
References dig_select_nodes(), and Vect_build_sidx_from_topo().
Referenced by Vect_find_node().